vBulletin 4, the most powerful community software + vBSEO 3.5, the ultimate SEO solution = Your ultimate platform for 2010 and beyond. Click below to learn more.

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 dutchbb's Avatar
    Real Name
    ---
    Join Date
    Oct 2005
    Location
    Belgium
    Posts
    786

    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
    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 dutchbb's Avatar
    Real Name
    ---
    Join Date
    Oct 2005
    Location
    Belgium
    Posts
    786
    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 07:38 PM.

  4. #4
    Senior Member Snake's Avatar
    Real Name
    Josh
    Join Date
    Oct 2005
    Location
    Cleveland, OH
    Posts
    413
    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
    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 dutchbb's Avatar
    Real Name
    ---
    Join Date
    Oct 2005
    Location
    Belgium
    Posts
    786
    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
    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
    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
    Posts
    16,958
    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.

    Yeni vBSEO Kontrol Paneli ve vBSEO 3.5 Yayın Tarihleri

    vBSEO 3.5 Beta 2 Yayınlandı - vBulletin 4 Uyumlu!



    Kişisel Sitem : Felsefe - Kültür merkeziniz

  10. #10
    Senior Member dutchbb's Avatar
    Real Name
    ---
    Join Date
    Oct 2005
    Location
    Belgium
    Posts
    786
    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 11:01 AM.

  11. #11
    Junior Member
    Real Name
    Keith
    Join Date
    Feb 2007
    Posts
    6
    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
    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
    Thanks, that works.