Change login button to register

Rate this topic: Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.
GK User
Thu Nov 28, 2013 1:05 am
Reply with quote
Report this post
I would like to change the login button (top - right) to register and either have the register page be in the modal or just make the button go to the regular register page. Can that be done easily?
User avatar
Fresh Boarder

GK User
Thu Nov 28, 2013 4:10 pm
Reply with quote
Report this post
Hi.
It would be easy , so don't worry.
Few information at the beginning.

By default in this place we have enabled/published "login" module, but this module was overridden by us also inside layout, I mean changed.
That's why you see only "LOG IN"
User avatar
Platinum Boarder

GK User
Thu Nov 28, 2013 4:33 pm
Reply with quote
Report this post
Right now you see "LOG IN" - but inside modal window there is "REGISTER" also ...
register.png


but how to change default link.... you'd ask me again.

there is few solutions, this is one of them....

1) Open this file templates/gk_musicstate/layouts/default.php
2) In line 105,
Code: Select all
    <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>


change to
Code: Select all
 <a id="gkLogin" href="index.php?option=com_users&view=registration">REGISTRATION</a>


Save, and upload changed file

p.s.
1) Of course you can change URL to any other.
2) Or replace "REGISTRATION" word to "Sign up" - as you wish.
But if you planning to do multilingual website use TPL_GK_LANG_REGISTER
User avatar
Platinum Boarder


cron