vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Disable Ignore User Option?? (https://vborg.vbsupport.ru/showthread.php?t=47967)

007 01-21-2003 11:30 AM

Disable Ignore User Option??
 
Is there a way to disable the ignore option? Thanks..

007 01-21-2003 10:09 PM

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???

Neo 01-21-2003 10:28 PM

You mean.. so users dont have the option ignore other users correct?

007 01-22-2003 03:27 AM

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:

Neo 01-22-2003 07:36 AM

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.

007 01-22-2003 08:35 AM

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:

Neo 01-22-2003 05:07 PM

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."

:)

007 01-23-2003 12:45 PM

cool, thanks, I'll let you know if it works. THANKS! :)

bozzy 02-17-2005 06:20 PM

would this work for 3.0.3?

cynthetiq 08-24-2007 09:54 AM

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.


All times are GMT. The time now is 02:42 AM.

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.01031 seconds
  • Memory Usage 1,760KB
  • 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
  • (1)bbcode_code_printable
  • (5)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