PDA

View Full Version : Allow us to *truly* ignore a user


tmc
01-21-2009, 08:17 AM
The main problem (for me) is that I can still see all threads they create. Without pointing anything specific out, there are mods that exist here that are offensive to me (sometimes I even question why they are allowed here, even if not everyone shares my same opinions). I don't want to be subject to these mods, or these modders. And sadly for whatever reason, vBulletin has decided that we shouldn't be allowed to truly ignore a user.

I've tried coming up with a CSS rule (for AdBlock element hider) to hide all elements that contain a link to the user's profile, but I just don't think it's possible. Basically CSS needs the OPPOSITE selector to ">". You can read about it here if you'd like: http://www.shauninman.com/archive/20...fied_selectors

OK.. So the solution is to allow us the ability to block the entire TR easily.


<!-- threadbit -->
<tr class="userid-XXXXXX">
<!-- Table row code -->
</tr>
Or simply using the userid alone would do. And then, on the client side I can block any TR with that userid as the class.

This could even be turned into a NON-client side modification.. I don't know off the top of my head how vBulletin grabs an ignored users list, but I imagine it's available on every page load through $vbulletin->userinfo.

OK, looked it up just now, so you could do:


if (trim($vbulletin->userinfo['ignorelist']))
{
$ignored_css = '';
$ignorelist = preg_split('/( )+/', trim($vbulletin->userinfo['ignorelist']), -1, PREG_SPLIT_NO_EMPTY);
foreach($ignorelist AS $ignoreduserid)
{
$ignored_css .= "tr.userid-$ignoreduserid, "; // in fact, remove the tr to use it anywhere.
}
$ignored_css = substr($ignored_css, 0, -2); // Remove extra comma & space

if(strlen($ignored_css) > 0) // mostly unnecessary check to avoid CSS errors...
{
$show['ignored_css'] = true;

$ignored_css .= ' {display: none;}';

// If you want to template it...
//eval('$ignoredlist_css = "' . fetch_template('ignored_css') . '";');
}
}
And in headinclude:


<if condition="$show['ignored_css']">
<style type="text/css" media="all">
$ignored_css
</style>
</if>
And of course $show['ignored_css'] could be toggled through a UserCP option if needed. And the default could be "false" as to mimic default vBulletin behavior, but still give us the option of not being bombarded with modifications that are offensive to us.

P.S - Another option: Anyone interested in doing so immediately can use Greasemonkey to do it for them. For ease of coding you may embed jQuery into Greasemonkey also.

(I'm not sure if there's any interest but I can always hack it up for real, or share the Greasemonkey script.. But I tend to shy away from Greasemonkey)

--------------- Added 21 Jan 2009 at 05:33 ---------------

Confused why this was moved out of Site Feedback. But whatever.

--------------- Added 21 Jan 2009 at 05:36 ---------------

Actually, if you're going to simply not listen to my feedback at all on the matter, can you please delete it?

--------------- Added 23 Jan 2009 at 03:19 ---------------

Added the actual body of the message back in since this is back in Site Feedback where it was originally posted. :)

Lynne
01-21-2009, 02:24 PM
Maybe if you explain better what you are asking, then we can help you.

tmc
01-21-2009, 09:58 PM
Maybe if you explain better what you are asking, then we can help you.
I don't know what you're talking about

Can this thread be removed or not? I asked Marco via PM and he replied back to me without deleting this.

For whatever reason he moved this thread from Site Feedback to here. So I'm angry with him for ignoring my feedback and deleted said feedback from my post.

Therefore this thread is serving no purpose being here. Don't you agree?

Now if it could be moved back into Site Feedback I'll gladly restore the main body of my first post.

Lynne
01-21-2009, 10:07 PM
So often people post in the site feedback forum when they are actually asking questions about how to do something on their own site. Marco probably thought you were asking a question regarding your own site and so he moved it. If you are asking a question about vb.org, then I'll move it back to the site feedback forum.

SEOvB
01-21-2009, 11:26 PM
I dont see the problem? If you place a user on ignore for whatever reason the only thing that shows up is a small box that informs you the ignored user has made a post and giving you the option to view the post or unignore the user

Alfa1
01-21-2009, 11:47 PM
Thats not true. If the member creates a bulk of threads, then those will be visible. To truly ignore the user, those threads need to be ignored as well.

tmc
01-23-2009, 06:20 AM
Thats not true. If the member creates a bulk of threads, then those will be visible. To truly ignore the user, those threads need to be ignored as well.
And this is what I would like to be addressed..

I added the actual body of my first post back since this was put back into Site Feedback. Sorry for anyone confused along the way as to what on earth this thread was about since there was no first post.

I think I provided a nice-enough client side way of hiding threads/modifications created by ignored users.. I think a server-side method would be far too messy..

--------------- Added 1232699178 at 1232699178 ---------------

I've decided though that I'm still going to try doing this in Greasemonkey.. Because most likely this won't be implemented here...

Paul M
01-23-2009, 10:12 AM
Because most likely this won't be implemented here...
You assume correctly.

nexialys
01-23-2009, 10:31 AM
hum, https://vborg.vbsupport.ru/showthread.php?t=181626 is the answer... but i think it would be pointless to be installed on vb.org... but you can install it on your site.

tmc
01-24-2009, 01:38 AM
hum, https://vborg.vbsupport.ru/showthread.php?t=181626 is the answer... but i think it would be pointless to be installed on vb.org... but you can install it on your site.
How is it pointless?

I don't want to see religious modifications on here.

And while not exactly as "offensive" as religious modifications, I don't want to see modifications that are aimed solely to Vietnamese vB users, or Turkish vB users, for example.

--------------- Added 23 Jan 2009 at 22:39 ---------------

You assume correctly.
What a great response. Glad you really went in depth as to why we can't ignore modifications/modders here. It all makes sense now.

Alfa1
01-24-2009, 01:55 AM
Does it matter why? The explanation will not affect your ability to ignore users. No offence meant BTW.

nexialys
01-24-2009, 10:37 AM
I don't want to see religious modifications on here.

vb.org is not for that kind of action. there is only ONE religious modification over here, and it is to display Qur'an's verses... like we already have one that display Bible verses... you're against the Bible too ?!...

Spock: "In any case, were I to invoke logic, logic clearly dictates that the needs of the many outweigh the needs of the few."
Kirk: "Or the one."

Paul M
01-24-2009, 11:23 AM
What a great response. Glad you really went in depth as to why we can't ignore modifications/modders here. It all makes sense now.
Perhaps you would prefer no response ? We do not have to explain every single decision. Its not going to happen. Nothing more needs to be said.