Re: multi lingual banners
You could build multiple banner groups and then where each banner group appears have it utilize a different group based on language ...
Right now, it pulls based only on the banner group name ...
With a bit of thought you could have the banner sidebox that uses:
SHOW_BANNERS_GROUP_SET7
Actually utilize an more customized method such as:
PHP Code:
$banner_box_group= SHOW_BANNERS_GROUP_SET7 . $_SESSION['languages_id'];
This would alter the name of the banner group based on the language so if you had a group called:
fred1 for english
fred2 for french
etc. etc.
depending on how your languages are setup, you could build language oriented banners ...
Re: multi lingual banners
Hi,
i made your changes in the php-file, but what i have to do with fred1, fred2?
Could you be so kind and give me any hint?
Thank you very match
Gerd
Re: multi lingual banners
If you were to enter in the Configuration ... Layout Settings ... the word:
fred
for the setting on:
Quote:
Banner Display Groups - Side Box banner_box
The Banner Display Groups can be from 1 Banner Group or Multiple Banner Groups
For Multiple Banner Groups enter the Banner Group Name separated by a colon :
Example: Wide-Banners:SideBox-Banners
Default Group is SideBox-Banners
What Banner Group(s) do you want to use in the Side Box - banner_box?
Leave blank for none
This should produce fred1 fred2 fred3 etc. for the languages ...
Re: multi lingual banners
Hi Ajeh,
i wrote this:
$banner_box_group= SHOW_BANNERS_GROUP_SET7 . $_SESSION['languages_id'];
to the /httpdocs/includes/modules/sideboxes/banner_box.php
I leave this in the Layout Settings unchanged:
Banner Display Groups - Side Box banner_box SideBox-Banners
(I understood this will produce fred1, fred2 etc.)
What a name for the banner group now i have to use in the Banner Manager ?
just fred1 or fred2 or
SideBox-Banners-fred1 etc.
After i changed the php-file the the banner disapeares
I am sure it is easy, but...
Could you one nore try to help http://www.zen-cart.com/forum/images/smilies/mellow.gif
:mellow:
many thanks
Gerd
Re: multi lingual banners
Hi Ajeh,
could you be so kind and give me a bit more information?
Thank you very much...
Gerd
Re: multi lingual banners
Quote:
Originally Posted by
Ajeh
You could build multiple banner groups and then where each banner group appears have it utilize a different group based on language ...
Right now, it pulls based only on the banner group name ....
Nice, thx
Quote:
Originally Posted by
Ajeh
With a bit of thought you could have the banner sidebox that uses:
SHOW_BANNERS_GROUP_SET7
Actually utilize an more customized method such as:
PHP Code:
$banner_box_group= SHOW_BANNERS_GROUP_SET7 . $_SESSION['languages_id'];
About the explanation above, how can I use it also for the wide banner at the top of the page (not for the sidebox) ? :bangin:
Thanks in advance for your answer.
Sincerly
Re: multi lingual banners
I've found it.
Assume you want the 'multilingual process' for the wide banner, find in the header file the follow condition :
PHP Code:
if (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2))
and transform it into :
PHP Code:
if (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2 . $_SESSION['languages_id']))
... it works for me...
Thank you a lot with these explanations guys, you save me a lot of mone... oups time !!!
Re: multi lingual banners
Could anyone explain more, what is the next step after this parse is changed?
Re: multi lingual banners
hello, I change the file / public_html / zencart / includes / templates / classic / templates / tpl_header.php with
" if (SHOW_BANNERS_GROUP_SET2! =''& & $ banner = zen_banner_exists ( 'dynamic', SHOW_BANNERS_GROUP_SET2. $ _SESSION [ 'languages_id']) )"
but I really do not know how to put that banner in two languages English and espaņol.
much appreciate the help..... thanks !!