vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Hide Threads Posted By Ignored Users (https://vborg.vbsupport.ru/showthread.php?t=64231)

tjdrico 04-21-2004 10:00 PM

Hide Threads Posted By Ignored Users
 
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.

MindTrix 04-22-2004 04:25 PM

Sounds like a brilliant hack to me, stops them nuisance posts. Well done :)

ImportPassion 04-23-2004 11:26 PM

This was taken out of vb3? THey had it in vb2.

ImportPassion 04-23-2004 11:33 PM

Ok, I get it, u don't want a thread to appear at all? or posts? cause right now if u ignore a user it says "This message is hidden because MindTrix is on your ignore list."

msimplay 04-24-2004 10:02 AM

good hack i was wondering why this wasn't in vb3 as standard

tjdrico 04-27-2004 02:00 PM

Quote:

Originally Posted by 7thgenCivic.Com
Ok, I get it, u don't want a thread to appear at all? or posts? cause right now if u ignore a user it says "This message is hidden because MindTrix is on your ignore list."

That's right. The "This message is hidden because X is on your ignore list" is irritating. If I've ignored X, I dont want to know he's posting. That is easy to change by editing the postbit_ignore template, but the thread display would still show threads that he's started. This hack hides those.

There is still one more place that I'll still see X on thread lists - when he's the most recent poster, but I haven't tackled that yet.

diettalk 06-07-2004 07:46 PM

Is this working for anyone? It doesn't seem to work on mine.

tjdrico 06-09-2004 09:59 AM

It's working for me. =) Are you sure you followed the instructions correctly?

NuclioN 06-10-2004 05:49 AM

It looks if it does not work very good. Members reporting ignored userpost when testing this. I've followed the instructions.

Noiz Pollution 06-11-2004 08:57 AM

If I have a user on ignore (either with or without this hack) will I still see what they've said if someone quotes them?

tjdrico 06-11-2004 09:06 AM

Yes, as the quoted test becomes part of the post, and isn't something separate.

scotty 06-28-2004 09:28 AM

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.

scotty 06-28-2004 10:13 AM

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;
:)

subu1 06-29-2004 09:19 PM

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

scotty 06-30-2004 06:32 AM

*g - yes, it works for admins too :D

Aug15 08-15-2004 06:54 PM

I did all this correctly but also can't get to work :( Any idea?

LunaTech 09-26-2004 10:48 PM

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.

UK Jimbo 01-07-2005 01:39 PM

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/ :)

Doogie 01-19-2005 11:27 PM

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.

UK Jimbo 01-19-2005 11:51 PM

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.

fly 10-06-2005 12:13 AM

Can we get a vB3.5 mod of this?

UK Jimbo 10-08-2005 08:43 PM

3.5 version of this hack at https://vborg.vbsupport.ru/showthread.php?t=97902

Borgs8472 10-12-2005 10:35 PM

<a href="https://vborg.vbsupport.ru/showthread.php?t=98231" target="_blank">Hide threads in search results too</a>

kofoid 06-06-2006 05:22 PM

Is there any possible way to port this to 3.5?

fly 06-06-2006 05:29 PM

Quote:

Originally Posted by kofoid
Is there any possible way to port this to 3.5?

Did you even read the thread?


All times are GMT. The time now is 06:41 AM.

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.01444 seconds
  • Memory Usage 1,776KB
  • 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
  • (2)bbcode_code_printable
  • (6)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (25)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