thumbs in image.php; detect current image

I've put thumbs in the image.php page no problem.

But I'd like to apply a certain style (a border) only to the thumb thats also currently being displayed as a large image. all of the other thumbs from the album would not display the border.

this seems like a very simple thing in php, but my php is very weak..
thanks for any help.

Comments

  • genial Member
    I need to do this exact same thing. Also for the album list I need to style the active album differently from the rest. Anybody?
  • Not sure exactly what you mean--normally there are only thumbs, clicking on one goes to a new page. Maybe you should look at the SimpleViewer theme and see if it does what you want.
  • genial Member
    A theme can be modified to show thumbs along side the image.php page. See http://www.kerricushman.com/portfolio for an example of a client I'm working on. I need to be able to style the links of the albums differently for active albums and possibly for thumbnails too. Normally I would do that by making the album or thumbnail not a link and style it as such but with the current functions I can't do that. Not sure how to proceed...
  • I found this topic when I was searching the forum for my problem. The question in this topic is still unanswered. But I too am looking for a solution on active/current album. I've "hacked" zenphoto so my website displays not only a list of all albums on the indexpage, but also on the image- and albumpage. Now I would like to have a function that allows me to style the active album.

    For an example go to my website, which is still in development. This is the album "Backstage-Society": http://www.benvandenberghe.com/photo.php?album=d All albums are listed under the navigation-bar. What I want to do, is setting the background of the active album to red.

    Is this possible? Thanks in advance.
  • acrylian Administrator, Developer
    Generally getAlbumTitle() should give you the current selected album in album or image mode.
    You could try my little album_menu_function which does what you do:
    http://www.zenphoto.org/trac/wiki/ZenphotoHacks#Albummenufunctionforthezenphoto_updatedcommunitybuild
    A newer version is included in the nightly builds in the folder zp-core/plugins (you need to use it as a custom theme function)

    Interessing solution by the way. I started a similar thing some weeks ago, but stopped because my client decided to have another layout. How did you do it? Do you override album.php and link directly to the first image or do you put the image.php stuff on album.php?
  • Thanks acrylian! This works perfect: http://www.benvandenberghe.com/photo.php?album=whiteboy-

    About the image.php stuff on album.php, I just searched the forum. I can't write PHP myself, that why. :-)
Sign In or Register to comment.