vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=98360

Selective Forum Filter
by akanevsky
14 Oct 2005 01:41

2 Attachment(s)
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 14 Oct 2005 02:33

Hmm, not sure but what about

cache_ordered_forums

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

to avoid the file edits?

Btw: Where is the Product XML? ;)

theArchitect 14 Oct 2005 03:11

Quote:

Originally Posted by KirbyDE
Hmm, not sure but what about

cache_ordered_forums

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

to avoid the file edits?

Btw: Where is the Product XML? ;)

What he said.

But I love the concept.

heynurse 14 Oct 2005 06:33

Yes, it looks like a great concept!

JJR512 14 Oct 2005 13:11

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 14 Oct 2005 21:50

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

akanevsky 14 Oct 2005 22:02

Quote:

Originally Posted by KirbyDE
Hmm, not sure but what about

cache_ordered_forums

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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 14 Oct 2005 23:08

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 14 Oct 2005 23:54

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 19 Oct 2005 00:48

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.

Cyricx 27 Oct 2005 04:06

Unbelievable. Awesome hack!!! This is just what I was hoping for especially for a site like mine that hosts forums for so many different subjects :)

Cyricx 01 Nov 2005 15:49

I wonder if you could add like X images or something to the forumbit that were links to disable a forum from view.

Hexemer 22 Nov 2005 18:16

A very nice usefull hack :)

akanevsky 22 Nov 2005 18:43

Thank you.

Matt_270581 24 Nov 2005 00:12

Great Hack:)

/me installs


All times are GMT. The time now is 06:59.

Powered by vBulletin® Version 3.8.12
Copyright © 2019, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.