Results 1 to 13 of 13

special characters in member profiles problem

This is a discussion on special characters in member profiles problem within the Troubleshooting forums, part of the vBSEO Google/Yahoo Sitemap category; Ok here's the problem... There's a user called Peoples and another user called -PEOPLES- . When I click on the ...

  1. #1
    Senior Member
    Real Name
    ---
    Join Date
    Oct 2005
    Location
    Belgium
    Posts
    822
    Liked
    1 times

    special characters in member profiles problem

    Ok here's the problem...

    There's a user called Peoples and another user called -PEOPLES-. When I click on the nick's in Who's Online? it redirects to the profile of the first one for both users.

    So vbseo removes the - on user -PEOPLES-. That's because I have set include special characters to 0 in config_vbseo.

    So now you think: so set it to 1 and it will include the - right? Yes I could do that but then usernames with spaces in them are badly rewritten.

    John W turns in to John%2BW or something.

    So I think what I need is something that allow the use of certain characters and disallow others.

  2. #2
    Senior Member
    Real Name
    Keith Cohen
    Join Date
    Jul 2005
    Location
    Raleigh, NC USA
    Posts
    6,147
    Liked
    12 times
    vB 3.6.x has a field in AdminCP where you can use RegEx to specify what characters are allowed in usernames. I have mine limited to letters, numbers, _ and .

  3. #3
    Senior Member
    Real Name
    ---
    Join Date
    Oct 2005
    Location
    Belgium
    Posts
    822
    Liked
    1 times
    Yep i know I've used that for new registrations but old ones are still using some of the forbidden chars. That's why I'm searching for a solution for them.

    btw just noticed this is in the wrong forum.
    Last edited by dutchbb; 02-06-2007 at 08:38 PM.

  4. #4
    Senior Member Snake's Avatar
    Real Name
    Josh
    Join Date
    Oct 2005
    Location
    Cleveland, OH
    Posts
    413
    Liked
    0 times
    Quote Originally Posted by dutchbb View Post
    Ok here's the problem...

    There's a user called Peoples and another user called -PEOPLES-. When I click on the nick's in Who's Online? it redirects to the profile of the first one for both users.

    So vbseo removes the - on user -PEOPLES-. That's because I have set include special characters to 0 in config_vbseo.

    So now you think: so set it to 1 and it will include the - right? Yes I could do that but then usernames with spaces in them are badly rewritten.

    John W turns in to John%2BW or something.

    So I think what I need is something that allow the use of certain characters and disallow others.
    Yes exactly! I am having this same exact issue as well so is there a solution to this? I'm really hoping this can be fixed in the next release.

    Quote Originally Posted by Keith Cohen View Post
    vBulletin 3.6.x has a field in AdminCP where you can use RegEx to specify what characters are allowed in usernames. I have mine limited to letters, numbers, _ and .
    Oh really? I never knew about that. Think you could guide me please 'cause I'm not sure if I can see it.
    Metal Gear Forums - Discussion on the popular series of console stealth-based games.

    My Mods: Coming Soon | My Tutorials: Coming Soon

  5. #5
    Senior Member
    Real Name
    Keith Cohen
    Join Date
    Jul 2005
    Location
    Raleigh, NC USA
    Posts
    6,147
    Liked
    12 times
    Actually, I only allow letters, numbers, periods and dashes. It's under User Registration Options. This is the RegEx I use:

    ^[A-Z0-9-.]+$

  6. #6
    Senior Member
    Real Name
    ---
    Join Date
    Oct 2005
    Location
    Belgium
    Posts
    822
    Liked
    1 times
    Thanks. Still that doesn't solve the problem with dashes in similar usernames. A link to user -joe- will go to the profile of joe.

  7. #7
    Senior Member
    Real Name
    Keith Cohen
    Join Date
    Jul 2005
    Location
    Raleigh, NC USA
    Posts
    6,147
    Liked
    12 times
    Yeah, you would have to disallow - also. Or include the userid in your profile URL.

  8. #8
    Senior Member Snake's Avatar
    Real Name
    Josh
    Join Date
    Oct 2005
    Location
    Cleveland, OH
    Posts
    413
    Liked
    0 times
    Quote Originally Posted by Keith Cohen View Post
    Actually, I only allow letters, numbers, periods and dashes. It's under User Registration Options. This is the RegEx I use:

    ^[A-Z0-9-.]+$
    Thanks, but what about hyphens and underscores? I would like to have that as well.
    Metal Gear Forums - Discussion on the popular series of console stealth-based games.

    My Mods: Coming Soon | My Tutorials: Coming Soon

  9. #9
    vBSEO.com Webmaster Mert Gökçeimam's Avatar
    Real Name
    Lizard King
    Join Date
    Oct 2005
    Location
    Istanbul, Turkey, Turkey
    Posts
    22,362
    Liked
    540 times
    Blog Entries
    4
    Quote Originally Posted by Darkblade View Post
    Thanks, but what about hyphens and underscores? I would like to have that as well.
    Help gives the following information


    ^[A-Z]+$ - Characters from A-Z only
    ^[A-Z ]+$ - Characters from A-Z including space
    ^[A-Z0-9 ]+$ - Alphanumeric characters including space
    ^[\x20-\x7E]+$ - ASCII characters from 32-127

    See PHP.net for more information on regular expressions.
    Mert Gökçeimam / Crawlability Inc.

    vBSEO 3.6.0 Alpha Önizlemesi - Including Like Tree
    Unveiling the NEW vBSEO Sitemap Generator 3.0 - available NOW for vBSEO Customers!


    Twitter:@Depkac
    Personal Blog : Mert Gökçeimam

  10. #10
    Senior Member
    Real Name
    ---
    Join Date
    Oct 2005
    Location
    Belgium
    Posts
    822
    Liked
    1 times
    Quote Originally Posted by Keith Cohen View Post
    Yeah, you would have to disallow - also. Or include the userid in your profile URL.
    With the RegEx you are using, spaces in names are also not allowed right? In that case one could allow for special chars in the vbseo config and replace spaces in existing usernames with dashes. That solves the problem. Now to find a query that can automatically find spaces in 30.000 usernames and replace them with dashes...

    [edit] Well I think your idea is better, just not allowing dashes in usernames, and replacing the ones that already exist with underscores.
    Last edited by dutchbb; 02-15-2007 at 12:01 PM.

  11. #11
    Junior Member
    Real Name
    Keith
    Join Date
    Feb 2007
    Posts
    6
    Liked
    0 times
    Is there any other information about this? I have a ton of users with japanese characters and other special characters in their username. Quite honestly I don't want to enable the regex for usernames since then people won't be able to use Japanese names.

  12. #12
    Senior Member
    Real Name
    Keith Cohen
    Join Date
    Jul 2005
    Location
    Raleigh, NC USA
    Posts
    6,147
    Liked
    12 times
    Quote Originally Posted by keith View Post
    Is there any other information about this? I have a ton of users with japanese characters and other special characters in their username. Quite honestly I don't want to enable the regex for usernames since then people won't be able to use Japanese names.
    Info here: Member List

  13. #13
    Junior Member
    Real Name
    Keith
    Join Date
    Feb 2007
    Posts
    6
    Liked
    0 times
    Thanks, that works.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •