ZenphotoCMS Forum
How to Add Top banner ? - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: How to Add Top banner ? (/thread-3150.html)



How to Add Top banner ? - Laurent - 2008-06-23

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




How to Add Top banner ? - Laurent - 2008-06-24

Hi,
No one can help me ?

Regards




How to Add Top banner ? - acrylian - 2008-06-24

$_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] {

(...)`




How to Add Top banner ? - Laurent - 2008-06-24

Yes it's works fine

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

Thank a lot

Laurent




How to Add Top banner ? - acrylian - 2008-06-24

Merci...:-)