![]() |
|
Mod Options |
![]() |
|||||||||||
Disallow HTML code in Thread Titles
![]() Developer Last Online: Dec 2014 ![]() ![]() ![]() This modification is in the archives.
Disallow HTML code in Thread Titles v1.01
Originally Posted by Staff Note
By Jason Williams/Andrew Calderbank
03/09/2006 Recently there has been a spate of members posting html redirection code in thread titles, which when parsed on the forum homepage runs and redirects to whatever site they insert into the title. This code simply disallows the characters < and > from being used in the thread titles, this is also is checked when editing the post. It's fairly simple but puts to and end members signing up and posting redirect links. I don't know whether you'd class this as a hack or bug fix, but I hope this helps other members who are frustrated with this issue. 2 file edits 1 new phrase Should be fairly straightforward to install. **ALWAYS BACK UP FILES BEFORE YOU EDIT THEM!!** v1.00 Original release v1.01 Slight code update Download Now Only licensed members can download files, Click Here for more information. Show Your Support
No members have liked this post.
|
Comments |
#2
|
||||
|
||||
Reserved for updates
__________________
Steadiforum - for Steadicam Operators worldwide No members have liked this post.
|
#3
|
|||
|
|||
Good idea, steadicamop.
edit: there seems to be a problem in: /includes/functions_newpost.php find: error: Warning: preg_match(): Delimiter must not be alphanumeric or backslash in /includes/functions_newpost.php on line 379
__________________
No members have liked this post.
Last edited by Puck 24/7; 03 Sep 2006 at 22:37. |
#4
|
||||
|
||||
Originally Posted by Puck 24/7
Ok, replace the code for this:
That should solve it.
__________________
Steadiforum - for Steadicam Operators worldwide No members have liked this post.
|
#5
|
||||
|
||||
Both those files have hooks, can these changes not be done via plugins ?
__________________
Former vBulletin.org Staff Member
Cable Forum Please do not PM me about custom work - I no longer undertake any. Note: I will not answer support questions via e-mail or PM - please use the relevant thread or forum. No members have liked this post.
|
#6
|
||||
|
||||
I'll look into remaking it as a plugin - I've never dealt with creating plugins before so it's something I will have to my research on.
__________________
Steadiforum - for Steadicam Operators worldwide No members have liked this post.
|
#7
|
||||
|
||||
Thanks for this!
![]() No members have liked this post.
|
#8
|
||||
|
||||
Okay, just asking.
I think far more people are likely to make use of it if no file edits are involved. ![]()
__________________
Former vBulletin.org Staff Member
Cable Forum Please do not PM me about custom work - I no longer undertake any. Note: I will not answer support questions via e-mail or PM - please use the relevant thread or forum. No members have liked this post.
|
#9
|
||||
|
||||
Originally Posted by Paul M
Something I'm going to try and do right now
![]()
__________________
Steadiforum - for Steadicam Operators worldwide No members have liked this post.
|
#10
|
|||
|
|||
so even if you dont allow html they can still post html in thread titles? if thats the case it seems strange that vbulletin wouldnt patch that. as you could just do this all day long with a google search finding vbulletin sites. would suck to have to use a plugin, hack, php file edit what ever to stop it and secure your site.
No members have liked this post.
|
#11
|
||||
|
||||
![]()
Hello,
I was wondering if this security issue applies to 3.5.4 and will this fix work with 3.5.4? Or how to I get the same result making code changes with 3.5.4. Advice would be appreciated. Thank You, Nuguru ![]() No members have liked this post.
|
#12
|
|||
|
|||
Isn't this a vBulletin bug you are fixing?
No members have liked this post.
|
#13
|
||||||||
|
||||||||
Originally Posted by steadicamop
replace what code with that exactly ?
^^ that? No members have liked this post.
|
#14
|
||||
|
||||
The ideea is very good , but i have a problem.
I wrote in the title a HTMl code and it worked (the html code) . I wrote the second time and the message :Could not find phrase 'nohtml' appeared. Please tell me how can I solve the problem . Thanks . No members have liked this post.
Last edited by xman_79; 04 Sep 2006 at 15:03. |
#15
|
||||
|
||||
you need to add the phrase in the text file, its the last step in the instructions:
In the AdminCP -> Language & Phrases -> Phrase Manager -> Add New Phrase Phrase Type : Front-End Error Messages Product : VBulletin Varname : nohtml Text : Sorry, you are not allowed to post HTML in Thread titles, please go back and change it. HTH
__________________
Steadiforum - for Steadicam Operators worldwide No members have liked this post.
|
![]() |
«
Previous Mod
|
Next Mod
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Mod Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 02:01.