How to Add Top banner ?

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

Comments

  • Hi,
    No one can help me ?

    Regards
  • acrylian Administrator, Developer
    `$_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] {

    (...)`
  • Yes it's works fine

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

    Thank a lot

    Laurent
  • acrylian Administrator, Developer
    Merci...:-)
Sign In or Register to comment.