Topic-icon SC login registration wrong redirection

Active Subscriptions:

None
10 years 11 months ago #32971 by rodster
with the module popup enabled + Jomsocial setting ON my register link still goes to the default Joomla login

bit.ly/10AjhM5
The topic has been locked.
Support Specialist
10 years 11 months ago - 10 years 11 months ago #32983 by alzander
Yup, that there is a bug. To fix, edit the /modules/mod_sclogin/tmpl/login.php file. On line 14, you'll find this really long line:
echo '<div class="sclogin-modal-links"><a class="btn btn-primary" href="#login-modal" role="button" data-toggle="modal">Login</a><a class="btn" href="' . JRoute::_('index.php?option=com_users&view=registration', false) . '">Register</a></div>';
Modify that like so (removing the JRoute long line and replacing with $registerLink):
echo '<div class="sclogin-modal-links"><a class="btn btn-primary" href="#login-modal" role="button" data-toggle="modal">Login</a><a class="btn" href="' . $registerLink . '">Register</a></div>';

That should fix you right up, but if not, let us know. This will definitely be in the next release.

Thanks,
Alex
Last edit: 10 years 11 months ago by alzander.
The topic has been locked.
Active Subscriptions:

None
10 years 11 months ago - 10 years 11 months ago #33022 by rodster
Hmm I wasnt able to find that line in /modules/mod_sclogin/mod_sclogin.php
note the different path to yours?
Last edit: 10 years 11 months ago by rodster.
The topic has been locked.
Support Specialist
10 years 11 months ago - 10 years 11 months ago #33026 by alzander
Sorry, the file should be /modules/mod_sclogin/tmpl/login.php . I missed the tmpl path. Look there, in the login.php file, and hopefully that will get you going.

Thanks,
Alex
Last edit: 10 years 11 months ago by alzander.
The topic has been locked.
Active Subscriptions:

None
10 years 11 months ago #33037 by rodster
fixed thank u
The topic has been locked.
Support Specialist
10 years 11 months ago #33049 by alzander
Awesome. Glad to hear that worked, and thanks for letting us know about it. That change will definitely be in the next release.

Thanks,
Alex
The topic has been locked.