Member
Member
bferens   01-11-2007, 07:19
#1

I am needing to do the normal place 6 or so images that represent albums on the page using the next_album() function. Then I want to place another list with 15 album titles in it. How do I reset the next_album() function to start back at the first album? I am currently on the index.php page. Thanks to whoever can help me out.

Developer
Developer
trisweb   01-11-2007, 07:40
#2

It resets itself :-) That should work fine. You can do this if you want and it should also work, printing four sets of (the same) albums:

`while(next_album()) { ... }

while(next_album()) { ... }

while(next_album()) { ... }

while(next_album()) { ... }`

next_album(true); will print all albums, if that's what you're looking for. At the moment there's no way to specify the exact number to loop through, but there should be... hmm...

Junior Member
Junior Member
jhenryexp   04-10-2008, 16:48
#3

I am trying to do something similar on my index page - 3 albums (with thumbs) on left and then a complete list of all albums on the right (minus thumbs). But next_album() is not reseting itself when it is called the second time and is starting from where it left off in the first call.

Here is the first call;

...

This is the second call;

[*]...

Member
Member
BertSimons   04-10-2008, 20:01
#4

jhenryexp, simple solution might be to do a second but empty loop after the first which just finishes the uncomplete first one and then to call a third one :

´
...do your thing

do your thing

´

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