Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Classic ASP versions(v3.4.XX)
 How do I truncate a username and a subject line?
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Etymon
Advanced Member

United States
2395 Posts

Posted - 16 September 2002 :  14:46:38  Show Profile  Visit Etymon's Homepage
Question: #1

I have noticed on my forum that when I create a user name, for example the user's name starts with a and ends with a. But that's not the whole of it. Although I can't remember how many a's are in that user name, I know that there are enough to nearly double the width of my forum when ever I display that user name on a page.

How would I allow a user to only create a name with 13 characters or less? The same goes for the password?

Question: #2

This question is similar to Question #1. I have noticed this same effect on forum.asp when a user posts a topic which has no spaces in it such as bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb.

That kind of subject line will also double the width of my forum.asp page.

Is there anyway to truncate a non-spaced subject line on forum.asp without loosing the subject line's content by forcing it to truncate with an ellipsis (...)?

There could be many variations of the subject line above.

If there is not a fix that is relatively simple, how would I just allow only 25 characters for a subject line? Would it be a similar resolve to Question #1?


Thanks so much for the help,

Etymon

Edited by - Etymon on 16 September 2002 14:54:21

GauravBhabu
Advanced Member

4288 Posts

Posted - 16 September 2002 :  14:53:44  Show Profile
question 1

You can do so by adding maxlength="13" for the user name field for example
<INPUT maxlength="13"

question 2

use the Left function.

To limit the subject line to 20 characters use left function for example:
Left(Subject, 20)
Go to Top of Page

Etymon
Advanced Member

United States
2395 Posts

Posted - 16 September 2002 :  14:57:21  Show Profile  Visit Etymon's Homepage

Wow, that was fast!

I was editing the topic while you were posting. I added another question.

So, GauravBhabu, that seems easy enough! Thanks!

~Wonders, "What would I do without Snitz community help?!"~
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.45 seconds. Powered By: Snitz Forums 2000 Version 3.4.07