Go Back   vBulletin Setup > vBulletinSetup Information > Troubleshooting vBulletin Problems

Reply 
 
LinkBack Thread Tools Display Modes
Old 10-25-2007, 08:07 PM   #1
Supporters
vBulletin Owner
 
Luigi's Avatar
 
Join Date: Oct 2007
Posts: 406
Luigi has a spectacular aura about
New Posts Button to exclude some forums in query

Someone asked this question and I would like to no myself.When clicking the new posts button is there a way to exclude some forums from popping up in the search? For example, I don't want to see any new posts from an introduction section pop up?
Luigi is offline   Reply With Quote

Advertisement [Remove Advertisement]

Old 10-26-2007, 07:21 AM   #2
Supporters
vBulletin Owner
 
Michael Biddle's Avatar
 
Join Date: Aug 2006
Location: Anaheim, CA
Posts: 1,657
Michael Biddle is just really niceMichael Biddle is just really niceMichael Biddle is just really nice
Re: New Posts Button to exclude some forums in query

&exclude=X
__________________
I hate that someone changed my signature.
Michael Biddle is offline   Reply With Quote
Old 10-26-2007, 08:56 AM   #3
vBulletin Owner
 
Imperial's Avatar
 
Join Date: Jul 2007
Location: California
Posts: 44
Imperial has a spectacular aura about
Send a message via MSN to Imperial
Re: New Posts Button to exclude some forums in query

Quote:
Originally Posted by whitemike View Post
&exclude=X
You can use this little addition, takes a manual edit to your navbar template like this:

/forums/search.php?do=getnew&exclude=1,2,3

1,2,3 being forum id 1,2, & 3 to be excluded from new posts search.

That'll work, but here's what I run as a small plugin. It does the exact same thing, but doesn't require any template edits:
  1. Admin CP
  2. Add New Plugin
  3. Set Product as vBulletin
  4. Set Hook location to "search_start"
  5. Set title to "Exclude forum from new posts" or something similar
  6. Leave the execution order at 5
  7. In the PHP Plugin code field insert:
    $_REQUEST['exclude'] .= ',1,20,35';
  8. Change 1,20 & 35 to match the forum IDs you wish to exclude. You must keep the initial comma before the 1, otherwise the plugin does not function.
This plugin does not affect your normal forum search function.
__________________
rapidshare downloads
Imperial is offline   Reply With Quote
Old 10-26-2007, 09:09 AM   #4
vBulletin Owner
 
Join Date: Nov 2006
Location: Florida
Posts: 195
noppid is a jewel in the rough
Re: New Posts Button to exclude some forums in query

Nice work, Imperial.

This is the proper way to do this. Just a template mod leaves you open to direct access if this is a security thing. It's likely not a big deal, but hey, it's worth the extra effort.
noppid is offline   Reply With Quote
Reply 
vBulletin Setup > vBulletinSetup Information > Troubleshooting vBulletin Problems

Tags
button, exclude, forums, posts, query

Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to exclude forum from a plugin Cerberus Troubleshooting vBulletin Problems 4 06-07-2009 04:51 PM
[HELP] with posts on vB forums netzo Forum Design, Graphics & Customization 0 07-28-2008 03:41 AM
New Posts, any way to exclude a particular forum? vwdforum Troubleshooting vBulletin Problems 4 02-24-2008 12:56 PM
Executing an SQL Query Nikoo Troubleshooting vBulletin Problems 4 09-04-2007 07:42 AM
Brandon, how did you modify your new posts button? PoliticsGuy Troubleshooting vBulletin Problems 5 02-05-2007 04:33 AM


All times are GMT -8. The time now is 03:19 AM.