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 09: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 05: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 06:10 PM

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

Thanks :D

Recluse 04-07-2002 03:37 AM

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

LouChipher 04-07-2002 07:33 AM

Can post the Admin/Mod?!

Overgrow 04-08-2002 11:17 AM

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 11:56 AM

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 06: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 10:45 PM

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

magnus 04-30-2003 12:07 PM

Yea, I tried it earlier.. no avail. :(

Koutaru 05-19-2003 09:00 PM

anyone for 2.3?

Koutaru 06-08-2003 04:35 AM

Hmm I still can't figure out this code, can someone spend a few minutes and look over it? :(

Cap 07-22-2003 10:54 AM

I have the same problem. In newreply.php there is no $bbuserinfo found (Vers.2.3).

Cap 07-23-2003 08:19 AM

.

Takara 08-13-2003 08:34 PM

wouldn't mind an updated version either.

magnus 10-14-2003 05:06 PM

One last ditch effort before writing off any hope of this being updated... :(

noonespecial 08-18-2007 02:46 AM

This would be cool if ever updated.


All times are GMT. The time now is 07:28 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.01759 seconds
  • Memory Usage 1,746KB
  • 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
  • (18)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