LANG POSITION

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Thu Feb 21, 2013 8:18 am
Reply with quote
Report this post
Hi,
By default language switcher module published on "lang position" is displayed just above the footer menu. Does someone explain to me how & where I can change this position.
Thanks in advance
User avatar
Junior Boarder

GK User
Thu Feb 21, 2013 8:35 am
Reply with quote
Report this post
The only way is to modify template code and add some CSS for new position, where you want to move the lang position ?
User avatar
Platinum Boarder

GK User
Thu Feb 21, 2013 8:56 am
Reply with quote
Report this post
Instead of "Login & Register" in userarea
User avatar
Junior Boarder

GK User
Fri Feb 22, 2013 8:52 am
Reply with quote
Report this post
Please open file layotus/default.php and cut this code :

Code: Select all
  <?php if($this->API->modules('lang')) : ?>
    <section id="gkLang">
       <div class="gkPage">
            <jdoc:include type="modules" name="lang" style="<?php echo $this->module_styles['lang']; ?>" />
         </div>
    </section>
    <?php endif; ?>


then paste before this part :

Code: Select all
  <?php if(($this->API->get('reg_link') == '1' && $userID == 0) || $this->API->modules('login')) : ?>
          <div id="gkUserArea">
             <?php if($this->API->modules('login')) : ?>
             <a href="<?php echo $this->API->get('login_url', 'index.php?option=com_users&view=login'); ?>" id="gkLogin"><?php echo ($userID == 0) ? JText::_('TPL_GK_LANG_LOGIN') : JText::_('TPL_GK_LANG_LOGOUT'); ?></a>
             <?php endif; ?>
             
             <?php if($this->API->get('reg_link') == '1' && $userID == 0) : ?>
             <a href="<?php echo $this->API->get('reg_url', '#'); ?>" id="gkRegister"><?php echo JText::_('TPL_GK_LANG_REGISTER'); ?></a>
             <?php endif; ?>
          </div>
          <?php endif; ?>
User avatar
Platinum Boarder

GK User
Fri Feb 22, 2013 9:37 am
Reply with quote
Report this post
Hi,
I I deleted and pasted the new lines of code, but the result is not the one expected, "login & register are displayed 2 times, 1 on the top right corner and 1 on the bottom right corner (take a look www.e4biz.ch/TEMP)
I unpublished "login and gk_register modules" ("login" is no longer displayed but "register" is always displayed) and I also tried to change the position of the module lang on "login or register" but with no better success!
Thanks for your help
User avatar
Junior Boarder

GK User
Fri Feb 22, 2013 4:19 pm
Reply with quote
Report this post
Sorry,
I didn't read your message properly ... :?
So now I have moved the language switcher to the right top corner but not yet to the right position...flags are too high & too close to the banner (e4biz.ch/TEMP)
I tried to change the CSS of gkpage but without success !
Thanks in advance
User avatar
Junior Boarder

GK User
Sat Feb 23, 2013 11:43 am
Reply with quote
Report this post
Hi,
why don't you add flag/lang icons on the left side where have you got menu it's also good place.
User avatar
Platinum Boarder


cron