![]() |
|
|
Mod Options |
Selective Forum Filter Details »»
|
|||||||||||
|
Selective Forum Filter
Developer Last Online: Feb 2013
/*======================================================================*\
|| Selective Forum Filter || || ======================================= || Brought to you by: || VisionScripts || Premium PHP & vBulletin Solutions! || ======================================= || || Author : Anton Kanevsky (aka @kan) || 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 Only licensed members can download files, Click Here for more information. Supporters / CoAuthors Screenshots Show Your Support
The following members like this post: vijayninel
|
|||||||||||
Similar Mod
|
||||
| Mod | Developer | Type | Replies | Last Post |
| Selective Forum Filter | Psionic Vision | vBulletin 3.5 Add-ons | 142 | 20 Sep 2012 21:40 |
| Selective Forum Filter | Psionic Vision | vBulletin 3.6 Add-ons | 155 | 23 Jun 2012 16:11 |
| Selective Forum Filter | Psionic Vision | vBulletin 3.7 Add-ons | 2 | 31 May 2009 16:55 |
| Selective Forum Filter | Psionic Vision | vBulletin 3.0 Full Releases | 81 | 07 Nov 2005 19:12 |
|
#61
|
|||
|
|||
|
Will this be available for 4.0?
No members have liked this post.
|
|
#62
|
|||
|
|||
|
Excellent thanks. My users have been moaning about having this option for ages. works fine on 3.8.4
No members have liked this post.
|
|
#63
|
||||
|
||||
|
I would be ever so grateful! I stupidly updated my forum to vb4 without realizing I'd break this product.
__________________
AboutToday - Bring RSS Feeds and Daily Events to Your Site! DownloadsII - Upload files, create categories, link to external files No members have liked this post.
Last edited by CyberRanger : 12 Jan 2010 at 17:55. |
|
#64
|
|||
|
|||
|
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?
No members have liked this post.
|
|
#65
|
||||||||||||||||||||
|
||||||||||||||||||||
|
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:
With this:
Make sure you save it. 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:
To this:
Now you need to change user options to allow the user to select it. For this hack, the creator included his own template (modifyoptions_excludeforums), but that works with vB3 and needs updating for vB4. So, go to Styles & Templates --> Style Manager --> YOUR_STYLE_HERE --> "Modify User Template Options" --> "modifyoptions_excludeforums" Replace the entire template contents with this:
And you're done. It should work fine and dandy now. No members have liked this post.
Last edited by Fiel : 28 Jan 2010 at 19:22. |
||||||||||||||||||||
|
#66
|
||||||||
|
||||||||
|
Thanks!
But I'm still getting
at the top of the user profile pages. In SFF: Cache Templates, do you still have -
__________________
AboutToday - Bring RSS Feeds and Daily Events to Your Site! DownloadsII - Upload files, create categories, link to external files No members have liked this post.
|
||||||||
|
#67
|
||||
|
||||
|
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:
No members have liked this post.
|
||||
|
#68
|
||||
|
||||
|
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?
__________________
AboutToday - Bring RSS Feeds and Daily Events to Your Site! DownloadsII - Upload files, create categories, link to external files No members have liked this post.
|
|
#69
|
|||
|
|||
|
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).
No members have liked this post.
|
|
#70
|
||||
|
||||
|
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. ![]()
__________________
AboutToday - Bring RSS Feeds and Daily Events to Your Site! DownloadsII - Upload files, create categories, link to external files No members have liked this post.
|
|
#71
|
|||
|
|||
|
Thanks for catching that. Now we've got a serious problem on our hands.
If you click on the "SFF: Exclude Forums From Search" you'll notice in the combo box that there is no hook location. I looked in the PHP files and the hook location needed for this plugin to work in vB4 is non-existant. So in order for it to work, you're going to have to submit a ticket to vBulletin or add in your own hook. I filed a vB4 bug report. Hopefully this hook will be included with 4.0.2: http://www.vbulletin.com/forum/proje...?issueid=35758 Thanks for catching that bug. Sharp eye. EDIT: The bug has been accepted and will be fixed in 4.0.3. No members have liked this post.
Last edited by Fiel : 29 Jan 2010 at 02:36. |
|
#72
|
||||
|
||||
|
Thanks for posting the bug report. I tried sticking
at line 1115 in search.php but that didn't work. Given how the old search.php is 3761 lines vs 1155 lines in the new search.php, I guess I shouldn't be surprised that didn't work. I'll look some more in the morning but I think this requires a vb god with much greater knowledge than I have!
__________________
AboutToday - Bring RSS Feeds and Daily Events to Your Site! DownloadsII - Upload files, create categories, link to external files No members have liked this post.
|
||||
|
#73
|
||||
|
||||
|
No members have liked this post.
|
|
#74
|
|||
|
|||
|
This is the only mod which is holding me back from switching to VB4. I need this one!
No members have liked this post.
|
|
#75
|
|||
|
|||
|
@Fiel -
Thanks a million man. People were going to be upset if I had to tell them this one wouldn't make the jump with us... No members have liked this post.
|
![]() |
«
Previous Mod
|
Next Mod
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
| Mod Options | |
|
|
| New To Site? | Need Help? |
All times are GMT. The time now is 19:33.






->
