Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)

Reply
 
Thread Tools Display Modes
  #1  
Old 01-21-2003, 11:30 AM
007's Avatar
007 007 is offline
 
Join Date: Jan 2003
Location: United States
Posts: 872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Disable Ignore User Option??

Is there a way to disable the ignore option? Thanks..
Reply With Quote
  #2  
Old 01-21-2003, 10:09 PM
007's Avatar
007 007 is offline
 
Join Date: Jan 2003
Location: United States
Posts: 872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anybody? Hello... Or is this just a stupid request.. LOL I never have used a board with an ignore function so maybe it's one of those things that I will find useful???
Reply With Quote
  #3  
Old 01-21-2003, 10:28 PM
Neo's Avatar
Neo Neo is offline
 
Join Date: Oct 2001
Location: Anywhere
Posts: 1,817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You mean.. so users dont have the option ignore other users correct?
Reply With Quote
  #4  
Old 01-22-2003, 03:27 AM
007's Avatar
007 007 is offline
 
Join Date: Jan 2003
Location: United States
Posts: 872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yes. Is this possible? I just figured it would get annoying when people are talking and some idiot ignored someone for something stupid and is saying "Huh? What?" when they don't see the comment that someone is referring to... ?? :ninja:
Reply With Quote
  #5  
Old 01-22-2003, 07:36 AM
Neo's Avatar
Neo Neo is offline
 
Join Date: Oct 2001
Location: Anywhere
Posts: 1,817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

first do this mysql query.

PHP Code:
INSERT INTO setting (settingid,settinggroupid,title,varname,value,description,optioncode,displayorderVALUES (NULL,6,'Allow Ignore Users','ignoreuser','1','Allow users to add Users and admins to their ignore list?','yesno','18'
then in member2.php find

PHP Code:
  if ($var=='ignorelist' and !$ignoremods and $bbuserinfo[usergroupid] != and ismoderator(0,"",$userid)) {
    
$username=$userinfo[username];
    eval(
"standarderror(\"".gettemplate("error_listignoreuser")."\");");
    exit;
  } 
and replace with

PHP Code:
  if ($var=='ignorelist' and !$ignoremods and $bbuserinfo[usergroupid] != and ismoderator(0,"",$userid)) {
    
$username=$userinfo[username];
    eval(
"standarderror(\"".gettemplate("error_listignoreuser")."\");");
    exit;
  } elseif (
$var=='ignorelist' and !$ignoreuser and $bbuserinfo[usergroupid] != and ismoderator(0,"",$userid)) {
    
$username=$userinfo[username];
    eval(
"standarderror(\"".gettemplate("error_listignoreuser2")."\");");
    exit;
  } 
now futher down find

PHP Code:
      if ($var=='ignorelist' and !$ignoremods and ($userid[usergroupid]==or $userid[usergroupid]==or $userid[moduserid]) and $bbuserinfo[usergroupid] != 6) {
        
$username=htmlspecialchars($val);
        eval(
"standarderror(\"".gettemplate("error_listignoreuser")."\");");
        exit;
      } else if (
$bbuserinfo['userid'] == $userid['userid']) {
        eval(
"standarderror(\"".gettemplate("error_cantlistself")."\");");
        exit;
      } else {
        
$listids.=$userid[userid]";
      } 
and replace with

PHP Code:
      if ($var=='ignorelist' and !$ignoremods and ($userid[usergroupid]==or $userid[usergroupid]==or $userid[moduserid]) and $bbuserinfo[usergroupid] != 6) {
        
$username=htmlspecialchars($val);
        eval(
"standarderror(\"".gettemplate("error_listignoreuser")."\");");
        exit;
      } else if (
$var=='ignorelist' and !$ignoreuser and $bbuserinfo[usergroupid] != and ismoderator(0,"",$userid)) {
        
$username=$userinfo[username];
        eval(
"standarderror(\"".gettemplate("error_listignoreuser2")."\");");
        exit;
      } else if (
$bbuserinfo['userid'] == $userid['userid']) {
        eval(
"standarderror(\"".gettemplate("error_cantlistself")."\");");
        exit;
      } else {
        
$listids.=$userid[userid]";
      } 
now make a new template called error_listignoreuser2 and place this within it.

Code:
Sorry user blocking in disabled.
---------------------

thank should do it.
Reply With Quote
  #6  
Old 01-22-2003, 08:35 AM
007's Avatar
007 007 is offline
 
Join Date: Jan 2003
Location: United States
Posts: 872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sweet , I give that a try. Now if this doesn't work, or messes anything up, is there any way to undo the queries I have to make? I'm assuming these will just not be used and remain on the server? Or will this effect how other things work..

Also, does this just take out the option to ignore? Or does it give the admin a "yes / no" option... I looked at the code and saw some stuff like this but I haven't done much with PHP yet so I wasn't sure.

Thanks again. :alien:
Reply With Quote
  #7  
Old 01-22-2003, 05:07 PM
Neo's Avatar
Neo Neo is offline
 
Join Date: Oct 2001
Location: Anywhere
Posts: 1,817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am sure this will work but if it doesnt PM me and I will put together a uninstall for it.

What it does is run along side the normal yes/no ignore mod/admin one. But if you are a mod/admin you can still ignore users... but if you are a mod/admin you will realize that you have blocked someones post and still be able to read it.

If you are a user and try to blacok another user when this is on then you will get the error message "Sorry user blocking in disabled."

Reply With Quote
  #8  
Old 01-23-2003, 12:45 PM
007's Avatar
007 007 is offline
 
Join Date: Jan 2003
Location: United States
Posts: 872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

cool, thanks, I'll let you know if it works. THANKS!
Reply With Quote
  #9  
Old 02-17-2005, 06:20 PM
bozzy bozzy is offline
 
Join Date: Oct 2003
Posts: 81
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

would this work for 3.0.3?
Reply With Quote
  #10  
Old 08-24-2007, 09:54 AM
cynthetiq's Avatar
cynthetiq cynthetiq is offline
 
Join Date: Jul 2005
Location: NYC
Posts: 190
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can anyone tell me how to modify this for 3.5.4?

or is there a mod that removes/disables this function? I cannot locate one from searching the forums.
Reply With Quote
Reply

Thread Tools
Display Modes

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 07:45 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.07299 seconds
  • Memory Usage 2,279KB
  • Queries Executed 11 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (5)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)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
  • (10)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