Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Threads that lock themselves... Details »
Threads that lock themselves...
Mod Version: 1.00, by Zzed (Member) Zzed is offline
Developer Last Online: Feb 2012 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 2.2.x Rating: (0 vote - 0 average) Installs: 13
Released: 13 Apr 2002 Last Update: Never Downloads: 2
Not Supported  

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:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Add the following directly below it:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

In newthread.php
Look for the following code:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Add the following ddirectly below it:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

In newthread.php
Look for the following code:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Add this directly below it:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

That's it.

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Allow users to delete themselves Chen vBulletin 2.x Full Releases 44 20 Jul 2004 06:43

Comments
  #2  
Old 13 Apr 2002, 11:10
TECK's Avatar
TECK TECK is offline
 
Join Date: Dec 2001
Real name: Floren Munteanu
very useful hack. i will test it later on.
__________________
Floren Munteanu
Axivo Inc.
Axivo Community - Visit the forums to find out more about us
Why Queued - My personal blog
Reply With Quote
  #3  
Old 13 Apr 2002, 15:55
Velocd's Avatar
Velocd Velocd is offline
 
Join Date: Mar 2002
Real name: Mike
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.
Reply With Quote
  #4  
Old 13 Apr 2002, 18:08
Zzed's Avatar
Zzed Zzed is offline
 
Join Date: Feb 2002
Real name: Edwin
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.
Reply With Quote
  #5  
Old 13 Apr 2002, 18:50
hypedave's Avatar
hypedave hypedave is offline
 
Join Date: Nov 2001
installed easy but when I go to add a Forbidden Topic
all I get is a white screen
Reply With Quote
  #6  
Old 14 Apr 2002, 04:31
Zzed's Avatar
Zzed Zzed is offline
 
Join Date: Feb 2002
Real name: Edwin
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));
Reply With Quote
  #7  
Old 14 Apr 2002, 04:33
hypedave's Avatar
hypedave hypedave is offline
 
Join Date: Nov 2001
Originally posted by Zzed
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));
yes I sure did
Reply With Quote
  #8  
Old 14 Apr 2002, 09:21
Zzed's Avatar
Zzed Zzed is offline
 
Join Date: Feb 2002
Real name: Edwin
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 [email protected].
Reply With Quote
  #9  
Old 16 Apr 2002, 00:11
GeorgeofCS's Avatar
GeorgeofCS GeorgeofCS is offline
 
Join Date: Oct 2001
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.
Reply With Quote
  #10  
Old 16 Apr 2002, 08:26
Zzed's Avatar
Zzed Zzed is offline
 
Join Date: Feb 2002
Real name: Edwin
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.
Reply With Quote
  #11  
Old 16 Apr 2002, 10:07
GeorgeofCS's Avatar
GeorgeofCS GeorgeofCS is offline
 
Join Date: Oct 2001
Never thought of that with replies. I am interested though in check the first message body
Reply With Quote
  #12  
Old 16 Apr 2002, 10:22
Jawelin Jawelin is offline
 
Join Date: Nov 2001
Originally posted by Zzed
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.
YAH! I'm very interested in.... Yes.
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
Reply With Quote
  #13  
Old 16 Apr 2002, 17:31
Zzed's Avatar
Zzed Zzed is offline
 
Join Date: Feb 2002
Real name: Edwin
Ok, here is the revised version that also checks for the first message body.
Attached Files
File Type: zip autolock_v1.1.zip (3.2 KB, 48 views)
Reply With Quote
  #14  
Old 07 May 2002, 19:08
Neo's Avatar
Neo Neo is offline
 
Join Date: Oct 2001
Real name: Dan
Question Zzed. Does this auto close it if there is these certain words in a post?
Reply With Quote
  #15  
Old 08 May 2002, 06:28
Zzed's Avatar
Zzed Zzed is offline
 
Join Date: Feb 2002
Real name: Edwin
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.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 23:54.

Layout Options | Width: Wide Color: