Results 1 to 10 of 70

Hybrid View

  1. #1
    Join Date
    Oct 2008
    Location
    Croatia
    Posts
    1,751
    Plugin Contributions
    22

    Default Re: multi lingual banners

    Quote Originally Posted by cinziapdl View Post
    Hi there,
    I've followed the steps listed in post #22
    and it works fine,
    But I've got 4 banners in a row and as you can see on my site here
    the second one doesn't show, it copies the first one. If I activate the 4 of them they will be all same as the first one.
    I think it is because in configuration/layout settings I put 4 times wide-banners, but how else could I name them. If I try to number them there it doesn't work!
    Any idea how to solve this?
    Thanks
    Make the appropriate settings under Configuration->Layout Setting.

    Banner Display Groups - Header Position 1 = Banner1
    Banner Display Groups - Header Position 2 = Banner2
    Banner Display Groups - Header Position 3 = Banner3
    etc.

    Now, I can see your first and second banner are using Header Position 2 and header Position 3.
    Do the following:
    Banner Display Groups - Header Position 2 = Left
    Banner Display Groups - Header Position 3 = MidLeft

    Go to Banner Manager and set your first banner to group Left1 (Left2, Left3 - depending on your language IDs)
    Next, set your second banner to group MidLeft1 (MidLeft2, Midleft3...)

    That should do the trick.

  2. #2
    Join Date
    Nov 2011
    Location
    Harrogate, UK
    Posts
    16
    Plugin Contributions
    0

    Default Re: multi lingual banners

    Quote Originally Posted by balihr View Post
    Make the appropriate settings under Configuration->Layout Setting.

    Banner Display Groups - Header Position 1 = Banner1
    Banner Display Groups - Header Position 2 = Banner2
    Banner Display Groups - Header Position 3 = Banner3
    etc.

    Now, I can see your first and second banner are using Header Position 2 and header Position 3.
    Do the following:
    Banner Display Groups - Header Position 2 = Left
    Banner Display Groups - Header Position 3 = MidLeft

    Go to Banner Manager and set your first banner to group Left1 (Left2, Left3 - depending on your language IDs)
    Next, set your second banner to group MidLeft1 (MidLeft2, Midleft3...)

    That should do the trick.
    Thanks Balihr! It works perfectly!
    I guessed the other 2 Right and MidRight and it works...
    I just can't guess Header Position 1
    (the one at the top)
    But thanks so much for your help!!!!

  3. #3
    Join Date
    Oct 2008
    Location
    Croatia
    Posts
    1,751
    Plugin Contributions
    22

    Default Re: multi lingual banners

    Quote Originally Posted by cinziapdl View Post
    I just can't guess Header Position 1
    (the one at the top)
    The slideshow? That's not controlled as banners, in your case it's hard-coded and not controlled via admin so the code we used here can't be used.
    However, you can use
    PHP Code:
    <?php if ($_SESSION['languages_id']==1) {
    //your lang-1 slider here
    }
    and so on for each language...

  4. #4
    Join Date
    Nov 2011
    Location
    Harrogate, UK
    Posts
    16
    Plugin Contributions
    0

    Default Re: multi lingual banners

    Thanks Balihr, too advanced for me, I'll leave it in one language ;)

  5. #5
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: multi lingual banners

    Did you install the slider you now have by yourself? If so, just repeat that process for the other languages with balihr's if test wrapped around each one. (It can be done a bit more elegantly for multiple languages, but that will work fine.)

  6. #6
    Join Date
    Nov 2011
    Location
    Harrogate, UK
    Posts
    16
    Plugin Contributions
    0

    Default Re: multi lingual banners

    Quote Originally Posted by gjh42 View Post
    Did you install the slider you now have by yourself? If so, just repeat that process for the other languages with balihr's if test wrapped around each one. (It can be done a bit more elegantly for multiple languages, but that will work fine.)
    No, I did not install it myself. It came with the template. I can change the images from the backoffice in Banner Manager, They are under Banner-1 that is why I thought I could manage different languages from there. I've tried to rename the header group to Wide-Banners in Config. Layout Settings and in Banner Manager Wide-Banners1, Wide-Banners2. But it doesn't work. the images disappear.
    So i probably need to add some code next to the slider code, I will try Balihr suggestion and see what happens.
    Thanks guys.

  7. #7
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: multi lingual banners

    It came with the template. I can change the images from the backoffice in Banner Manager, ... But it doesn't work. the images disappear.
    Template Monster apparently hacked into the admin function and appropriated some of it for their slider, so there is no telling exactly what it will take to use it for multiple languages. You can easily duplicate the slider code inside if() tests, but you will probably need to change some bit of code inside the duplicated slider to reference the different banner groups. We can't help with that because we don't know what they did.

 

 

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

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