We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Changing profile URL | Forum

benko Zoltan
benko Zoltan Mar 5 '13
Is it safe to change the fallowing line at: oxwall_system_plugins/base/init.php on line 82: $router->addRoute(new OW_Route('base_user_profile', 'user/:username', 'BASE_CTRL_ComponentPanel', 'profile')); to $router->addRoute(new OW_Route('base_user_profile', ':username', 'BASE_CTRL_ComponentPanel', 'profile')); To have the profile URL like this: yoursite.com/username ?
The Forum post is edited by benko Zoltan Mar 5 '13
Michael I.
Michael I. Mar 11 '13
Yes, absolutely safe. Will do the trick for you.
benko Zoltan
benko Zoltan Mar 12 '13
Thank You!
cit27
cit27 Mar 14 '13
will have problems with certain other plugins....
sha
sha Mar 5 '14
useful for others:


there are issues with this change. Upgrade overwrites the core files. Also, other plugins like profile cover image gives issues. So be aware..


Thanks,

Sha

Joseph
Joseph Mar 7 '14
yes I have seen several sites use this trick to change profiles over to direct url's
Daisy Team
Daisy Mar 20 '14
Guys, the best way is to create a small plugin which will change the router if you do not want the update process rewrite your changes.