Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Hide Threads Posted By Ignored Users Details »»
Hide Threads Posted By Ignored Users
Version: 1.00, by tjdrico tjdrico is offline
Developer Last Online: Apr 2014 Show Printable Version Email this Page

Version: 3.0.0 Rating:
Released: 04-21-2004 Last Update: Never Installs: 17
 
No support by the author.

My posters feel that ignoring a user should mean ignoring them. This was easy in the posts view because I simply deleted the contents of postbit_ignore. However, there wasn't an equivalent for the thread view, so after a search on here I came up with the following mini-hack that will hide the threads from
ignored users in the thread view.

Step 1 - add a new template:

Title: threadbit_ignore
Template: <!-- hide threads started by ignored users. Nothing to see here -->

(or just leave it empty if you prefer, but the comment reminds you what it's for)


Step 2 - edit file:

Open: forumdisplay.php

Find:
PHP Code:
        'forumrules' 
Replace with:
PHP Code:
        'forumrules',
        
'threadbit_ignore' 
Find:
PHP Code:
                eval('$threadbit .= "' fetch_template('threadbit') . '";'); 
Replace with:
PHP Code:
                if ($ignore["$thread[postuserid]"])
                {
                    eval(
'$threadbit .= "' fetch_template('threadbit_ignore') . '";');
                }    
                else
                {
                    eval(
'$threadbit .= "' fetch_template('threadbit') . '";');
                } 
Save & Close

Your users should now live in blissful ignorance of those they've ignored. My apologies if I have duplicated another hack, but I did search and didn't find anything.

Show Your Support

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

Comments
  #12  
Old 06-11-2004, 09:06 AM
tjdrico's Avatar
tjdrico tjdrico is offline
 
Join Date: Mar 2004
Location: Morecambe, UK
Posts: 148
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, as the quoted test becomes part of the post, and isn't something separate.
Reply With Quote
  #13  
Old 06-28-2004, 09:28 AM
scotty's Avatar
scotty scotty is offline
 
Join Date: Oct 2001
Location: Mannheim, Germany
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by diettalk
Is this working for anyone? It doesn't seem to work on mine.
it isn't working for me too!

Yes, I followed the instructions.
Reply With Quote
  #14  
Old 06-28-2004, 10:13 AM
scotty's Avatar
scotty scotty is offline
 
Join Date: Oct 2001
Location: Mannheim, Germany
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok if found out, why:

i doubled this code block:

Code:
// Get Ignore Users
			$ignore = array();
			if (trim($bbuserinfo['ignorelist']))
			{
				$ignorelist = preg_split('/( )+/', trim($bbuserinfo['ignorelist']), -1, PREG_SPLIT_NO_EMPTY);
				foreach ($ignorelist AS $ignoreuserid)
				{
					if (!$buddy["$ignoreuserid"])
					{
						$ignore["$ignoreuserid"] = 1;
					}
				}
			}

who was inside if ($vboptions['threadpreview'] > 0) just above

Code:
		$show['threads'] = true;
Reply With Quote
  #15  
Old 06-29-2004, 09:19 PM
subu1 subu1 is offline
 
Join Date: Sep 2002
Location: Germany
Posts: 189
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok, i don't like the supermod on my Girlfriend Community, but i am Tech Admin in this Community. Works this Hack for Admins? *lol*

greetz subu1
Reply With Quote
  #16  
Old 06-30-2004, 06:32 AM
scotty's Avatar
scotty scotty is offline
 
Join Date: Oct 2001
Location: Mannheim, Germany
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*g - yes, it works for admins too
Reply With Quote
  #17  
Old 08-15-2004, 06:54 PM
Aug15 Aug15 is offline
 
Join Date: Aug 2004
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I did all this correctly but also can't get to work Any idea?
Reply With Quote
  #18  
Old 09-26-2004, 10:48 PM
LunaTech LunaTech is offline
 
Join Date: Aug 2004
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For this to work, thread preview must be enabled or you can comment out the lines
// if ($vboptions['threadpreview'] > 0)
// {

and the close for that if.
Reply With Quote
  #19  
Old 01-07-2005, 01:39 PM
UK Jimbo's Avatar
UK Jimbo UK Jimbo is offline
 
Join Date: Sep 2002
Posts: 249
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by LunaTech
For this to work, thread preview must be enabled or you can comment out the lines
// if ($vboptions['threadpreview'] > 0)
// {

and the close for that if.

or change:

PHP Code:
if ($vboptions['threadpreview'] > 0
to

PHP Code:
if(true

edit: this is a fantastic hack - thanks from all at http://www.visordown.com/forums/
Reply With Quote
  #20  
Old 01-19-2005, 11:27 PM
Doogie Doogie is offline
 
Join Date: Nov 2001
Location: Christchurch, New Zealand
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I want a hack similar to this, but for posts. Sometimes it is necessary to read the thread, but users want the ability to be able to not see their posts. If someones on their ignore list, they don't want to see their drivel, but see the thread.

I'm guessing it's in showthread or similar, but no idea where to start really.
Reply With Quote
  #21  
Old 01-19-2005, 11:51 PM
UK Jimbo's Avatar
UK Jimbo UK Jimbo is offline
 
Join Date: Sep 2002
Posts: 249
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Doogie
I want a hack similar to this, but for posts. Sometimes it is necessary to read the thread, but users want the ability to be able to not see their posts. If someones on their ignore list, they don't want to see their drivel, but see the thread.

I'm guessing it's in showthread or similar, but no idea where to start really.
To totally hide a users posts you can just replace the postbit_ignore and postbit_ignore_global templates with empty templates.
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 07:20 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.04720 seconds
  • Memory Usage 2,316KB
  • 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
  • (2)bbcode_code
  • (6)bbcode_php
  • (3)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
  • (2)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