Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Ignore List prevents users from posting in threads Details »»
Ignore List prevents users from posting in threads
Version: 1.00, by Overgrow Overgrow is offline
Developer Last Online: Jun 2004 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 04-05-2002 Last Update: Never Installs: 13
 
No support by the author.

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!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 04-06-2002, 06:49 PM
Neo's Avatar
Neo Neo is offline
 
Join Date: Oct 2001
Location: Anywhere
Posts: 1,817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #3  
Old 04-06-2002, 07:10 PM
Remi Remi is offline
 
Join Date: Nov 2001
Location: London, UK
Posts: 196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Thanks
Reply With Quote
  #4  
Old 04-07-2002, 04:37 AM
Recluse's Avatar
Recluse Recluse is offline
 
Join Date: Feb 2002
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

quote uses the newreply.php. so it "should" also stop them from posting, same with quickreply
Reply With Quote
  #5  
Old 04-07-2002, 08:33 AM
LouChipher LouChipher is offline
 
Join Date: Oct 2001
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can post the Admin/Mod?!
Reply With Quote
  #6  
Old 04-08-2002, 12:17 PM
Overgrow's Avatar
Overgrow Overgrow is offline
 
Join Date: Nov 2001
Posts: 320
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 04-08-2002, 12:56 PM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great, installed here.
Reply With Quote
  #8  
Old 02-25-2003, 03:14 AM
euangel euangel is offline
 
Join Date: Jan 2003
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does this hack work under 2.3? I can't find the original text to be replaced in newreply.php.
Reply With Quote
  #9  
Old 04-29-2003, 07:35 PM
magnus's Avatar
magnus magnus is offline
 
Join Date: Apr 2002
Location: Miami, FL
Posts: 1,107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wow, I know this is an oldie.. but can someone PLEASE port this to work on newer versions? I *really* need this.
Reply With Quote
  #10  
Old 04-29-2003, 11:45 PM
Bison's Avatar
Bison Bison is offline
 
Join Date: Jun 2002
Location: Virginia Beach, Virginia
Posts: 522
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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


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

Forum Jump


All times are GMT. The time now is 09:37 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05161 seconds
  • Memory Usage 2,297KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete