Position of the Login

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
Fri Oct 10, 2014 1:27 pm
Reply with quote
Report this post
Hi.
I'm using the game template and see the login "button" on the right top corner.
Where can i setup this? Is it possible to place this button (with the popup function) in the footer menu?

Thank you.
cheers
User avatar
Senior Boarder

teitbite
Sun Oct 12, 2014 3:27 pm
Reply with quote
Report this post
Hi

please use Custom HTML module with this code in it:

Code: Select all
<a id="gkLogin" href="/~teitbite/gk_game_30/index.php/joomla-pages-ii/user-login">log in</a>
User avatar
Moderator

GK User
Mon Oct 13, 2014 11:53 am
Reply with quote
Report this post
Thank you!
It works, but without the popup function. Have you an idea?
User avatar
Senior Boarder

GK User
Tue Oct 14, 2014 10:20 am
Reply with quote
Report this post
And another question: How can I hide the Login button in the top-nav? I can't find the module...
User avatar
Senior Boarder

teitbite
Wed Oct 15, 2014 10:48 am
Reply with quote
Report this post
Hi

Only first occurences of this button in code will trigger popup, so removing the top button is a fix for this problem. To remove it edit file /layout/default.php and remove this code:

Code: Select all
           <?php if($this->API->get('login_url', '') != '') : ?>
             <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; ?>

User avatar
Moderator

GK User
Mon Oct 20, 2014 11:38 am
Reply with quote
Report this post
Thanks a lot!
User avatar
Senior Boarder


cron