Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Username character limit
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Username character limit

 Post Reply Post Reply
Author
iSec View Drop Down
Senior Member
Senior Member
Avatar

Joined: 13 February 2005
Status: Offline
Points: 1140
Post Options Post Options   Thanks (0) Thanks(0)   Quote iSec Quote  Post ReplyReply Direct Link To This Post Topic: Username character limit
    Posted: 07 June 2006 at 9:27am

Is there a way to increase the username character limitQuestion

"When it gets dark enough, you can see the stars"
-Charles A. Beard
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 07 June 2006 at 9:48am
You can but it's not simple, have a look in the mods forum to see if anyone else has already done this.
Back to Top
hotvb View Drop Down
Newbie
Newbie


Joined: 08 July 2006
Location: Australia
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote hotvb Quote  Post ReplyReply Direct Link To This Post Posted: 17 July 2006 at 1:45am
I had same question, and there is no solution in mods forum.
 
In the register.asp only found
 
        'If this is a new reg clean up the username
        If strMode = "new" Then
                'Check there is a username
                If Len(strUsername) < 4 Then blnUsernameOK = False
                'Make sure the user has not entered disallowed usernames
                If InStr(1, strUsername, "admin", vbTextCompare) Then blnUsernameOK = False
                If InStr(1, strUsername, "password", vbTextCompare) Then blnUsernameOK = False
                If InStr(1, strUsername, "salt", vbTextCompare) Then blnUsernameOK = False
                If InStr(1, strUsername, "author", vbTextCompare) Then blnUsernameOK = False
                If InStr(1, strUsername, "code", vbTextCompare) Then blnUsernameOK = False
                If InStr(1, strUsername, "username", vbTextCompare) Then blnUsernameOK = False
                'Clean up user input
                strUsername = formatSQLInput(strUsername)
        End If
 
does anyone can help? many thanks!
Back to Top
SMR Group View Drop Down
Newbie
Newbie


Joined: 05 June 2006
Status: Offline
Points: 31
Post Options Post Options   Thanks (0) Thanks(0)   Quote SMR Group Quote  Post ReplyReply Direct Link To This Post Posted: 19 July 2006 at 3:46am
I've done this.  The MySQL database doesn't need to be changed, but you have to update a bunch of files.  Everywhere you see a username field (log-in, private messaging, search boxes) change the maxlength of the field to what you require, then look in the code for the trim function.  It'll currently be set to 15, that has to match the maxlength of the box.
 
Bear in mind that you shouldn't really allow a long input (I find 20 characters enough) for obvious reasons.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.