Member
Member
farhan   2007-12-31, 11:18
#1

Hello,

Is there any way to show parent album name other then the breadcrumb thing ?

I have it like for each user

User > Subalbums > Subalbums
User2 > Subalbums > Subalbums

And i need to show the User album name on the subalbum pages but seperately then the bedcrumbs on top...

Any way?

Member
Member
elderz   2007-12-31, 16:34
#2

I think this is what you were going for.

If all you need is the name, calling:
``

should work. If you need it to be a link to the gallery index, try using:
`

Member
Member
farhan   2007-12-31, 19:03
#3

Hmm, that just shows "Object"

Member
Member
elderz   2007-12-31, 20:18
#4

Sorry, you want $aGalleyIndex[0]->getTitle() or it looks like you could just call echo printGalleryTitle()

Member
Member
farhan   2007-12-31, 20:44
#5

Sorry to bother you again but let me explain what i need again.

I have 10 main albums called User1, User2, blah blah . and i have 2 level sub albums in all of the main albums.

What i want to do is Show main album name on Top of the subalbums.

Like if i am on

User1> Trips > Someplace

I want to show User1 on top of the page.

printGalleryTitle() prints the gallery title, i don't need that.

Thanks in advance if anyone can help

Member
Member
elderz   2007-12-31, 21:00
#6

Ahh ok. I think I understand. On mine, I have it set to show the breadcrumbs with the gallery root in the breadcrumbs. So mine might look like Gallery > User1 > Trips > Someplace. What you can do for that is use that code snippet from before. Instead of [0] we want [1]. The albums are stored in an array [Gallery, User1, Trips]. I haven't tested any of this, but try this:
``

Let me know if that works.

Member
Member
farhan   2008-01-01, 00:14
#7

Nope i get a error

Fatal error: Call to a member function on a non-object in

themes\binary\album.php on line 32

Line 31 and 32 are

Member
Member
farhan   2008-01-01, 02:56
#8

anyone can help me on this ? please

Member
Member
farhan   2008-01-01, 07:24
#9

ok that is working when i am in User > album or USer > Album > Album

But when i am just on user it gives the Fatal error: Call to a member function on a non-object in error

ANy fix for that ?

Or any way of just showing this code in the sub albums and not the main ?

Thanks a lot for your help so far elderz

Member
Member
farhan   2008-01-01, 08:01
#10

ok i don't have too much clue to what's going on here but i finally managed to do it.

It displays The main album title in any of it's subalbums or there subalbums.

If anyone can tell me what's happening there, that would be great too

Member
Member
sbillard   2008-01-02, 02:20
#11

Gallery level albums--those displayed on the index.php page--do not have parent albums (getparentAlbums() will be empty). That is why you need the if ($aGalleryIndex =getParentAlbums()) { test.

Member
Member
elderz   2008-01-03, 21:59
#12

sorry about that farhan. I was out of town for a few days. I didn't realize that the gallery is not considered a parent album so it makes sense that getParentAlbums() wouldn't work.

Member
Member
farhan   2008-01-04, 22:45
#13

no problems elderz, many thanks for your help

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.