Print Page | Close Window

Signature Max Character

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=22267
Printed Date: 07 April 2026 at 2:16pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Signature Max Character
Posted By: ToJaRo
Subject: Signature Max Character
Date Posted: 25 December 2006 at 3:59am
Is there a way to change the max characters allowed in the users signature. I see that 200 is the current limit... but how would I change it if I wanted to up it?

-------------
ToJaRo
http://www.thesoupbone.com - The SoupBone Community



Replies:
Posted By: ToJaRo
Date Posted: 25 December 2006 at 4:07am
I have found the signature_preview file that has some things that may be related... just wanna check.
 
'Read in the message to be previewed from the cookie set
strSignature = Mid(Request.Form("signature"), 1, 200) - Do I change this to reflect the max sig count?
 
'Take the signature down to 255 characters max to prevent database errors
strSignature = Mid(strSignature, 1, 255) - Maybe I should not change it?????


-------------
ToJaRo
http://www.thesoupbone.com - The SoupBone Community


Posted By: dpyers
Date Posted: 25 December 2006 at 5:36am
Without going into the code at this time, what I recall off the top of my head is...
255 sounds like it's a small text field type in the db. You'd probably need to change the field type to a larger type of text field. The exact field type for a larger text field would depend upon the db being used.

I don't recall if the sig field was run through the function to replace characters that might be used in an sql injection attack. but I imagine it would be. If so, one displayed character might be represented by a 4 character entity which means the b field must be larger than the max displayed characters.

The sig file is probably validated in javascript client side as well as in server side script. You might have to change both.


-------------

Lead me not into temptation... I know the short cut, follow me.


Posted By: <SKATER
Date Posted: 10 March 2007 at 2:31am
I too am in need of longer sig lines.  please explain the coding to be done.  thanks.


Posted By: acechan
Date Posted: 21 May 2007 at 10:22am
Same here. We need to put image links with very long URL addresses and files names, and 200 chars is not enough.
 
Please help...


Posted By: WebWiz-Bruce
Date Posted: 21 May 2007 at 10:56am
You ned to chnage the code that ToJaRo mentions.

You will also need to change the field type in the database to 'memo' for access or a larger text size in SQL Server. However, it is set at the present limit in the database as larger file size larger than 255 will mean your database will not perform as fast and require more storage and more server memory.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: acechan
Date Posted: 21 May 2007 at 11:02am
OK, thanks a lot, Borg, my question was more about the changes I had to make in the database!
 
Thumbs%20Up


Posted By: <SKATER
Date Posted: 21 May 2007 at 3:51pm
Originally posted by -boRg- -boRg- wrote:

You ned to chnage the code that ToJaRo mentions.

You will also need to change the field type in the database to 'memo' for access or a larger text size in SQL Server. However, it is set at the present limit in the database as larger file size larger than 255 will mean your database will not perform as fast and require more storage and more server memory.
 
where in the database is this info?  and how do you change it?


Posted By: outofmind
Date Posted: 04 June 2007 at 9:12am
Originally posted by <SKATER <SKATER wrote:

Originally posted by -boRg- -boRg- wrote:

You ned to chnage the code that ToJaRo mentions.

You will also need to change the field type in the database to 'memo' for access or a larger text size in SQL Server. However, it is set at the present limit in the database as larger file size larger than 255 will mean your database will not perform as fast and require more storage and more server memory.
 
where in the database is this info?  and how do you change it?
 
In your forum directory, there's a file named "admin_add_member.asp" in that file you will be able to find the following line "strSignature = Mid(Request.Form("signature"), 1, 200)"... change the 200 to 255 and you will be able to include 255 characters in your signature. That string is located in line number 108 (if you are using the free version of webwiz forums 8.05a) and also you need to change the value of the same string in tow more files, "register.asp" and "signature_preview.asp". Line number might be different for you, but you can always search your source code for that string.


Posted By: <SKATER
Date Posted: 04 June 2007 at 3:18pm
thanks for the info.



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