Fixed 404 when username contains a dot
View Matt Beckett's plugins
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.
That's how it's set up yes, though it could handle an additional '/'
Hi. Features in plugin description says "Prevents new users from registering with a conflicting username". As far as I an see, elgg v1.8.8 already does not allow registrations with conflicting usernames. What is the real advantage of using this plugin? regs.
Elgg does not prevent users from registering with names such as 'blog' or 'bookmarks' or 'ajax' which would conflict with existing URLs.
Hahahaha, beats me - I don't use it. I said all along I think it's a silly idea.
Well, your network will have easy to remember links. It is a styling thing :)
Even if a user registers with username "bookmarks", it is placed under "profile" in the url, as opposed to real bookmarks which is under the domain name in the URL? How do they ever conflict? What am I overlooking? regs.
You are overlooking the description of the plugin, that it rewrites profile URLs to remove 'profile' so that there would be a conflict if a user registered with 'bookmarks' as a username
So, actually user shall have conflict if I use this plugin :-) OK. I think I get it now. One is the stying thing that Matt mentioned and the other is, it prevents people from choosing elgg directory names as usernames. Thanks. regs.
Now I finally get it :-) It is more than styling. If you expect companies to advertise their presence at your social network, this can be pretty important. It is a marketing thing :-) Matt congs for the super neat code.
Hi again, Have you considered using this plugin's codebase to extend some of the functionality here to Group names? It would be awesome if each group can have a unique name that can't be replicated by other users. I haven't delved into the code just yet, but I like this plugin and the group names adjustment might be a quick & easy extension. Thanks!
brian.. ;-oO veryy ancient 'request..' since abt 2009;
u r likely looking for
* embrache_nexgen_permalink
* group, blog, page, file, album, any-pretty-parma-link, any-entity, any-object
* @author EmbrachE.Com
... when i find time to be not so lazyy ;oO;X;p
Hey, is "embrache_nexgen_permalink" an active plugin? I can't locate it.
When I have some extra time, I wouldn't mind building a "unique group name" plugin and posting it. I'm uncertain whether such a script already exists in some live production environment somewhere... Anything to save me a few minutes. It should be relatively easy to program a light-weight solution.
@brian - I don't know of anything that currently exists. Messing with the url formats in Elgg really isn't a good idea and can lead to lots of problems (which you've already found). Personally, even though I wrote two of the plugins I don't recommend it (or even use the plugins I've written!).
;-P i coded that b4, but at time when there as lot of b/s controversy about who could write permalinks plugin using the 'least amount of code'; my permalinks = 8 loc.. but a lot of desire to not entangle w/chidish loc-comparisions! so -> too lazy to release; b/c nuffink to prove ;oO..
Could you write this so it doesnt refer to username, but instead an id number? Really annoying to people who use a none Latin character alphabet, such as Chinese. Cant ever get to their profile. ID number would cross a lot of boundaries, globally speaking!
@Strablet - it would be very easy to do. I've never used a non-latin alphabet - what does elgg do with it by default? Can chinese characters be used in a username anyway?
Please do not ask me to post the URLs ! but .. the issue/s w/ non-latin alphabets have been discusseed much before.. past few (1.5-2.5) years; l don't remember what exact solutions were presented before. Both for URLs and for Folder/UserNames within elgg. Those topics *might have had words = 'internationalization', 'cyrillic' in them.... There was a lot discussed them @there posts. More was discussed rather than simply argued about then.. tho I remember there were *some solutions..
hah !;-P fnd some --
http://community.elgg.org/discussion/view/721485/internationalize-internationalise-18-urls
http://trac.elgg.org/ticket/4190
Great Matt now make it so I can add a city/town field so we get something like this is the URL-
website.com/coffee-works-sacramento which uses the title name (not the username and the city field).
billy - r u blind or something ? read thru that http://community.elgg.org/discussion/view/721485/internationalize-internationalise-18-urls above ! - talks abt exactly that which u r saying ;-P
Works Cool!
@Matt Thanks again for the plugin.
I seem to have a issue. If the user enter his username with a non-English alphabet character (e.g. "ö" in username "Göksel"), Elgg registers the name as such and accesses the username directory under profile as such, i.e. looks for and finds mysite/profile/Göksel. If I use the ProfileURL and I go to the profile page, it looks for the username directly under the Mysite.com/Göksel and gives error 404 NOT FOUND. If I manually type the address as mysite/Goksel then it can find it. Could there be a solution to this (other than forcing users enter usernames in English alphabet)?
Best regards.
Maybe, but I have no experience with non-English characters and I'm not supporting this plugin. If you figure it out please feel free to submit a pull request and I'll update it.
isoguci - did you have a look @ my comment 2 posts above yours; about non-roman alphabet internationalisation in urls. oh & another eg with tld domainnames atención.atnew.net or שלום.atnew.net might be of some use for someone to read there.
Thanks DhrupDeScoop... and my apologies. Normally I check the entries before I put the word forward but, slipped my attention. Thanks again.
Some dumb questions:
1- Does this plugin actually relocates where the user information is stored on the server, or it just changes the URL representation?
2- If it actually changes the location of where user information is stored, what happens if I use it on a site with existing users. Or when I stop it using after a while, what happens those users created during the use of this plugin? (ignore the username conflict -like a user who uses 'blog' as username-. Assuma I make sure nobody choses such username).
Good day.