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)
-   -   Selective Forum Filter (https://vborg.vbsupport.ru/showthread.php?t=98360)

akanevsky 10-13-2005 10:00 PM

Selective Forum Filter
 
I no longer support my hacks. Please feel free to update them and release new versions elsewhere as long as I get the credit for the original modification.

/*================================================= =====================*\
|| Selective Forum Filter
||
|| Author : Anton Kanevsky
|| Co-Author(s) : Andreas
|| Works on : vBulletin 3.5.x - 3.8.x
|| Released : May 31, 2009
||
|| Time required to install: 30 seconds
|| Difficulty: easy
\*================================================ ======================*/

DESCRIPTION

Ever came across large boards with a huge number of sub forums? Couldn't find your info? Wanted to run away from that huge load of stupid threads? This hack is intended to save your users from having such a horrible experience. It provides them with an opportunity to exclude any number of forums from the forums list (as well as from "get new"/"get daily" searches), which still letting them to access those forums directly and search within them, too.

STATISTICS

Products to Install: 1


INTRODUCTION

To enable "can be excluded" in all forums, run this query:
UPDATE PFXforum SET excludable = 1
To disable "can be excluded" in all forums, run this query:
UPDATE PFXforum SET excludable = 0
In both cases, PFX must be replaced with the actual table prefix that you have defined in config.php.
If you have not defined a prefix, remove PFX from the queries.
After you run either one of these queries, you must then open and save any one forum for the forum cache to be updated.

VERSION HISTORY

1.1.0
[+] The hack is now compatible with vBulletin 3.5.x - 3.8.x.
[+] Eliminated all template edits.

1.0.2
[+] The hack is now compatible with vBulletin 3.6.
[+] Corrected a couple of mistakes in the installation manual.

1.0.1
[+] Added option to set forums as excludable. By default, excludability of all forums is disabled.

1.0.0
First Public Release

The installation manual is contained within the attached file.

IF YOU LIKE MY HACK, PLEASE CLICK INSTALL

Andreas 10-14-2005 01:33 AM

Hmm, not sure but what about

cache_ordered_forums
PHP Code:

$excludeforums explode(','$vbulletin->userinfo['excludeforumids']);
foreach (
$excludeforums AS $forumid)
{
    
$vbulletin->forumcache["$forumid"]['displayorder'] = 0;


to avoid the file edits?

Btw: Where is the Product XML? ;)

theArchitect 10-14-2005 02:11 AM

Quote:

Originally Posted by KirbyDE
Hmm, not sure but what about

cache_ordered_forums
PHP Code:

$excludeforums explode(','$vbulletin->userinfo['excludeforumids']);
foreach (
$excludeforums AS $forumid)
{
    
$vbulletin->forumcache["$forumid"]['displayorder'] = 0;


to avoid the file edits?

Btw: Where is the Product XML? ;)

What he said.

But I love the concept.

heynurse 10-14-2005 05:33 AM

Yes, it looks like a great concept!

JJR512 10-14-2005 12:11 PM

Can this be used to, or be modified to be able to, set a universal forum to exclude from the "get new" from the admincp?

The reason is that I have a hidden forum on my board. It's set to inactive, which as described in the admincp prevents it from showing up on the forum view, but is still open if someone knows the URL to it. But it also shows up through the "get new" feature, and I'd like to avoid that. I don't want to make the forum a password-only or limit by permissions or masks; I want it to be accessible to anyone clever enough to find it, but I don't want it to be too too easy, either. :)

Boofo 10-14-2005 08:50 PM

Will this play well with Kirby's Opt-Out product and what is the difference between the two? ;)

akanevsky 10-14-2005 09:02 PM

Quote:

Originally Posted by KirbyDE
Hmm, not sure but what about

cache_ordered_forums
PHP Code:

$excludeforums explode(','$vbulletin->userinfo['excludeforumids']);
foreach (
$excludeforums AS $forumid)
{
    
$vbulletin->forumcache["$forumid"]['displayorder'] = 0;


to avoid the file edits?

Btw: Where is the Product XML? ;)

Hmm... That hooks only works within if ($getcounters)... And I am not sure that $getcounters are on everywhere. I'll have to research that before I can say yes.

Quote:

Originally Posted by JJR512
Can this be used to, or be modified to be able to, set a universal forum to exclude from the "get new" from the admincp?

The reason is that I have a hidden forum on my board. It's set to inactive, which as described in the admincp prevents it from showing up on the forum view, but is still open if someone knows the URL to it. But it also shows up through the "get new" feature, and I'd like to avoid that. I don't want to make the forum a password-only or limit by permissions or masks; I want it to be accessible to anyone clever enough to find it, but I don't want it to be too too easy, either. :)

This sounds like a vBulletin design issue. Post the problem on vBulletin.com, cause hidden forums should not show up through "get new".

Quote:

Originally Posted by Boofo
Will this play well with Kirby's Opt-Out product and what is the difference between the two? ;)

It will not play nicely. Instead, it is a modified version of his Opt-Out product, which features everything there is in Kirby's product plus removal of forums from forums list, which Kirby refused to add as a feature.

akanevsky 10-14-2005 10:08 PM

Okay, package updated:

1. Missing XML File Added.
2. The hack is now a plugin-type only. Does not require any file edits.

KirbyDE, please move this to an appropriate forum.

theArchitect 10-14-2005 10:54 PM

Quote:

Originally Posted by Dark Visor
Okay, package updated:

1. Missing XML File Added.
2. The hack is now a plugin-type only. Does not require any file edits.

KirbyDE, please move this to an appropriate forum.

You Da Man!

lefthome 10-18-2005 11:48 PM

This has to be one of the very best hacks I have used from this site. We have a lot of sections and a large number of our members get upset because of the size. This just fixed their crying....


THANK YOU, THANK YOU, THANK YOU.


All times are GMT. The time now is 11:54 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.01318 seconds
  • Memory Usage 1,756KB
  • 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
  • (3)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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