Go Back   vb.org Archive > Community Central > vBulletin.org Site Feedback
FAQ Community Calendar Today's Posts Search

Closed Thread
 
Thread Tools Display Modes
  #1  
Old 01-21-2009, 08:17 AM
tmc tmc is offline
 
Join Date: May 2008
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Allow us to *truly* ignore a user

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.

HTML Code:
<!-- 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:

PHP Code:
if (trim($vbulletin->userinfo['ignorelist']))
{
    
$ignored_css '';
    
$ignorelist preg_split('/( )+/'trim($vbulletin->userinfo['ignorelist']), -1PREG_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_css0, -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:

HTML Code:
<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.
Closed Thread


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:04 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03169 seconds
  • Memory Usage 2,221KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_html
  • (1)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)showthread_list
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_threadedmode.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids_threaded
  • showthread_threaded_construct_link
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete