vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Forced Ignore (https://vborg.vbsupport.ru/showthread.php?t=109543)

Thomas Heretic 03-04-2006 10:00 PM

Forced Ignore
 
This code allows you to force one user to ignore another user's posts. This is useful in situations such as lover's spats or fueds where the involved parties are worthwhile contributors - if only they'd keep away from each other.

The plug in requires you create a custom user profile field. Name it "Forced Ignore" and set it as follows:
Type: Single Line Text Box
Field Required: No
Field Editable by User: No
Private Field: No
Field searchable on Members List: No
Show on Member List: No
Page that displays this option: Edit Profile

Once that is done note the field number created by vbulletin - you need to plug it into the php code below in the three spots you see 'fieldX' For instance, if vbulletin makes your new field number 10 you would plug in 'field10'. This php code needs to go into a plug in attached to global_start

PHP Code:

if ($vbulletin->userinfo['fieldX'])
{
    if (
$vbulletin->options['globalignore'])
    {
        
$vbulletin->options['globalignore'] = $vbulletin->options['globalignore'] . " " $vbulletin->userinfo['fieldX'];
    }
    else
    {
        
$vbulletin->options['globalignore'] = $vbulletin->userinfo['fieldX'];
    }


Afterwards you can edit the control from the user profile control of the admincp (I haven't checked the modcp). Enter the user id number of the users you wish to force a user to ignore in there seperated by spaces. DO NOT ENTER ANYTHING BUT NUMBERS or you will create a database error for the affected user.

This will keep the user from seeing the posts of that user. Because of the way vbulletin processes Tachy the user will still be displayed in the latest thread listing of each forum. (Tachy is designed to be a global ignore, not a local one).

hiiped 03-05-2006 10:27 PM

Good idea

staff=peacemakers

;)

sinaluna 03-10-2006 02:18 PM

*clicks install*

Thanks!

UK Jimbo 03-11-2006 08:59 AM

Good plan, unless the users logout to view the other ignored users' posts :)

nasko 03-31-2006 06:16 PM

Where should i write this PH script? in which file?

lordofgun 04-13-2006 12:32 PM

nice one

furst 05-03-2006 06:42 PM

How the heck am I supposed to install this? Isn't there supposed to be a plug-in to download here?

Quarterbore 05-04-2006 07:45 PM

I Need this for a problem... Hope to install it tonight...

Edit - Works like a charm!

ricknlida 05-08-2006 10:52 AM

If I use this so that user1 is "ignoring" user2's posts, then what does user1 see in a thread where user2 has posted?

Thanks!

Quarterbore 05-08-2006 12:38 PM

Quote:

Originally Posted by ricknlida
If I use this so that user1 is "ignoring" user2's posts, then what does user1 see in a thread where user2 has posted?

Thanks!

Thread to any other user:

User 3: New thread
User 4 Reply 1
User 2 Reply 2
User 3 Reply 3
User 1 Reply 4
User 2 Reply 5

User 1 sees this as:

User 3: New thread
User 4 Reply 1
User 3 Reply 3
User 1 Reply 4

You can try this on your board by just ignoring a member or a bunch or members and see what happens to the thread... Now, if the problem member logs out they can still see the threads and the posts but I have a "Miserable Users" hack installed for people that like to continue after they have been warned and forced to ignore their opponent...

In my case, I have two members that are both good members and contribute to the site... they just really hate each other... So, this makes it so the two can get a long with everybody else and for them it is like the other is not on the site anymore. It is funny when they both post in the same thread and seem to agree as when they could see each others post, they would never agree :D

This is one of my favorite hacks because of the problems it solved for me as I thought my only option was going to be to ban these two and I really hate to do that...


All times are GMT. The time now is 02:22 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.02105 seconds
  • Memory Usage 1,739KB
  • 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_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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