Member
Member
kimisgold   27-07-2009, 20:51
#1

Hullo! My gallery's customized theme sends the user straight to the image.php of the first image of the first album. On the image.php, I've included the printAlbumMenu plugin, but each of the album links go to their respective album.php. What would be the best way to link to each of the albums' respective first images? I've read the forum thread on skipping album.php to image.php from the index page, but I'm unsure of how to go about it with this particular plugin. Any help would be greatly appreciated!

Member
Member
sbillard   27-07-2009, 21:05
#2

prinrAlbumMenu() does not do what you wish. You would need to make a copy of that plugin and modify it for your purposes. Change where it puts out the album link to put out a link to the first image. You can use getFirstImageURL() to give you the URL for the first image.

Member
Member
kimisgold   27-07-2009, 21:25
#3

The gallery starts with the first image of Album A. When using getFirstImageURL() in the plugin, the link to Album B links to the first image of the current album, Album A, instead, when it should link to the first image of Album B. Here's the change I made in print_album_menu.php:

before:
$link = "getTitle())."'>".html_encode($topalbum->getTitle())."".$count;
after:
$link = "getTitle())."'>".html_encode($topalbum->getTitle())."".$count;
Thank you for the fast response, by the way! These forums are pretty fantastic.

Administrator
Administrator
acrylian   28-07-2009, 09:48
#4

Just to note, I have this already as an option on my (long) list.

Member
Member
kimisgold   03-08-2009, 04:24
#5

I'm sorry, acrylian, I'm don't understand where this is an option. Could you clarify?

Administrator
Administrator
acrylian   03-08-2009, 13:10
#6

Sorry, I probably wrote missunderstandable. I have added it to my to do list to become a future option. It is not yet there and it will not be in the coming 1.2.6 release.

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