Topic-icon SCLogin - EasySocial URL Requires Updating

Active Subscriptions:

None
10 years 4 months ago #43330 by mh1
I've created a custom menu for EasySocial registration (the default was too long and had EasySocial in the URL).

I used the following method, described here:

stackideas.com/forums/registration-url

#First - You have to create a menu item (Menu type - EasySocial » Dashboard) from your backend
#Second - You have to create a hidden menu, check my screenshot : screencast.com/t/mpicOfQZ0jd
#Third - After created the hidden menu, then create a menu item (Menu type - EasySocial » Registration), then type your "create-account" in alias, check my screenshot : screencast.com/t/vNw8quXgfb


All of the other "Register" links correctly point to the new URL (www.domain.com/create-account), but the register links in SCLogin pages still point to the original URL (www.domain.com/component/easysocial/registration).

How can I change this to the new URL?

In case it helps, I ran into a similar issue with JReviews and they kindly provided a fix which they will build into the next version (apparently you need to point it to a new EasySocial registration URL).
The topic has been locked.
Support Specialist
10 years 4 months ago #43362 by alzander
We just did some tests, but would love your feedback since you're affected by the issue. To make the minor change required, please edit the /modules/mod_sclogin/mod_sclogin.php file. Around line 33, you'll see:
else if ($registerType == 'easysocial' && file_exists(JPATH_ADMINISTRATOR . '/components/com_easysocial/includes/foundry.php'))
{
    $registerLink = JRoute::_('index.php?option=com_easysocial&view=registration');
Update that bottom line to:
$registerLink = FRoute::registration();
Let me know if that helps get you the link you're looking for. We'll gladly get this fix into the next release.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
10 years 4 months ago #43535 by mh1
Hi Alex,

I'm so sorry, I had forgotten about this!

Shortly after posting, I edited the URLs for lines 35-38 of the mod_sclogin.php file with the non-SEF URLs for the respective pages.

Does your update also fix the links for forgot password, username and profile?

Mark.
The topic has been locked.
Support Specialist
10 years 4 months ago #43541 by alzander
It likely doesn't fix the forgot URLs. For those, try updating the links like:
$Itemid = FRoute::getDefaultItemId( 'account' );
$forgotUsernameLink = JRoute::_('index.php?option=com_easysocial&view=account&layout=forgetusername&Itemid=' . $Itemid);
$forgotPasswordLink = JRoute::_('index.php?option=com_easysocial&view=account&layout=forgetpassword&Itemid=' . $Itemid);
$profileLink = FRoute::profile();
The $profileLink hasn't been tested at all, but from looking at their code, it *should* work.

Please test and let me know if that helps get you going. Also, if you have feedback on the registration link code we provided before, we'd love to hear if that worked for you as well. We always like feedback, when possible, before we include changes in the next release.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
10 years 4 months ago #43574 by mh1
Hello Alex, I can confirm that all four links work perfectly and route to the correct SEF URLs.

Thank you so much!

Mark.
The topic has been locked.
Support Specialist
10 years 4 months ago #43585 by alzander
Mark,
Thanks for the feedback. We've checked the updates into our repository and they'll be included in the next release of JFBConnect/SCLogin.

If you need anything else, just let us know!

Thanks,
Alex
The topic has been locked.