Go Back   vBulletin Setup > vBulletinSetup Information > vBulletin Questions


Please Register to get full access to the forums.
Post New Thread  Reply



#1   10-25-2007, 11:07 PM
Luigi has a spectacular aura about Join Date: Oct 2007 Posts: 397
iTrader: (0)
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?
Quote   |  



#2   10-26-2007, 10:21 AM
Michael Biddle is just really niceMichael Biddle is just really nice Join Date: Aug 2006 Posts: 1,656 Location: Anaheim, CA
iTrader: (0)
Re: New Posts Button to exclude some forums in query


&exclude=X
--------------------
Do NOT PM me for Support!
Michael Biddle / vBulletin Setup Staff
Check out our Newsletter for the latest vB and SEO news.
Are you looking for vBulletin work to be done on your forums ?
Would you like to Help Support vBulletin Setup.
Quote   |  



#3   10-26-2007, 11:56 AM
Send a message via MSN to Imperial Imperial has a spectacular aura about Join Date: Jul 2007 Posts: 43 Location: California
iTrader: (0)
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.
--------------------
Xbox Nation
Quote   |  



#4   10-26-2007, 12:09 PM
noppid has a spectacular aura about Join Date: Nov 2006 Posts: 160 Location: Florida
iTrader: (0)
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.
--------------------
vBPicGallery - The photo gallery for vBulletin forums.
Talk to bikers around the world about motorcycles.
Quote   |  
Post New Thread  Reply
vBulletin Setup > vBulletinSetup Information > vBulletin Questions


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
New Posts/ Todays Posts liz Making Money Marketing vBulletin 7 09-13-2007 05:23 PM
Executing an SQL Query Nikoo vBulletin Questions 4 09-04-2007 10:42 AM
Brandon, how did you modify your new posts button? PoliticsGuy vBulletin Questions 5 02-05-2007 07:33 AM
query to change language tespara vBulletin Questions 0 01-04-2007 05:37 AM


All times are GMT -6. The time now is 01:30 PM.

vBulletin Setup, vBulletin Setup Forums, vBulletin Services, vBulletin Blogs, vBulletin SEO, vBulletin Questions
vBulletin Skins, Styles, Templates, vBulletin Monetization, Blogs, vBulletin Link Directory,Quality Link Directory