I want it to change from -- http://mysite.com/profile/USERNAME
to -- http://mysite.com/USERNAME
please help :3
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Matt Beckett@Beck24
Matt Beckett - 0 likes
- Matt Beckett@Beck24
Matt Beckett - 0 likes
- DhrupDeScoop@Dhrup2000
DhrupDeScoop - 0 likes
- TahoeBilly@TahoeBilly
TahoeBilly - 0 likes
You must log in to post replies.That falls somewhere between "extremely difficult" and "can't be done". I'm leaning more toward "can't be done".
I take that back, it's more extremely difficult with a high chance of major bugs...
Here's how it would have to be done - and I'm curious if anyone else would have any better ideas
1. Hook into the 'route', 'all' plugin hook
2. Create a catch-all for unregistered pagehandlers
3. See if an unregistered pagehandler == valid username
4. if so, call the profile pagehandler - do some hackish stuff to reshuffle the page segments
5. hook into the 'view','all' plugin hook and parse/replace all urls to remove the "profile" pagehandler
6. Create a redirect from the profile pagehandler to just the username in case of out-of-date links/bookmarks
As I said, extremely difficult, most likely error prone.
no no no no...
ask deScoop foist ! ;-P
o-l-d topic ;-)
sans elgg api logi, but simple htaccess
first cut by yours truly anoyying monkey @circa 3 years back
http://community.elgg.org/mod/groups/topicposts.php?topic=79757&group_guid=52477
have a browse..;-oO
Vazco built a plugin. It slowed my 1.7 system down quite a bit so I stopped using it.