|
|
Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
|
Moderator / Code Fixer
Joined: Oct 2000
Posts: 743 |
Id like to be able to check that the subject line doesnt contain these characters greater then ">" less than "<" or an ampersand "&" in the subject line when someone starts a new topic. As if they are used they cause problems with the UBB.
Thanks.
I can't afford a good signature editor
|
|
|
|
Joined: May 2001
Posts: 6,708
Member
|
Member
Joined: May 2001
Posts: 6,708 |
Well you'll need to write some code, I don't think there is any hack for the Subject line besides the Get rid of Caps hack.
|
|
|
|
Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
|
Moderator / Code Fixer
Joined: Oct 2000
Posts: 743 |
Yeah looks like I might, I though I might check to see if anyone else had done it first, save me writting the code. Ohh well.
I can't afford a good signature editor
|
|
|
|
Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
|
Moderator / Code Fixer
Joined: Oct 2000
Posts: 743 |
Ahh to easy, just did it. That will stop people trying to post < > | ^ & + = etc... in a message subject!
[ August 13, 2001: Message edited by: BassTeQ ]
I can't afford a good signature editor
|
|
|
|
Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
|
Moderator / Code Fixer
Joined: Oct 2000
Posts: 743 |
Whoops
[ August 13, 2001: Message edited by: BassTeQ ]
I can't afford a good signature editor
|
|
|
|
Joined: May 2001
Posts: 6,708
Member
|
Member
Joined: May 2001
Posts: 6,708 |
Hey man can ya post the code you used here too, I'd like to use it too.
|
|
|
|
Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
|
Moderator / Code Fixer
Joined: Oct 2000
Posts: 743 |
Sure Here is the basic code, only thing is it doesnt allow you to edit posts with characters in the subject line that are listed as blocked. So Im just working on doing it a bit differently if an Admin or Mod uses edit/delete etc... Ill post what I think will work for the admin/mod mode but it won be tested. Ill test it later on today.
Now I've used hex codes to signify what characters I want blocked, you'll have to look up in a hex table what numbers mean what characters if you want to add more. If you have any problems with it let me know, should be pretty straight forward.
[code][/code]
I can't afford a good signature editor
|
|
|
|
Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
|
Moderator / Code Fixer
Joined: Oct 2000
Posts: 743 |
I also did this one, it will limit the length of a string in a subject line. I think its better then just changing the MAX value of the input box.
[code][/code]
I can't afford a good signature editor
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 69
Joined: January 2001
|
|
Forums63
Topics37,575
Posts293,927
Members13,823
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|
|