Dear Elggers
Good Day!
I made some custom pages on my site and the trouble starts when new users try to select their users same as my custom pages. Let's say I have a page called mydomain.com/world and when new user selects (world) as his/her username then my site gives problems and shows my custom page instead of user profile. I tried to search around in elgg if there is something for username restrictions? So that I can add those words in the list and users are not allowed to keep those as their username.
I am sure that is easy but I have no any idea how I can do, please experts suggest something & guide me or create something for this issue.
Many many thanks in advance,
Cheers
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.
So, ok are you using some kind of rewrite?
Rodolfo Hernandez
Arvixe/Elgg Community Liaison
what rewrite? I did not understand your point? Please explain
Is there any page (either in Elgg core or 3rd party plugin) that uses the url http://site.url/<username>? I'm not aware of that...
Or do you use some plugin (url shortener) that rewrites http://site.url/profile/<username> to http://site.url/<username>? If you use such a plugin, then it might be indeed cause trouble. In the same way you would also get in trouble if you create you page with a name and path of some other already existing Elgg page.
How about not creating your pages as http://site.url/<pagename> but instead as http://site.url/<something>/<pagename>? Use something for <something> that is not already used on your site.
In case you created your pages with the anypage plugin (http://community.elgg.org/plugins/868809/1.2/anypage) the note
"Note: Pages can be registered to override paths from core and bundled plugins. This is a shoot-yourself-in-the-foot feature that you should only use if you know what you're doing!"
does exactly warn from the problem you have.
Thanks a lot iionly, yes I am using shortener url and also anypage plugin.
Wish if someone can create a small plugin which can put restrictions on those words which admin can add in the list.
@Kissss4Ever May be you can do such filter on registration. Like there are restrictions for some types of characters, may be you can extend it to words like 'world'
Rodolfo Hernandez
Arvixe/Elgg Community Liaison
This is why I don't recommend using any plugins like profile_url
there was/is a globally callable word blacklist configured (supposedly deprecated @1.8) that managed such filtering for any situations.
rjcalifornia I agree with you and like your idea but I have no idea how I can use that filter on registration. Can you help with that?
Matt Beckett, True profile names shortners make problems with other things but I think users like to have their profile after domain that's why I have to use that :)
DhrupDeScoop Where I can find globally callable word blacklist configured?
Please someone make a thread on this issue so that it would be useful for other users as well.
in engine/lib/elgglib.php within function elgg_init() {
approx line# 2205 $CONFIG->wordblacklist = array();
* ' plz some-1.. ' ? why ask others what you can enjoy doing by yourself ?