1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.4 language_chooser in forum_list?

Discussion in 'Styling and Customization Questions' started by rafass, May 13, 2015.

  1. rafass

    rafass Well-Known Member

    I would like to use this language Chooser in my Homepage:
    [​IMG]
    like here: https://xenforo.com/community/misc/language/
    Code:
    <xen:title>{xen:phrase language_chooser}</xen:title>
    
    <xen:container var="$head.metaNoindex"><meta name="robots" content="noindex" /></xen:container>
    
    <xen:require css="chooser_overlay.css" />
    
    <div class="section" data-overlayClass="chooserOverlay">
    
        <h3 class="subHeading">{xen:phrase select_language_in_which_this_site_should_be_shown}</h3>
    
        <ol class="primaryContent chooserColumns threeColumns">
    
            <xen:foreach loop="$languages" value="$language">
                <li><a href="{xen:link 'misc/language', '', 'language_id={$language.language_id}', '_xfToken={$visitor.csrf_token_page}', 'redirect={$redirect}'}">{$language.title}</a></li>
            </xen:foreach>
    
        </ol>
    
        <div class="sectionFooter overlayOnly"><a class="button primary OverlayCloser">{xen:phrase cancel}</a></div>
    
    </div>
    But using trying to use that code in forum_list there are errors in the template or simple doesn't work.
    Any idea?
    Many Thanks!
     
  2. rafass

    rafass Well-Known Member

    UP [Still want this] [paid] more info pm.
     
  3. Amaury

    Amaury Well-Known Member

    If you have more than one language, there should already be a language chooser on all pages.
     
  4. rafass

    rafass Well-Known Member

    I have it, sure, [in the footer - left] and open the typical overlay.
    but I would like to have this chooser in forum_list above the forums
    aaa1.gif
     
  5. Amaury

    Amaury Well-Known Member

    That's already possible by opening the chooser in a new tab by right-clicking or disabling overlays.
     
  6. rafass

    rafass Well-Known Member

    Thank you maru, but no. I know that, but maybe I can not explain myself clearly.
    not in /misc/language/ , not opening the chooser in a new tab, disabling overlays, other places or methods, no.
    in forum_list above the forums. Simple as that ;)
    Seems this is a tricky customisation.
     
  7. Amaury

    Amaury Well-Known Member

    I missed this in your last reply, but in your OP you did not mention that.
     

Share This Page