View Full Version : Forced Ignore
Thomas Heretic
03-04-2006, 10:00 PM
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
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
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
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
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
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?
Would you be kind enough to repeat it for me?
I will..
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.
Given that the Author has not ticked the "Supported" box, it's better than nothing.
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:
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
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
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 (https://vborg.vbsupport.ru/showthread.php?t=94193) 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".
Anybody for 3.6.8 or 3.7 would be much appreciated really anyone?
jilly
04-15-2008, 09:35 PM
Also, couldn't this be tweaked to allow users to put another member on forced ignore? Say I did not want member A seeing or reading any of my posts - just like this hack works from the admin side, couldn't it be made so that it would be an option for the user in their usercp? That way they could force other people they didn't want reading their posst to ignore them..
I would really appreciate it if somebody could get this to work for 3.7.1
Raptor
06-17-2008, 07:29 PM
I would really appreciate it if somebody could get this to work for 3.7.1
seconded
JKatz
09-14-2008, 04:54 PM
I could really use this for 3.7
jilly
10-26-2008, 09:33 AM
I would also love it if we could make it an end user option, so for two members fighting, if they wanted to force their adversary/temporary enemy etc to not be able to see their posts, etc, it would allow people to work out their squabbles with less mod interference...
I have issues where a user puts the one person on ignore, but is mad because the ignored person can still see all their threads.. so we need a way for people tohide their info from others selectively..
home9000
11-05-2008, 02:29 AM
Anybody for 3.6.x
jeremyalyea
07-23-2009, 03:08 AM
I ended up using Admin Permission Override (https://vborg.vbsupport.ru/showthread.php?t=94193) 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.
This worked for me! Thanks for posting.
Phaedrus
09-01-2009, 12:51 AM
I wish this one would work in 3.6 and above.... *sigh*
Jah-Hools
09-07-2009, 01:27 PM
Me too 3.8 and above.......
Wonksta
11-03-2010, 12:26 AM
Working nicely in 3.8.6
Phaedrus
03-06-2011, 08:34 PM
Does it work in 4.x versions?
It definitely works in the 3.8.7 version. I had to add somebody to a user's forced ignore as my Admin account saw the posts regardless. I had been testing wrong before as Admins are not blocked and forced to ignore the user.
Remember to update all three of the "Fieldx" in the code or it won't work. If this works in 4.x I'm finally set to upgrade as I'll have the option to force users to ignore each other.
I've tried this in 4.1.5 and it crashed teh forum, or at least stopped it from loading.
Has anyone had any luck getting it to work or found somthing that supercedes it?
I would find this mod very usefull on my forum.
Freak0204
12-13-2011, 02:25 AM
Need something like this for the 4.x suite and classic. Anyone have anything similar?
nasko
03-12-2012, 05:00 AM
Unfortunately, it doesn't work in v.4.1.8...
:(
Ramsesx
02-07-2014, 11:18 AM
Works like a charm on 3.8.7 expect the thread numbering.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.