Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Selective Forum Filter Details »»
Selective Forum Filter
Mod Version: 1.1.0, by akanevsky (Coder) akanevsky is offline
Developer Last Online: May 2014 I like it Show Printable Version Email this Page

vB Version: 3.8.x Rating: (14 votes - 4.93 average) Installs: 206
Released: 31 May 2009 Last Update: 31 May 2009 Downloads: 775
Not Supported DB Changes Uses Plugins Auto-Template Translations  

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

Only licensed members can download files, Click Here for more information.

Supporters / CoAuthors

Screenshots

Click image for larger version

Name:	screenshot.png
Views:	3020
Size:	58.3 KB
ID:	99905

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Selective Forum Filter akanevsky vBulletin 3.5 Add-ons 143 13 Jan 2014 18:51
Selective Forum Filter akanevsky vBulletin 3.6 Add-ons 156 19 Nov 2013 17:43
Selective Forum Filter akanevsky vBulletin 3.7 Add-ons 2 31 May 2009 17:55
Selective Forum Filter akanevsky vBulletin 3.0 Full Releases 81 07 Nov 2005 20:12

  #61  
Old 22 Dec 2009, 00:58
SledgeHead SledgeHead is offline
 
Join Date: Oct 2006
Will this be available for 4.0?
Reply With Quote
  #62  
Old 08 Jan 2010, 13:03
al_rhar al_rhar is offline
 
Join Date: Dec 2009
Excellent thanks. My users have been moaning about having this option for ages. works fine on 3.8.4
Reply With Quote
  #63  
Old 12 Jan 2010, 17:25
CyberRanger's Avatar
CyberRanger CyberRanger is offline
 
Join Date: Mar 2004
Originally Posted by SledgeHead View Post
Will this be available for 4.0?
I would be ever so grateful! I stupidly updated my forum to vb4 without realizing I'd break this product.

Last edited by CyberRanger : 12 Jan 2010 at 18:55.
Reply With Quote
  #64  
Old 25 Jan 2010, 08:47
Fiel Fiel is offline
 
Join Date: Jul 2008
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?
Reply With Quote
  #65  
Old 28 Jan 2010, 18:32
Fiel Fiel is offline
 
Join Date: Jul 2008
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:


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


With this:


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

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:


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

To this:


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

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:


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

And you're done. It should work fine and dandy now.

Last edited by Fiel : 28 Jan 2010 at 20:22.
Reply With Quote
  #66  
Old 28 Jan 2010, 19:14
CyberRanger's Avatar
CyberRanger CyberRanger is offline
 
Join Date: Mar 2004
Thanks!

But I'm still getting


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

at the top of the user profile pages.

In SFF: Cache Templates, do you still have -


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

Reply With Quote
  #67  
Old 28 Jan 2010, 20:20
Fiel Fiel is offline
 
Join Date: Jul 2008
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:


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

Reply With Quote
  #68  
Old 28 Jan 2010, 20:34
CyberRanger's Avatar
CyberRanger CyberRanger is offline
 
Join Date: Mar 2004
Originally Posted by Fiel View Post
At that point in the script, $globaltemplates is not defined ...
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?
Reply With Quote
  #69  
Old 28 Jan 2010, 20:39
Fiel Fiel is offline
 
Join Date: Jul 2008
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).
Reply With Quote
  #70  
Old 28 Jan 2010, 21:03
CyberRanger's Avatar
CyberRanger CyberRanger is offline
 
Join Date: Mar 2004
Originally Posted by Fiel View Post
.. not the one I PMed (they are different versions).
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.
Reply With Quote
  #71  
Old 28 Jan 2010, 21:38
Fiel Fiel is offline
 
Join Date: Jul 2008
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.

Last edited by Fiel : 29 Jan 2010 at 03:36.
Reply With Quote
  #72  
Old 29 Jan 2010, 02:32
CyberRanger's Avatar
CyberRanger CyberRanger is offline
 
Join Date: Mar 2004
Thanks for posting the bug report. I tried sticking
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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!
Reply With Quote
  #73  
Old 13 Mar 2010, 05:28
rwoscott's Avatar
rwoscott rwoscott is offline
 
Join Date: Jan 2007
Real name: Scott
Originally Posted by SledgeHead View Post
Will this be available for 4.0?
+1, please
__________________
-> Sydney Swans Fan Forum
Reply With Quote
  #74  
Old 15 Mar 2010, 15:34
scottct1 scottct1 is offline
 
Join Date: Mar 2002
This is the only mod which is holding me back from switching to VB4. I need this one!
Reply With Quote
  #75  
Old 16 Mar 2010, 04:40
TheChaosFactor TheChaosFactor is offline
 
Join Date: Sep 2009
@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...
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 09:12.

Layout Options | Width: Wide Color: