The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Threads that lock themselves... Details »» | |||||||||||||||||||||||||
Note: There is a 1.1 version of this hack that also checks
the message body of the first post. Scroll down to download the updated zip file or click here to go to the post containing the attachment. ************************************************** ** We have an off topic forum in our site and sometimes users post useless topics to bump up their post count or to start a flame war. A lot of these threads have specific keywords or phreases in them that makes them stand out. A few examples of these threads are, free post, sig test, avatar test, etc... This hack works only with new threads whose title contains the above mentioned phrases. This hack works with a database table of known substrings that a forbidden thread title may contain. And if any of the table contents are detected as a substring within the thread title, that thread will automatically get locked with a note in the bottom of the subject, and the thread title will also be prefixed with the words "Auto Lock". Interestingly enough, the "meningless" thread posting has been significantly reduced on our site. I have created an interface through the Admin CP to add/edit/delete these phrases. Affected templates: none Affected tables: 1 new table is created Affected source files: newthread.php admin/index.php New files: topics.php admin/topics.php First create the following table: create table topic (topicid smallint(5) unsigned not null auto_increment,title varchar(100) not null, primary key (topicid)); In admin/index.php Look for the following code: PHP Code:
PHP Code:
Look for the following code: PHP Code:
PHP Code:
Look for the following code: PHP Code:
PHP Code:
Show Your Support
|
Comments |
#2
|
||||
|
||||
very useful hack. i will test it later on.
|
#3
|
||||
|
||||
So...let me get this straight. If a member starts a thread called "Flame Everybody", automatically that thread will be locked? Or..is it just key words, or key sentences or what?
Sounds good It would also be cool to have a hack that auto-locks specific members out of a thread if they swear too much or flaming somebody. That would be lengthy though.. Either way, both hacks make it easier for the moderators. |
#4
|
||||
|
||||
Yes.
Let's say for example, you have the word poop in the topic table. Any thread title containing the word poop as a substring will automatically get locked. poop poop thread let's have a pooper smilie All the titles above will cause the new thread to be locked. |
#5
|
||||
|
||||
installed easy but when I go to add a Forbidden Topic
all I get is a white screen |
#6
|
||||
|
||||
Did you create the new table in your MySql database?
create table topic (topicid smallint(5) unsigned not null auto_increment,title varchar(100) not null, primary key (topicid)); |
#7
|
||||
|
||||
Quote:
|
#8
|
||||
|
||||
Hmm
This is strange. I backed ou tof the hack and resintalled it. No problems. Maybe if you can make me admin on your board for a brief moment, I'll be able to troubleshoot this. You can either PM me or Email me at edwink@seebeyond.com. |
#9
|
||||
|
||||
Great hack. However just curious if there's a way to add certain things mentioned in the message, or replies. I say this because site's like mine could put words like xxx, hardcore action, etc. And it would immediately lock that thread.
|
#10
|
||||
|
||||
I have an extended version that also checks the message content of the first post.
If you make the auto lock work with the replies, your users will abuse it and can potentially get every thread in your forums locked. If you are interested I will post the revised version to check the contents of the first post. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|