Member
Member
darkufo   2011-03-31, 17:13
#1
Hi,

I've added a box at the bottom of the screen that allows users to take the embed code of the images.

eg here

http://spoilertv.co.uk/images/whitechapel/series-2/cast-promotional-photos/

However the embed code is also showing up on pages where there are just subalbums to display.

eg
http://spoilertv.co.uk/images/whitechapel/

Is there anyway I can control this so that they only display on the album images pages?

Many thanks in advance
Administrator
Administrator
acrylian   2011-03-31, 17:22
#2
Add a check if the album has images. See the functions documentation.
Member
Member
darkufo   2011-03-31, 17:30
#3
Do you know the name of the function, there are so many in the doc I'm a little lost.

Sorry.
Administrator
Administrator
acrylian   2011-03-31, 18:21
#4
http://www.zenphoto.org/documentation/classes/Album.html#methodgetNumImages
http://www.zenphoto.org/documentation/functions/_template-functions.php.html#functiongetNumImages
Member
Member
darkufo   2011-03-31, 18:33
#5
Thank you very much
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.