vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Ignore List prevents users from posting in threads (https://vborg.vbsupport.ru/showthread.php?t=37085)

Overgrow 04-05-2002 10:00 PM

Ignore List prevents users from posting in threads
 
This hack should help lessen your moderation load by allowing users to somewhat moderate their own threads. When someone hits newreply to make a post, it checks the original thread poster's ignore list. If the person is on the ignore list, they cannot post in the thread.

Open newreply.php, find:
PHP Code:

$bbuserinfo['userid']==$threadinfo['postuserid'])) {
  
show_nopermission();


Under that add:
PHP Code:

// HACK: REPLY IGNORE
if ($bbuserinfo['userid']>and $bbuserinfo['usergroupid']!=and 
$bbuserinfo['usergroupid']!=and $bbuserinfo['usergroupid']!=45 and $threadinfo['postuserid']>0) {
    
$firstposter=$DB_site->query_first("SELECT username,ignorelist 
FROM user WHERE userid='
$threadinfo[postuserid]'");
    
$ignorelist explode(' '$firstposter['ignorelist']);
    while ( list(
$key$val)=each($ignorelist) ) {
      
$ignore[$val] = 1;
    }
    if (
$ignore[$bbuserinfo[userid]]) {
        eval(
"standarderror(\"".gettemplate("error_ignoredreply")."\");");
    }
}
// END: REPLY IGNORE 

Create a new template called "error_ignoredreply":

The original poster of this topic, $firstposter[username], has you on their ignore list. You are unable to reply to the threads they start.

Done!

Neo 04-06-2002 06:49 PM

Hehehe, fun fun. I will install it right now. I thought of a nice add to this either you or I can make. But how about user on ignor list cant read started thread?

Remi 04-06-2002 07:10 PM

Can't he/she just use the quote butten to reply?

Thanks :D

Recluse 04-07-2002 04:37 AM

quote uses the newreply.php. so it "should" also stop them from posting, same with quickreply

LouChipher 04-07-2002 08:33 AM

Can post the Admin/Mod?!

Overgrow 04-08-2002 12:17 PM

Normally you can't ignore mods/admins right? Anyway, added the check so it won't bother doing it if you're a mod or admin-- just replace the code above again with the edited code in the first post.

neo-- go for it, I don't mind if they read it.

quotes-- agreed, since it also hits newreply, it will be stopped.

Admin 04-08-2002 12:56 PM

Great, installed here. :)

euangel 02-25-2003 03:14 AM

Does this hack work under 2.3? I can't find the original text to be replaced in newreply.php.

magnus 04-29-2003 07:35 PM

Wow, I know this is an oldie.. but can someone PLEASE port this to work on newer versions? I *really* need this. :)

Bison 04-29-2003 11:45 PM

Give it a try ... just make a backup copy of your newreply.php file before you put the code above in! :)


All times are GMT. The time now is 08:36 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.01098 seconds
  • Memory Usage 1,734KB
  • 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)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete