Print Page | Close Window

usernames over 15 char.

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=1970
Printed Date: 30 March 2026 at 8:22pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: usernames over 15 char.
Posted By: mcwilliams132
Subject: usernames over 15 char.
Date Posted: 21 April 2003 at 3:04pm

Having a bit of a problem adding users with usernames over 15-20characters.

I'm running 7.0 b3

I needed to increase the allowed username from 15 to 30.

I edited the register.asp file on these lines:

273: If strMode = "new" Then strUsername = Trim(Mid(Request.Form("name"), 1, 30))

[the "30" was originally "15"]

And also on line 1179:

         <input type="text" name="name" size="25" maxlength="30" value="<% = strUsername %>" />

[just upped the size and maxlength]

When adding users over 20 characters I'm getting the following error:

=================================================
Microsoft OLE DB Provider for SQL Server error '80040e21'

Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done.

/forum/register.asp, line 744
=================================================

Not sure if there's any other code that needs updating to accomodate the larger username.

My local DB Guru suggested restarting some services in case the app was cached but I don't think refreshing services helped.

Any suggestions?

Also : anyone know of an "add new user" admin mod?

Thanks




Replies:
Posted By: MadDog
Date Posted: 21 April 2003 at 3:09pm
You need to change the text lenght in the database also.

-------------
http://www.iportalx.net" rel="nofollow">



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net