[2.0.20] MOD Troll

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in here. No new MODs will be accepted into the MOD Database for phpBB2
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.

Rating:

Excellent!
30
77%
Very Good
2
5%
Good
3
8%
Fair
1
3%
Poor
3
8%
 
Total votes: 39

Merlin Sythove
Registered User
Posts: 2339
Joined: Tue Mar 16, 2004 7:42 am

Re: [2.0.20] MOD Troll

Post by Merlin Sythove »

It doesn't really matter what you do, one way or another the troll will figure out sooner or later that they are having problems and nobody else is. This mod is designed to combine absolute "no more posting by the troll" with obfuscation instead of point blank banning, but the real aim is that the troll can no longer post anything at all.

To disable the mod look at this bit of code in sessions.php:

Code: Select all

  //User is a troll in some way?
  if ($troll_cookie || $troll_database)
  {
    //Set the troll cookie, time it for 1 year. The time restarts every time the user comes here
    setcookie($board_config['cookie_name'].'_tr_id',$troll_id, time()+365*24*3600);
    //Set the user variable too (so a troll-as-guest is treated as a troll)
    $userdata['user_troll'] = true;
  }
  //$userdata['user_troll'] = false; //Disable troll mod
  //END MOD Troll
If you would like the troll to be able to succeed in normal posting on average 30% of the time, you could add something like

Code: Select all

  if ((time() % 3) == 0)  $userdata['user_troll'] = false;
Good luck.
Need custom work done? Pimp My Forum!
Post Reply

Return to “[2.0.x] MOD Database Releases”