Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Selective Forum Filter Details »»
Selective Forum Filter
Version: 1.1.0, by akanevsky akanevsky is offline
Developer Last Online: Feb 2016 Show Printable Version Email this Page

Version: 3.5.x Rating:
Released: 10-13-2005 Last Update: 05-30-2009 Installs: 131
DB Changes Uses Plugins Auto-Templates
Translations  
No support by the author.

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

Supporters / CoAuthors

Show Your Support

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

Comments
  #2  
Old 10-14-2005, 01:33 AM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #3  
Old 10-14-2005, 02:11 AM
theArchitect's Avatar
theArchitect theArchitect is offline
 
Join Date: Sep 2004
Location: Sydney
Posts: 417
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 10-14-2005, 05:33 AM
heynurse heynurse is offline
 
Join Date: Jan 2002
Posts: 160
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, it looks like a great concept!
Reply With Quote
  #5  
Old 10-14-2005, 12:11 PM
JJR512's Avatar
JJR512 JJR512 is offline
 
Join Date: Oct 2001
Location: Glen Burnie, MD, USA
Posts: 710
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 10-14-2005, 08:50 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Will this play well with Kirby's Opt-Out product and what is the difference between the two?
Reply With Quote
  #7  
Old 10-14-2005, 09:02 PM
akanevsky akanevsky is offline
 
Join Date: Apr 2005
Posts: 3,972
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #8  
Old 10-14-2005, 10:08 PM
akanevsky akanevsky is offline
 
Join Date: Apr 2005
Posts: 3,972
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #9  
Old 10-14-2005, 10:54 PM
theArchitect's Avatar
theArchitect theArchitect is offline
 
Join Date: Sep 2004
Location: Sydney
Posts: 417
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #10  
Old 10-18-2005, 11:48 PM
lefthome's Avatar
lefthome lefthome is offline
 
Join Date: Feb 2005
Posts: 149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
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 10:18 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04837 seconds
  • Memory Usage 2,315KB
  • Queries Executed 24 (?)
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
  • (3)bbcode_php
  • (5)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
  • (1)pagenav_pagelinkrel
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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