vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   "Good User Gone Bad" date option for Erwin's Warn Ban Edit (https://vborg.vbsupport.ru/showthread.php?t=64735)

Natch 05-03-2004 10:00 PM

"Good User Gone Bad" date option for Erwin's Warn Ban Edit
 
This was devised as a solution to the "Good User Gone Bad" scenario ...

What it does:

It's a modification to the hack devised by Erwin "Warn Ban Edit" as it's commonly known, to permit you to set an arbitrary timestamp on the posts that will be Globally Ignored by your users ...

As I have only a couple of users to which this group applies, it's easy enough to just say "anything after the start of 2004 will be hidden" which is how this is set-up - however, all you need to do is adjust the $postyear date function call and the iif statement to adjust what gets let thru and what gets hidden.

IN includes/functions_showthread.php

========================

Find:
PHP Code:

        $maintemplatename 'postbit_ignore_global'

Replace with:
PHP Code:

// Addon by Natch to Warn Ban Edit 
        
$postyear date("Y",$post['dateline']);
        
$maintemplatename iif(($postyear<=2003),$maintemplatename,'postbit_ignore_global');
// End Addon by Natch to Warn Ban Edit 

========================

There is also an optional modification:

If you want your board users to see that there was a post made, but not have any access to the contents (except for SuperMods and Admins), use the contents of the attached postbit_ignore_global, instead of simply emptying the template as indicated in Erwin's Warn, Ban, Edit hack ... this will show SuperMods and Admins a regular postbit_ignore_global, and all others will get the template with the links to "remove from my ignore list" and "show this post" but retains the "The Admin has told this tosser to shut up and bugger off" phrase ... ;)

Any queries just ask - click INSTALL! if you like this!

Clarification: this will ONLY impact on users that are in the Troll Banned usergroup - once they are out of that usergroup, ALL their posts will re-appear.

ChrisLM2001 05-04-2004 05:49 PM

Does this mod offer an "on" and "off" feature (when the user redeems himself)?

Chris

Natch 05-04-2004 05:50 PM

If you take 'em out of the Troll Banned usergroup...

msimplay 05-09-2004 03:32 PM

erm i got a suggestion while we in the mood :o

how about lowering reputation by the default power of the person giving the warning

ps nice addon by the way :D


All times are GMT. The time now is 08:58 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
  • Page Generation 0.00944 seconds
  • Memory Usage 1,723KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete