My website is available in 3 languages.
I have a banner showing on the mainpage and i would like this banner to be shown in the language selected.
So basically I am trying to work something out that the header-position 1 banner is linked to the language.
So what I need is:
1 banner in Dutch, only showing when the Dutch flag is selected.
1 banner in English, only showing when the UK flag is selected. By adding
1 banner in German, only showing when the German flag is selected.
I have tried to edit the tpl_header.php file.
if (SHOW_BANNERS_GROUP_SET1 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET1))
changed in:
if (SHOW_BANNERS_GROUP_SET1 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET1 . $_SESSION['languages_id']))
I added banner1: banner2: banner 3
My language sort order is:
Dutch: 1
English: 2
German: 3
But it seems like the code is not linking the banner to the language, but just uses a random banner each time you refresh the page or select another language.
Please please please could anyody help me out is this duable or is there already a module written for this? ( haven't found it and searched multiple times already )
Thanks
Chrissy




