Any way to not allow spaces in usernames?

15 years 7 months ago #75783 by sfraise
I guess I never paid any attention to this until I installed sh404sef but I noticed that when a member registers they can create a username with spaces in it.

This is a nightmare for pulling profiles by username using short urls. sh404sef replaces the space with a dash but from my chat applet it pulls by username so the - doesn't get added into the url causing a 404 error.

Is there any way to set cb up to not allow spaces in usernames? I can't believe spaces were ever allowed in a username to begin with.

Please Log in to join the conversation.

15 years 7 months ago #75874 by mediaguru
Replied by mediaguru on topic Re:Any way to not allow spaces in usernames?
I ended up hacking the CB core file with a javascript to prevent just what you are talking about so that my user's URLS (thegolfspace.com/user) would work right.

The new version of CB will fix this but there's a bug they need to fix in which that feature isn't displayed in the back end (or at least it is displayed for a fraction of a second before it disappears).

CB/Joomla golf site: www.thegolfspace.com
Geek/joomla site: www.tkserver.com

Check out my Joomla/CB projects:

* LIKE thumbs up system for "liking" content items
* Karma - CB user rating system
* Golf Score Tracker
* Jitter - status update system. "What's on your mind?"
* CB Author Plug - Shows CB author link and avatar in content items. J1.5 compatible and very customizable!

Found on my web site or in the Joomlapolis Directory !

Please Log in to join the conversation.

15 years 7 months ago #75946 by sfraise
Replied by sfraise on topic Re:Any way to not allow spaces in usernames?
Do you happen to have the script that you used and exactly which file you put it in?

Please Log in to join the conversation.

15 years 7 months ago #75950 by mediaguru
Replied by mediaguru on topic Re:Any way to not allow spaces in usernames?
I'm going to search around here I think I posted it here already.

CB/Joomla golf site: www.thegolfspace.com
Geek/joomla site: www.tkserver.com

Check out my Joomla/CB projects:

* LIKE thumbs up system for "liking" content items
* Karma - CB user rating system
* Golf Score Tracker
* Jitter - status update system. "What's on your mind?"
* CB Author Plug - Shows CB author link and avatar in content items. J1.5 compatible and very customizable!

Found on my web site or in the Joomlapolis Directory !

Please Log in to join the conversation.

15 years 7 months ago #75951 by mediaguru
Replied by mediaguru on topic Re:Any way to not allow spaces in usernames?
You can try the attached CB core file. Backup your old one so you can get it back if it doesn't work.

I also had to disable the ajax username checker in the CB config so do that.

Attachment cb-603305c820a9b9d122468e04ed1b0d09.zip not found


CB/Joomla golf site: www.thegolfspace.com
Geek/joomla site: www.tkserver.com

Check out my Joomla/CB projects:

* LIKE thumbs up system for "liking" content items
* Karma - CB user rating system
* Golf Score Tracker
* Jitter - status update system. "What's on your mind?"
* CB Author Plug - Shows CB author link and avatar in content items. J1.5 compatible and very customizable!

Found on my web site or in the Joomlapolis Directory !
Attachments:

Please Log in to join the conversation.

15 years 7 months ago #75953 by sfraise
Replied by sfraise on topic Re:Any way to not allow spaces in usernames?
Thanks, where is the cb.core file at though? I can't seem to find it.

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.269 seconds

Facebook Twitter LinkedIn