Topic-icon SC login registration wrong redirection

Active Subscriptions:

None
13 years 1 month 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
13 years 1 month ago - 13 years 4 weeks 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: 13 years 4 weeks ago by alzander.
The topic has been locked.
Active Subscriptions:

None
13 years 1 month ago - 13 years 1 month 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: 13 years 1 month ago by rodster.
The topic has been locked.
Support Specialist
13 years 1 month ago - 13 years 1 month 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: 13 years 1 month ago by alzander.
The topic has been locked.
Active Subscriptions:

None
13 years 1 month ago #33037 by rodster
fixed thank u
The topic has been locked.
Support Specialist
13 years 1 month 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.