Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Forced Ignore Details »»
Forced Ignore
Version: 1.00, by Thomas Heretic Thomas Heretic is offline
Developer Last Online: Mar 2008 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 03-04-2006 Last Update: Never Installs: 36
 
No support by the author.

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 05-08-2006, 12:54 PM
ricknlida's Avatar
ricknlida ricknlida is offline
 
Join Date: Nov 2005
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I see. I like it. We also have the Miserable User hack installed. Looks like a good combo!
Reply With Quote
  #13  
Old 05-08-2006, 04:35 PM
Gizmo5h1t3's Avatar
Gizmo5h1t3 Gizmo5h1t3 is offline
 
Join Date: Aug 2005
Location: ROCHDALE LANCS UK
Posts: 650
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!!
Reply With Quote
  #14  
Old 05-22-2006, 10:53 AM
ricknlida's Avatar
ricknlida ricknlida is offline
 
Join Date: Nov 2005
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #15  
Old 05-22-2006, 08:32 PM
wattieuk's Avatar
wattieuk wattieuk is offline
 
Join Date: Jul 2004
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Gizmo5h1t3
read the insrtructions in the first post, it tells you how to create the plugin....
No it doesn't!
Reply With Quote
  #16  
Old 05-23-2006, 03:50 AM
furst furst is offline
 
Join Date: Dec 2005
Posts: 362
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #17  
Old 05-23-2006, 05:47 AM
kall's Avatar
kall kall is offline
 
Join Date: Apr 2004
Location: New Zealand
Posts: 2,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #18  
Old 05-23-2006, 03:26 PM
wattieuk's Avatar
wattieuk wattieuk is offline
 
Join Date: Jul 2004
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #19  
Old 05-23-2006, 07:29 PM
kall's Avatar
kall kall is offline
 
Join Date: Apr 2004
Location: New Zealand
Posts: 2,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Given that the Author has not ticked the "Supported" box, it's better than nothing.
Reply With Quote
  #20  
Old 05-23-2006, 07:33 PM
kall's Avatar
kall kall is offline
 
Join Date: Apr 2004
Location: New Zealand
Posts: 2,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #21  
Old 07-08-2006, 02:04 PM
beano33 beano33 is offline
 
Join Date: Feb 2003
Posts: 124
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does anyone have this working with 3.6?
Reply With Quote
Reply


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 09:54 AM.


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.04566 seconds
  • Memory Usage 2,312KB
  • Queries Executed 25 (?)
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
  • (1)bbcode_php
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (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_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
  • 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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete