Output numbered links rather than thumbs

Just wondering if anyone's got an idea how to implement this. I'd like to get the images in an album to show up in the image.php file as a series of numbered links. So

1 2 3 4 5 6

are links and take you to an image page.

Comments

  • tcserpa Member
    Wow, i just realized that this one has been open for a while. There is some cruft in the example below, but the important bits are there. It works for me, and does not mess with any core functions. I hope this helps someone.
    `<br /> <div class="images"><br /> <!-- this is the loop you want to put a counter on --><br /> <?php<br /> $columns = 0;//set $columns as the counter<br /> while (next_image()) {//open the loop<br /> $columns++//increment the counter so the first image = 1<br /> ?><br /> <div class="image"><br /> <div class="imagethumb"><br /> <a href="<?php echo getImageLinkURL();?>" title="<?php echo getImageTitle();?>"><br /> <?="$columns"; // this is shorthand for 'echo $columns' ?><br /> </a><br /> <div class="imageDesc"><br /> <?php printImageDesc(true); ?><br /> </div><br /> </div><br /> </div><br /> <?php<br /> }; //close the loop. Everything between this and the opening of the loop is repeated until you run out of next_images<br /> ?><br /> </div><br /> `
Sign In or Register to comment.