All right, back to normal again.. would you like to share the phpmyadmin id's cause I couldn't find them.. thanks
Printable View
All right, back to normal again.. would you like to share the phpmyadmin id's cause I couldn't find them.. thanks
what do you mean by "share phpmyadmin ids" ??? these ids are unique to your install... And I don't understand why you couldn't find the ids??? Can you access your database from phpmyadmin?
Maybe somebody knows, how to show different product images depending from language? Thanks.
In my case for making my main banner changeable the only thing I need to do is to set Multiple Banner Group:
Banner Display Groups - Header Position 2 to Wide-Banners2:Wide-Banners3
...that is it !!! nothing else.. no need of replacing:
if (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2))
with:
if (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2 . $_SESSION['languages_id']))
...but I still have a problem with making it compatible with the language selected. If I klick few time the english flag it displayed almost every time a different language...
somebody needs to explain clearly step by step how to fix it, PLEASE !!! :blink:
Thank you in advance!!!
In my case for making my main banner changeable the only thing I need to do is to set Multiple Banner Group:
Banner Display Groups - Header Position 2 to Wide-Banners2:Wide-Banners3
...that is it !!! nothing else.. no need of replacing:
if (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2))
with:
if (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2 . $_SESSION['languages_id']))
...but I still have a problem with making it compatible with the language selected. If I klick few time the english flag it displayed almost every time a different language...
somebody needs to explain clearly step by step how to fix it, PLEASE !!! :blink:
Thank you in advance!!!
I followed all instructions in this thread, no success. Still getting different language banners randomly and not ordered on language id.
Can someone post the right solution for this, because i think many people have this problem and dont know how to fix this.
Thanks in advance!
For me it did not work either. Would it be possible to show the steps with screenprints?
This would be very helpful.
Thanks in advance!
After strugling for over 2 hours with the convoluted suggestions for multilingual banners I think I got a better solution:
In my English/Spanish site:
Assign includes/modules/your_template/banner_box.php to language 1 (English by Default) by changing the following code:
// test if box should display
$show_banner_box = true;
to
// test if box should display
if ($_SESSION['languages_id'] == 1) {
$show_banner_box = true;
}
then do the same for banner_box2.php but now
// test if box should display
if ($_SESSION['languages_id'] == 2) {
$show_banner_box = true;
}
Now in Banner Manager Assign your english banners to SideBox-Banners
Leave Layout Banner Display Group Side box banner_box as SideBox-Banners (the default)
Change:
Layout Banner Display Group Side box banner_box2 to WHATEVER
In Banner Manager assign your new banners with language id 2 to the same WHATEVER name you assign to banner_box2 in Layout.
Good luck
That will work fine for two languages, but not for more.
Balihr's directions in post 22 are the correct answer, if followed exactly. I reproduce them here, with red highlighting on the points that people seem to be missing:
I wanted my header's Wide-Banners to be multi-lingual.
So, for all those still looking for the answer, here we go:
1. Locate your tpl_header.php file and find this line:
and replace it withCode:if (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2))
2. Go to Configuration->Layout Settings and change Banner Display Groups - Header Position 2 to show Wide-Banners (write that in the field)Code:if (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2 . $_SESSION['languages_id']))
3. Go to Tools->Banner Manager. Edit your banner for your first language and manually assign it to banner group Wide-Banners1. Edit your banner for your second language and manually assign it to banner group Wide-Banners2. Notice the number 1 - this number represents your language id. Therefore, if you have english (1), german (2) etc, Wide-Banners1 will show when english language is selected and Wide-Banners2 when german is selected. Note: language ids are related to your installed languages, not a general code - if you don't know what id you want to use, simply try different numbers 1,2,3,4,5...
And that's it! If you want to use it on a different position, change the GROUP_SET number accordingly.
Could it be any easier?
This also works with Flash banners (if you previously set up Flash to run). If you want a Flash banner, use the HTML banner version...
All thanks go to Ajeh!
(end of balihr's instructions)