vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Hide View-Posts-link to post from User who is on posters Ignore List (https://vborg.vbsupport.ru/showthread.php?t=111180)

hiiped 03-22-2006 10:00 PM

Hide View-Posts-link to post from User who is on posters Ignore List
 
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

hiiped 03-23-2006 03:44 PM

-- reserved because everyone does it ---

projectego 03-23-2006 04:27 PM

Nice idea, I like it. :)

kall 03-23-2006 05:28 PM

Please put the instructions into a text file. :)

hiiped 03-23-2006 09:45 PM

Quote:

Originally Posted by kall
Please put the instructions into a text file. :)

done ;)

Nathan2006 03-27-2006 07:00 AM

Thank you great idea :)

Install

Taco John 06-18-2006 04:54 AM

Is there a way to make it so that their threads are ignored too?

moonclamp 06-25-2006 11:02 AM

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?

SpankMe 07-02-2006 11:41 PM

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.

Carlos2 09-19-2007 03:42 PM

Works in 3.6? This is a administrator plugin, isnt it?

Carlos2 10-02-2007 09:04 PM

It works in 3.6. Thankssss ;)
Is any way to dont see in WHOS ONLINE the ignore users?

AndrewRich 04-10-2009 01:38 AM

Very clever and very simple. Thanks.

furnival 10-09-2011 11:33 AM

Appears to work fine for me on VB 3.8.1 (changed line 1095). Thanks to the thread starter!

furnival 03-13-2012 11:14 PM

Change required is on line 1100 of version 3.8.7 PL2

acast 12-14-2012 02:30 PM

Working in 4.1.12. Thank you!


All times are GMT. The time now is 05:49 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01105 seconds
  • Memory Usage 1,743KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (15)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete