Page 1 of 7 123 ... LastLast
Results 1 to 10 of 70
  1. #1
    Join Date
    Sep 2007
    Posts
    4
    Plugin Contributions
    0

    Default 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

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default 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_groupSHOW_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 ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Nov 2006
    Posts
    32
    Plugin Contributions
    0

    help question 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

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default 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 ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  5. #5
    Join Date
    Nov 2006
    Posts
    32
    Plugin Contributions
    0

    Default 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


    many thanks

    Gerd

  6. #6
    Join Date
    Nov 2006
    Posts
    32
    Plugin Contributions
    0

    Default Re: multi lingual banners

    Hi Ajeh,

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

    Thank you very much...

    Gerd

  7. #7
    Join Date
    Mar 2009
    Location
    In Belgium now
    Posts
    6
    Plugin Contributions
    0

    help question Re: multi lingual banners

    Quote Originally Posted by Ajeh View Post
    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 View Post
    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_groupSHOW_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) ?

    Thanks in advance for your answer.
    Sincerly

  8. #8
    Join Date
    Mar 2009
    Location
    In Belgium now
    Posts
    6
    Plugin Contributions
    0

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

  9. #9
    Join Date
    Jan 2009
    Posts
    85
    Plugin Contributions
    0

    Default Re: multi lingual banners

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

  10. #10
    Join Date
    Sep 2009
    Posts
    9
    Plugin Contributions
    0

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

 

 
Page 1 of 7 123 ... LastLast

Similar Threads

  1. multi lingual banners
    By jfl_saudi in forum Basic Configuration
    Replies: 2
    Last Post: 29 Nov 2010, 11:41 AM
  2. I'd like to make my site multi-lingual...
    By joyjoy in forum Addon Language Packs
    Replies: 8
    Last Post: 4 Nov 2010, 07:36 AM
  3. Replies: 2
    Last Post: 27 Apr 2010, 06:25 PM
  4. Multi lingual ez-pages link to more information sidebox.
    By juza123 in forum Basic Configuration
    Replies: 0
    Last Post: 12 Mar 2007, 03:57 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR