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

ricknlida 05-08-2006 12:54 PM

I see. I like it. We also have the Miserable User hack installed. Looks like a good combo!

Gizmo5h1t3 05-08-2006 04:35 PM

Quote:

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

read the insrtructions in the first post, it tells you how to create the plugin....


excellent idea...installed!!

ricknlida 05-22-2006 10:53 AM

I like that it's not completely obvious to the user that this has been applied...but when any user clicks on the member name from the member list, the note "Forced Ignore" is in the profile.

...but it's NOT visible when a user clicks his own "My Profile".

Is there any way to hide the note "Forced Ignore" from a users public profile?

Thanks!

wattieuk 05-22-2006 08:32 PM

Quote:

Originally Posted by Gizmo5h1t3
read the insrtructions in the first post, it tells you how to create the plugin....

No it doesn't!

furst 05-23-2006 03:50 AM

Quote:

Originally Posted by Gizmo5h1t3
read the insrtructions in the first post, it tells you how to create the plugin....


excellent idea...installed!!

Would you be kind enough to repeat it for me?

kall 05-23-2006 05:47 AM

Quote:

Originally Posted by furst
Would you be kind enough to repeat it for me?

I will..

Quote:

This php code needs to go into a plug in attached to global_start

wattieuk 05-23-2006 03:26 PM

and that explains how to make the plug in does it? obviously very funny to those who know how to do these things but not much help for us non techies.

kall 05-23-2006 07:29 PM

Given that the Author has not ticked the "Supported" box, it's better than nothing.

kall 05-23-2006 07:33 PM

AdminCP - Plugin Manager - Add new Plugin.

Copy and paste the code in the first post of this thread, edit it to contain the field number of your new User Profile Field, paste that into the box in the adminCP, choose global_start as the hook.

Seriously, you would do well to read the vBulletin manual before installing anything. If you don't know how to make a plugin... its not the coders job to tell you the basics.

beano33 07-08-2006 02:04 PM

Does anyone have this working with 3.6?

darksoulz 08-31-2006 11:58 PM

Doesn't work with 3.6 for me. I'm definately interested in a port though.

thenetbox 09-07-2006 09:54 PM

I would also like this for 3.6 please :) If any one has got it to port then please share instruction :) thank you.

wcbryant 09-24-2006 11:09 AM

Also just discovered that this stopped working with 3.6.x.

Anyone have any ideas how we might get it to work? My mods and admins found this a very helpful tactic of next-to-last resort.

funky1 10-02-2006 02:57 AM

Yep, I just tried to install it in 3.6.1 and it doesn't appear to be working.

Big props to whomever might make it work for us in the 3.6.X version. I could really use it.

Thanks in advance!!

:D

LeftCoastBias 10-08-2006 01:47 AM

i've been using it for a while now... but can't figure out how to have the user number NOT show up in a line above the user's custom user title?




ok that doesn't make sense... so here's an example:

Quote:

DirtyHarry
245
dumpster diver


245 is the user that is on this member's forced ignore list. now everyone in the forum can tell he's on forced ignore.

LeftCoastBias 10-09-2006 04:11 AM

anyone?

LeftCoastBias 10-09-2006 04:14 AM

never mind.

i for some reason (unbeknownst to me) had $field8 or whatever the code is in the postbit.

i have no idea why it was there. ?????

Coldhands 10-10-2006 03:20 PM

I have this set up on vB 3.6 and it doesn't seem to be working. When I enter a persons userid number into another's profile and hit save, it does not show up on the profile when I go back to edit the user. Any idea why it's not saving this information? Should this be able to work in vB 3.6?

Gizmo5h1t3 10-17-2006 09:52 PM

Quote:

Originally Posted by furst
Would you be kind enough to repeat it for me?

fine, il try...lololol

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'];
}
}


is that plain enuff?

Watched 10-18-2006 07:27 AM

this really should be made into a product and ported to 3.6 as it is a GREAT addon for seperating 2 members who by themselves are GREAT members.. yet together.. do nothing but bicker.

Falcon Capt 10-26-2006 07:56 PM

Anyone have this working for 3.6.2???

thenetbox 10-29-2006 03:36 PM

Hi :)

Posting to subscribe here. I really would like a 3.6 version. thanks

Coldhands 11-02-2006 02:44 PM

I don't know how to port a hack / turn it into a product, but I'd like to know how. With this knowledge I'd more than gladly port a few hacks for 3.6, but I'm not sure if there's any documentation that I could find that would give me a brief run down on what steps you would take to port a hack.

If anyone could shoot me a link so I can start the learning process, I'd be more than happy to work on this. Anybody?

cecdah 11-10-2006 10:33 PM

Quote:

Originally Posted by Coldhands
I have this set up on vB 3.6 and it doesn't seem to be working. When I enter a persons userid number into another's profile and hit save, it does not show up on the profile when I go back to edit the user. Any idea why it's not saving this information? Should this be able to work in vB 3.6?

I have the same problem on 3.5.4.

I also wondered what to name the plugin? I named it Forced Ignore.

Anyone?

beano33 11-20-2006 03:12 AM

I ended up using Admin Permission Override which includes forced ignore and quite a few other useful features. It was released for 3.5, but all features worked when I installed it in 3.6.3. I also cleared my postbit_ignore template so members don't get the message that they have placed this user on ignore and the option to view the post.

Coldhands 12-04-2006 06:43 PM

Thanks beano33, that worked great (even better)!


I owe you one-half dollar (American). :D

zagman76 12-13-2006 03:35 AM

Is there a way to also block PMs from one user to another? That would help out when people take their fights to PMs.

diettalk 04-19-2007 09:51 AM

hmm.. If you add a moderator to someone's ignore, they can still see the moderators posts.

bcmedia 04-19-2007 12:13 PM

thank you so much! Installed!

diettalk 04-22-2007 10:11 AM

fyi... the user who is being "ignored" will be able to see it when they "view their profile".


All times are GMT. The time now is 05:20 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.01373 seconds
  • Memory Usage 1,819KB
  • 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
  • (9)bbcode_quote_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
  • (40)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