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?


All times are GMT. The time now is 07:51 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.01059 seconds
  • Memory Usage 1,737KB
  • 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_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete