Depth of Sub-Album Tree on Main Page
whiti
Joined: 2002-10-13
Posts: 1 |
![]() |
Hi, thx |
|
dtdgoomba
Joined: 2002-11-04
Posts: 185 |
![]() |
has this been answered, I'm sitting here scoping the this whole section and noticed this. it was something I was wondering about too |
|
beckett
![]()
Joined: 2002-08-16
Posts: 3474 |
![]() |
I just made this up, and didn't test it, so let me know how it goes: In util.php edit printChildren() as follows: <!-- BBCode Start --><TABLE BORDER=0 ALIGN=CENTER WIDTH=85%><TR><TD><font class="pn-sub">Code:</font><HR></TD></TR><TR><TD><FONT class="pn-sub"><PRE> Then in albums.php, change the line to: <!-- BBCode Start --><TABLE BORDER=0 ALIGN=CENTER WIDTH=85%><TR><TD><font class="pn-sub">Code:</font><HR></TD></TR><TR><TD><FONT class="pn-sub"><PRE> where LEVELS is the number of levels you want. Note that this won't work now without specifiying a specific number of levels. -Beckett ( beck@beckettmw.com) |
|
dtdgoomba
Joined: 2002-11-04
Posts: 185 |
![]() |
Ok, my entire subalbum tree disappeared. I added for ($i=1; $i <= $numPhotos; $i++) { and and then I added a to close off the if ($levels) statment right after the and in my albums.php, I have: |
|
beckett
![]()
Joined: 2002-08-16
Posts: 3474 |
![]() |
Did you remember to change the very top function line? (You didn't mention that one). |
|
dtdgoomba
Joined: 2002-11-04
Posts: 185 |
![]() |
You know, I totally overlooked that thinking you were just using that as a pointer where I should start... It works Should I ask here or in another thread or wait for G2 for having: SubAlbums It's really really not needed right now, just thought of it. This works fine for now so thanks a lot for helping out Beckett |
|
pbyjp
![]()
Joined: 2002-11-12
Posts: 260 |
![]() |
Now that rocks... but it would be nice to print the number of sub albums next to it. true... |
|
Picolio
![]()
Joined: 2003-02-02
Posts: 18 |
![]() |
Thanks very much for this! It works like a charm. I would like to be able to limit the number of sub-albums it displays as some of my main albums will hold quite a few subs but at this time the above code works perfectly. If anyone wants to see it, I've added it to my new album at http://www.Picolio.com Thank you! Deb |
|
vallimar
Joined: 2002-08-15
Posts: 487 |
![]() |
I posted a patch to the devel mailing list awhile back for variable |
|
floridave
![]()
Joined: 2003-12-22
Posts: 27300 |
![]() |
pbyjp wrote:
....And while we are at it, has anybody tried to merge that with the drop down nav? Well here is the drop down part: Dave |
|