Change language module

January 2013 Joomla Template
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
Wed Dec 18, 2013 12:19 am
Reply with quote
Report this post
Hi, I have seen the template "Magazine" has a module to select languages​​. This module is very down on the left.
I will not use login and register, I would place language selector there, but when I select the "login" module, the button appears.
What can I do to display directly the language?
User avatar
Junior Boarder

teitbite
Wed Dec 18, 2013 10:21 am
Reply with quote
Report this post
Hi

Login position is presented in popup. To make what You need You will have to replace the button triggering popup with a new module position.

Please edit file: /layout/default.php and replace the code:

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; ?>


with:

Code: Select all
<jdoc:include type="modules" name="lang" />


so a module position "lang" will be available to use.

When You do this please show me Your site. This may not be all.
User avatar
Moderator

GK User
Wed Dec 18, 2013 12:02 pm
Reply with quote
Report this post
Hi,
I have made changes, now only a white screen appears.

rosariba-cp72.webjoomla.es
User avatar
Junior Boarder

GK User
Wed Dec 18, 2013 7:18 pm
Reply with quote
Report this post
I disabled the module, it does not allow me to work anywhere, only see a blank page.
I hope to hear from you.
User avatar
Junior Boarder

GK User
Wed Dec 18, 2013 7:21 pm
Reply with quote
Report this post
Although I can not work off the module.
I have returned to leave everything as it was until you tell me otherwise.
Thank you.
User avatar
Junior Boarder

teitbite
Fri Dec 20, 2013 9:48 am
Reply with quote
Report this post
Hi

Yes, please remove all my changes and send me an access to ftp, so I'll make it for You. White page appear when there are php error so I believe You may have deleted a little bit too much :)
User avatar
Moderator

teitbite
Wed Dec 25, 2013 12:35 pm
Reply with quote
Report this post
Hi

Sorry, could not answer sooner becuase of the Holidays. Can You pleas check the access You've send me ? It's not working.
User avatar
Moderator

teitbite
Mon Dec 30, 2013 5:45 pm
Reply with quote
Report this post
Hi

Sorry, my bad with a access. I've been using site domain instead of host. I've replaced the code. Please publish lang module in "lang" module position now.
User avatar
Moderator

GK User
Mon Dec 30, 2013 8:02 pm
Reply with quote
Report this post
Hi, thanks for the help.
Now you see on the left, under the logo, not the right as it should be. In addition, language selector appears twice, top and bottom, on the left.
User avatar
Junior Boarder

teitbite
Tue Dec 31, 2013 2:42 am
Reply with quote
Report this post
Hi

Yes, that's what I was epecting to see. Please now add ths code to css:

Code: Select all
#gkLang {
display: none;
}

#lang_module {
float: right;
}
User avatar
Moderator

GK User
Tue Dec 31, 2013 3:47 am
Reply with quote
Report this post
Thank you, as always great with Gavick!
User avatar
Junior Boarder

teitbite
Tue Dec 31, 2013 4:09 pm
Reply with quote
Report this post
Hi

No problem. Glda I could help and sorry it took so long :(
User avatar
Moderator


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.