By JH on Thursday, 05 June 2014
Posted in Technical Issues
Replies 7
Likes 0
Views 554
Votes 0
Hi guys,

Is it possible to change the URL path to a user's profile? For example, if a user with a free membership has the URL http://www.mysite.com/community-free/johndoe, then upgrades to a paid membership, his URL should change to http://www.mysite.com/community-paid/johndoe. I'm using PayPlans to control what menu module is displayed to the user. There are two different menus: the free membership menu and the paid membership menu.

Thank you,

James
Hello James,

Yep, Sh404 is the way to go or you could try the "Profile URL" from mike simbunch.
·
Friday, 06 June 2014 02:47
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello James,

I am sorry for the delay of this reply.

I am sorry but this is not possible at the moment where EasySocial doesn't cater the menu item that way You will need to hack EasySocial to achieve this.


Attached the customized router.php file for EasySocial to retrieve the menu item based on the menu item's access level.

Download this file and copy to folder 'JOOMLA/administrator/components/com_easysocial/includes/' and overwrite the existing 'router.php'. ( Remember to backup the original file first before you overwrite the file.

Next, you will need to have two menu items to your EasySocial. One menu item's access configured to 'public' and the other one to 'registered'. Please see
http://screencast.com/t/Ai4LYJgQ

With the hacks and the way the menu items configured, when a guest visit your EasySocial, EasySocial will use 'community-free' menu item.
Hope this help and have a nice day
Sam
·
Thursday, 05 June 2014 14:06
·
0 Likes
·
0 Votes
·
0 Comments
·
Perhaps ES should some day have an option in the user list to display specific profile types. Community Builder has this feature. The idea I mentioned does not involve the use of another menu item type (this way we don't clutter the menu items when choosing which one to use).
·
Thursday, 05 June 2014 15:06
·
0 Likes
·
0 Votes
·
0 Comments
·
·
Thursday, 05 June 2014 16:02
·
0 Likes
·
0 Votes
·
0 Comments
·
Sam, any suggestion on router.php if we want a profile url appended right after the website name ? ... or maybe it can be achieved without hacking the core router.php ?

Something like: http://www.website.com/johndoe
·
Thursday, 05 June 2014 17:39
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Mist,

Sam, any suggestion on router.php if we want a profile url appended right after the website name ? ... or maybe it can be achieved without hacking the core router.php ? Something like: http://www.website.com/johndoe


If you are using Joomla core sef, then I am sorry but this is not possible because the 'profile' ( this is a view name ) must be presented in the url so that Joomla can parse the url properly and redirect to correct page.

If you are using 3rd party SEF component such as sh404sef, then this is already supported

Hope this help and have a nice day!
Sam
·
Thursday, 05 June 2014 17:49
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Sam,

Thanks for your helpful replies. Excellent. But, to be more specific, I would like to route all memberships (free and paid) through the same menu item so that everyone has the URL structure http://www.mysite.com/community/username (or, better yet, http://www.mysite.com/username). Perhaps sh404sef is the solution?

Thanks again,

James
JH
·
Friday, 06 June 2014 00:26
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post