Zen Cart Logo
Forums / Basic Configuration / multi lingual banners

multi lingual banners

Views: 32,629

Results 1 to 20 of 70
12 Oct 2007, 10:27 PM
#1
ant avatar

ant

New Zenner

Join Date:
Sep 2007
Posts:
4
Plugin Contributions:
0

multi lingual banners

Hi,
Is this possible to set up banners that will only display in a certain language. Fro instance I have my site in Anglish and French, I want to display the banner in French for french and in english for other nationalities.

Can we do it?

How can I have several banners running in parallele.

Cordialement,
/rs, A

13 Oct 2007, 5:18 AM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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:

    $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 ...

23 Oct 2007, 12:05 AM
#3
27gerd27 avatar

27gerd27

New Zenner

Join Date:
Nov 2006
Posts:
32
Plugin Contributions:
0

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

23 Oct 2007, 5:51 AM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: multi lingual banners

If you were to enter in the Configuration ... Layout Settings ... the word:
fred

for the setting on:

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 ...

23 Oct 2007, 12:43 PM
#5
27gerd27 avatar

27gerd27

New Zenner

Join Date:
Nov 2006
Posts:
32
Plugin Contributions:
0

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

5 Nov 2007, 11:04 PM
#6
27gerd27 avatar

27gerd27

New Zenner

Join Date:
Nov 2006
Posts:
32
Plugin Contributions:
0

Re: multi lingual banners

Hi Ajeh,

could you be so kind and give me a bit more information?

Thank you very much...

Gerd

25 Aug 2009, 12:09 PM
#7
poopette avatar

poopette

New Zenner

Join Date:
Mar 2009
Location:
In Belgium now
Posts:
6
Plugin Contributions:
0

Re: multi lingual banners

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

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:

$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
25 Aug 2009, 12:18 PM
#8
poopette avatar

poopette

New Zenner

Join Date:
Mar 2009
Location:
In Belgium now
Posts:
6
Plugin Contributions:
0

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 :

if (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2))

and transform it into :

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 !!!

30 Aug 2009, 11:04 AM
#9
littlehawk avatar

littlehawk

New Zenner

Join Date:
Jan 2009
Posts:
85
Plugin Contributions:
0

Re: multi lingual banners

Could anyone explain more, what is the next step after this parse is changed?

10 Sep 2009, 8:38 PM
#10
andreahd avatar

andreahd

New Zenner

Join Date:
Sep 2009
Posts:
9
Plugin Contributions:
0

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 !!

11 Sep 2009, 1:15 PM
#11
andreahd avatar

andreahd

New Zenner

Join Date:
Sep 2009
Posts:
9
Plugin Contributions:
0

Re: multi lingual banners

I really would appreciate the help. some tips to configure multilenguage banner. nobody knows?

11 Sep 2009, 8:22 PM
#12
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: multi lingual banners

andreahd:

I really would appreciate the help. some tips to configure multilenguage banner. nobody knows?

goto

admin -> tools -> banner manager

click the "new banner" button

enter your Banner Title:
enter your Banner URL:

