![]() |
Threads that lock themselves...
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. :D 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:
|
very useful hack. i will test it later on.
|
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 :D 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. :D |
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. ;) |
installed easy but when I go to add a Forbidden Topic
all I get is a white screen |
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)); |
Quote:
|
Hmm :(
This is strange. I backed ou tof the hack and resintalled it. No problems. :confused: 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. |
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.
|
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. :) |
Never thought of that with replies. I am interested though in check the first message body :)
|
Quote:
I have many users that post ofter something like 'try'... 'don't read'... etc. It could be possible even to check the length of the message body to evaluate if it's to be locked... or not? (just in case of sensitive words put in long and interesting threads...) I'm very ansious to see your next version! I'm planning to modify it to 'freeze' the author's post counter.... :) Thanks |
Ok, here is the revised version that also checks for the first message body.
|
Question Zzed. Does this auto close it if there is these certain words in a post?
|
neo, the hack checks the title and contents of the initial post in the thread.
If the hack were to be extended to the replies, any member can get a thread locked. You can potentially have every thread locked. |
Nice hack, just added it. Question for ya. How can I get it to display the same as your forums? With the padlock.gif and autolock.gif
Those are very cool! :classic: |
Very usefull hack, thanks alot.
I was wondering if you could make this hack move threads with the "bad" words to a specific forum, like "Garbage forum" so we could always see those posts and warn the posters , and for other meanings too :p |
I can post a one liner for you that will do this for you. ;)
You can just add it to the existing hack. |
Does this work with 2.2.9?
Sounds cool! |
Yes. :)
I am currently running 2.2.9 in my forums. |
can you post it please :)
and i wanted to ask i can choose in what forum the threads going to lock himselfs |
LOL :D
Funny man. Yes, and yes to both questions... I can't do it rigtht this minute. I'll do it in the next day or so. Hope you don't mind. :) |
thank you very much :p very usefull hack :)
|
This hack is awesome!
I have actually seen it used on your web-site, and I think it's great Do you have any plans to make this available for 3.0 ? :ermm: |
I see this is an extremely old mod. Would it be wise to us it on 3.6.5?
|
All times are GMT. The time now is 04:50 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|