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
Hide View-Posts-link to post from User who is on posters Ignore List Details »»
Hide View-Posts-link to post from User who is on posters Ignore List
Version: 1.00, by hiiped hiiped is offline
Developer Last Online: Jun 2013 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 03-22-2006 Last Update: 03-22-2006 Installs: 12
Code Changes Is in Beta Stage  
No support by the author.

This file change will hide the "View Post" link from a viewer if the poster is on the viewers ignore list

Benefits ? : less work for Moderators and Administrators to clean up posts because if user A is ignoring user B, then theres no need for A to see the link and quickly click to view their post and may reply/retaliate to comments.

Currently in vB when user A ignores user B, in a thread user A can easily click the link "View Post" to see what user B has posted. ( see attachments )

This modification removes that link ( see attachment 2 )

If user B is ignored by user A, in LAST POST, user A will see user B name if s/he is LAST POSTER. But clicking link will take to thread but still no click to view post link


Whats bad about the ignore users features of vB and this mod ?
when a user LOGS OUT he/she can read all comments ( if non members can view posts )

File edits: 1
File name: showthread.php
Time to do: 19.4 seconds
No other file changes

Instructions
BACKUP FILE, BACK UP, did I say BACK UP file showthread.php in case you want to revert back

Instruction continued: open showthread.php and find around line 1043 to 1045
Code:
		$parsed_postcache = array('text' => '', 'images' => 1, 'skip' => false);

		$postbits .= $postbit_obj->construct_postbit($post);
replace with
Code:
		$parsed_postcache = array('text' => '', 'images' => 1, 'skip' => false);

//		$postbits .= $postbit_obj->construct_postbit($post);
// replaced below 
//don't get postbit if ignored post 
// start changes 
if ($ignore[$post[userid]] AND $post['userid'] != 0) { 
    // do nothing 
} else { 
      $postbits .= $postbit_obj->construct_postbit($post); 
}  
// end changes
SAVE FILE = DONE

reupload/FTP showthread.php back to your forum root overwriting

recap:
this basically replaces line 1045
Code:
$postbits .= $postbit_obj->construct_postbit($post);
with
Code:
if ($ignore[$post[userid]] AND $post['userid'] != 0) { 
    // do nothing 
} else { 
      $postbits .= $postbit_obj->construct_postbit($post); 
}
But I use the top instructions just so I can keep the original showthread.php code in tact by commenting it out with //


copyright: NONE, anyone is free to modify, enhance, add, create plug-in and do whatever is allowed by vBulletin.com

Show Your Support

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

Comments
  #2  
Old 03-23-2006, 03:44 PM
hiiped hiiped is offline
 
Join Date: Jan 2006
Posts: 151
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

-- reserved because everyone does it ---
Reply With Quote
  #3  
Old 03-23-2006, 04:27 PM
projectego's Avatar
projectego projectego is offline
 
Join Date: Feb 2006
Location: UK
Posts: 724
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice idea, I like it.
Reply With Quote
  #4  
Old 03-23-2006, 05:28 PM
kall's Avatar
kall kall is offline
 
Join Date: Apr 2004
Location: New Zealand
Posts: 2,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Please put the instructions into a text file.
Reply With Quote
  #5  
Old 03-23-2006, 09:45 PM
hiiped hiiped is offline
 
Join Date: Jan 2006
Posts: 151
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kall
Please put the instructions into a text file.
done
Reply With Quote
  #6  
Old 03-27-2006, 07:00 AM
Nathan2006's Avatar
Nathan2006 Nathan2006 is offline
 
Join Date: Feb 2006
Location: UK
Posts: 862
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you great idea

Install
Reply With Quote
  #7  
Old 06-18-2006, 04:54 AM
Taco John Taco John is offline
 
Join Date: Nov 2002
Location: ddddd
Posts: 130
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a way to make it so that their threads are ignored too?
Reply With Quote
  #8  
Old 06-25-2006, 11:02 AM
moonclamp's Avatar
moonclamp moonclamp is offline
 
Join Date: May 2004
Location: London
Posts: 516
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wouldn't something like this also be possible with a series of template conditionals connected to a custom profile field?

In that way a user can choose whether to completely ignore a user or keep the message.

*thinks out loud*

If so, the same conditional might be able to wrap around the "last poster" name or threads they start ... Or would this use too many resources?
Reply With Quote
  #9  
Old 07-02-2006, 11:41 PM
SpankMe's Avatar
SpankMe SpankMe is offline
 
Join Date: Nov 2001
Location: New Zealand
Posts: 141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yep, needs a way for the user to pick ignore or completly ignore. Stop viewing threads is another thing it needs to do. Also needs to work on PMs.
Reply With Quote
  #10  
Old 09-19-2007, 03:42 PM
Carlos2 Carlos2 is offline
 
Join Date: Sep 2002
Posts: 187
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works in 3.6? This is a administrator plugin, isnt it?
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 06:11 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.09228 seconds
  • Memory Usage 2,298KB
  • Queries Executed 23 (?)
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
  • (4)bbcode_code
  • (1)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
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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