create your new Banner Group: (do this by entering the information in the text box which is below the dropdown menu.

for your english language version name it mybanner1
for your other language version name it mybanner2

click the insert button to save your new banner.

goto

admin -> configuration -> layout settings -> Banner Display Groups - Side Box banner_box

click the edit button

enter your new banner group designations in the text box

SideBox-Banners:mybanner1:mybanner2

click the update button

follow the instructions provided at the beginning of this thread in order to change the appropriate sidebox.

16 Sep 2009, 6:51 PM
#13
andreahd avatar

andreahd

New Zenner

Join Date:
Sep 2009
Posts:
9
Plugin Contributions:
0

Re: multi lingual banners

thank you very much for responding!!.
I did that which you say. then i change file banner_box.php

$banner_box_group= SHOW_BANNERS_GROUP_SET7 . $_SESSION['languages_id']; and not do it! I'm doing wrong?

16 Sep 2009, 7:06 PM
#14
andreahd avatar

andreahd

New Zenner

Join Date:
Sep 2009
Posts:
9
Plugin Contributions:
0

Re: multi lingual banners

thanks ! works now. thank you very much!

18 Sep 2009, 7:06 PM
#15
jeet_kune_do avatar

jeet_kune_do

Zen Follower

Join Date:
Nov 2008
Location:
Slovenija
Posts:
119
Plugin Contributions:
0

Re: multi lingual banners

I realy don' t understand, how should be done.

I have 3 different languages. (eng,it, sl)

Can you please explain step by step.

  1. I should rewrite the /sideboxes/my_template/banner_box.php
 $banner_box_group= SHOW_BANNERS_GROUP_SET7 . $_SESSION['languages_id'];  

or

$banner_box_group= SHOW_BANNERS_GROUP_SET7 . $_SESSION['en'];

?

If I wish to create this banners in flash?

Thank you for your help!

19 Sep 2009, 9:20 AM
#16
jeet_kune_do avatar

jeet_kune_do

Zen Follower

Join Date:
Nov 2008
Location:
Slovenija
Posts:
119
Plugin Contributions:
0

Re: multi lingual banners

The banner change every time I klick the languages flag, but is not compatible with the language selected. If I klick few time the english flag it displayed every time a different language.

I rewrite the /sideboxes/my_template/banner_box.php to

 $banner_box_group= SHOW_BANNERS_GROUP_SET7 . $_SESSION['languages_id'];  

I changed in the layout settings for:

Banner Display Groups - Side Box banner_box, to: mybanner1:mybanner2:mybanner3

  1. For every language I set the banner to different group.

For english to: mybanner1 , for italian to: mybanner2, for slovene to: mybanner3

What I'm doing wrong?

Thank's for your help!

21 Sep 2009, 11:03 AM
#17
jeet_kune_do avatar

jeet_kune_do

Zen Follower

Join Date:
Nov 2008
Location:
Slovenija
Posts:
119
Plugin Contributions:
0

Re: multi lingual banners

I need that for the english language only the english banner version appears. And so on for the other language.

Right now, when I access to the english language it appears one time the italian banner version, one time the slovenian....

I hope I explain my situation.

Thank's for your help!

30 Oct 2009, 12:52 PM
#18
andreahd avatar

andreahd

New Zenner

Join Date:
Sep 2009
Posts:
9
Plugin Contributions:
0

Re: multi lingual banners

hello I did and it worked very well but I can not make me work for bannersAll. has anyone tried it?

17 Nov 2009, 9:33 AM
#19
ferid avatar

ferid

New Zenner

Join Date:
Jun 2005
Posts:
65
Plugin Contributions:
0

Re: multi lingual banners

Can't get this to work for me.
I have 2 flashbanners. One in dutch and one in english.
Created 2 banners (betaal veilig, pay secure). I attached each banner to a new group I created, paysecure1 and paysecure2.
I changed Configuration->Layout Settings->Banner Display Groups - Side Box banner_box to SideBox-Banners:paysecure1:paysecure2
I changes the following line in /includes/modules/sideboxes/banner_box.php:
$banner_box_group= SHOW_BANNERS_GROUP_SET7;
to
$banner_box_group= SHOW_BANNERS_GROUP_SET7 . $_SESSION['languages_id'];

This doesn't work for me. I also don't understand how this could work :(

26 Dec 2009, 3:16 PM
#20
b_funtomas avatar

b_funtomas

New Zenner

Join Date:
Mar 2008
Posts:
18
Plugin Contributions:
0

Re: multi lingual banners

ferid:

Can't get this to work for me.
I have 2 flashbanners. One in dutch and one in english.
Created 2 banners (betaal veilig, pay secure). I attached each banner to a new group I created, paysecure1 and paysecure2.
I changed Configuration->Layout Settings->Banner Display Groups - Side Box banner_box to SideBox-Banners:paysecure1:paysecure2
I changes the following line in /includes/modules/sideboxes/banner_box.php:
$banner_box_group= SHOW_BANNERS_GROUP_SET7;
to
$banner_box_group= SHOW_BANNERS_GROUP_SET7 . $_SESSION['languages_id'];

This doesn't work for me. I also don't understand how this could work :(

Thats right! How should the shopping cart know: is now fred1 assigned to German or English language

Have searched a lot for this without results :(

The only thing i could find was a turtorial for template monster multi language banner

info.template-help.com/files/eoc/oscommerce/th/04_how_to_define_a_different_banner_per_language.htm