The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Selective Forum Filter Details »» | |||||||||||||||||||||||||||||
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 Download Now
Screenshots
Supporters / CoAuthors Show Your Support
|
Благодарность от: | ||
vijayninel |
Comments |
#62
|
|||
|
|||
Will this be available for 4.0?
|
#63
|
|||
|
|||
Excellent thanks. My users have been moaning about having this option for ages. works fine on 3.8.4
|
#64
|
||||
|
||||
I would be ever so grateful! I stupidly updated my forum to vb4 without realizing I'd break this product.
|
#65
|
|||
|
|||
I was able to get this to work with vB4. The plugin "SFF: User Options" has to be changed to work with the new template engine used with vB4. Learning a little PHP never hurt, right?
|
#66
|
|||
|
|||
Since I've been getting a steady stream of questions regarding the update to vB4, here's how you update to vB4:
The only problem with this hack in vB4 is that it doesn't appear correctly in the UserCP. This is due to vB4 using a new template creation engine (which is much, much easier to use - makes it obvious which variables are available to templates and which are not). As of right now, the templates are using variables that they don't have access to, so it doesn't work. These modifications fixes it to work with vB4: AdminCP --> Products & Plugins --> Plugin Manager --> "SFF: User Options" Replace this: PHP Code:
With this: PHP Code:
Then go back into the plugin manager and edit "SFF: Cache Templates". This plugin is trying to access a variable which doesn't exist in vB4. Change this: PHP Code:
PHP Code:
So, go to Styles & Templates --> Style Manager --> YOUR_STYLE_HERE --> "Modify User Template Options" --> "modifyoptions_excludeforums" Replace the entire template contents with this: Code:
<div class="blockrow"> <legend>{vb:rawphrase exclude_forums_title}</legend> <p class="description">{vb:rawphrase exclude_forums_desc_1} <br /> <br />{vb:rawphrase exclude_forums_desc_2}</p> <div class="group"> <select style="width: 50%" size="13" name="excludeforumids[]" id="sel_excludeforumids" multiple="multiple"> <option value="">{vb:rawphrase exclude_none}</option> {vb:raw optoutforumbits} </select> </div> </div> |
#67
|
||||
|
||||
Thanks!
But I'm still getting PHP Code:
In SFF: Cache Templates, do you still have - PHP Code:
|
#68
|
|||
|
|||
Ah, my bad. Forgot to say that I did correct that error too.
At that point in the script, $globaltemplates is not defined (nor is it ever). Change it to this: PHP Code:
|
#69
|
||||
|
||||
Awesome! That made the error go away but (always a but!) the template modifyoptions_excludeforums isn't showing up anywhere in the user profile.
Should it still display on the profile.php?do=editoptions page? |
#70
|
|||
|
|||
Yes, that's where it displays for me. I know that we've been PMing each other. Make sure you're using the version of the script I posted, not the one I PMed (they are different versions).
|
#71
|
||||
|
||||
duh! I didn't notice that. Now I have the forum listing under profile.php?do=editoptions. I've successfully tested modifying the forums selected and seeing that the changes are saved ...
but ... when I do "New Posts", new posts from the exclude forums are still showing. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|