Member
Member
Laurent   2008-06-23, 20:45
#1

Hi all,
I tried to have a banner a the top of the album.php file and image.php file.
I follow this thread :
http://www.zenphoto.org/support/topic.php?id=2376&replies=20#post-14254

I put the code :
`$tags = getTags();

switch ($tags[0]) {

case "france":

$bannerimage = 'france.jpg';

break;

case "perou":

$bannerimage = 'perou.jpg';

break;

echo "";`

I work in album.php

but i cant have the banner in image.php according to the album tag even when i put this code in image.php :
$_zp_current_album->getTags();

Can you help me ?

Thank
Laurent

Member
Member
Laurent   2008-06-24, 10:45
#2

Hi,
No one can help me ?

Regards

Administrator
Administrator
acrylian   2008-06-24, 11:05
#3

$_zp_current_album->getTags()returns an array as getTags() does. You need to use it the same way:
`$tags = $_zp_current_album->getTags();

switch ($tags[0] {

(...)`

Member
Member
Laurent   2008-06-24, 19:46
#4

Yes it's works fine

Acrylian doesn't speak french, english or german ...
Acrylian speak PHP, MySQL, Apache :-)

Thank a lot

Laurent

Administrator
Administrator
acrylian   2008-06-24, 20:10
#5

Merci...:-)

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