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)
 forcing the issue
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

caxps
Starting Member

35 Posts

Posted - 15 February 2005 :  08:22:17  Show Profile  Visit caxps's Homepage
Recieved this from one of my moderators..

Is an administrator able to add the a few lines of code to the "Submit
Reply" script to make sure that all titles/subjects are uppercase and single i's are capitalised?

Peter Sampson
CFCnet.co.uk

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 15 February 2005 :  08:29:24  Show Profile
Replies don't have titles; I assume you mean topics there? One way to do it would be to add this function to the end of post_info.asp and then, on lines 452 and 798 of the same file, find the following:

txtSubject = chkString(Request.Form("Subject"),"SQLString")

And replace it with:

txtSubject = PCase(chkString(Request.Form("Subject"),"SQLString"))


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page

caxps
Starting Member

35 Posts

Posted - 15 February 2005 :  08:52:33  Show Profile  Visit caxps's Homepage
Hi Shaggy.
I'll try this at home also have you a remedy for messages that converts single lower case i in capital I
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 15 February 2005 :  09:14:27  Show Profile
Within the message body itself? Not without a sizeable performance hit that wouldn't really be worth it given the end result. It can probably be achieved with regular expressions but I ain't too hot with them.

Just had a look at the site you specified as your homepage and it looks like you want every character in topic titles to be upppercase rather than just the first character of each word. If this is the case then forget about adding that function to post_info.asp and, in the two line changes I gave you, use UCase instead of PCase.


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page

caxps
Starting Member

35 Posts

Posted - 15 February 2005 :  17:48:23  Show Profile  Visit caxps's Homepage
Unfortunately the two line of code change didn't work :-(
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 16 February 2005 :  06:42:30  Show Profile
When you say it didn't work, what do you mean? Are you getting any error messages? Did you change both lines to look like the below?

txtSubject = UCase(chkString(Request.Form("Subject"),"SQLString"))

If you made that change to lines 452 and 798, it should work. If you've got a modified post_info.asp, those line refernces may be off somewhat.


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page

caxps
Starting Member

35 Posts

Posted - 16 February 2005 :  17:33:04  Show Profile  Visit caxps's Homepage
do i have to change any code to display the changes on the site?
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.35 seconds. Powered By: Snitz Forums 2000 Version 3.4.07