View Full Version : Limit Search box to certain forums
How to limit Search box to certain forums?
I have setup vbadvanced page that I want to serve to certain part of my forum only and that is why I wish to search only within these forums ONLY...
Thank you!!!
Brian
11-29-2006, 02:31 PM
If I'm thinking correctly, you could add some hidden input fields to the adv_portal_search template that look something like this:
<input type="hidden" name="forumchoice[]" value="X" />
<input type="hidden" name="forumchoice[]" value="Y" />
<input type="hidden" name="forumchoice[]" value="Z" />
(Replace the X, Y, Z values with the forumids)
Yes Thank you it works well.
Is there any way to replace IDs for each forum with theirs parent forum ID? I tried that but it doesnt work that way for me...
Brian
11-30-2006, 09:47 AM
If you add this input, that should do the trick.
<input type="hidden" name="childforums" value="1" />
wow great :-)
and one last question: How to make search result html to inherit cmps style? I have different style for cmps than default, but search stick to default style...
THANK YOU 1000 times .-)
Brian
11-30-2006, 12:03 PM
There may be a way to force your search.php file to have a certain style, but I'm not sure what it is off the top of my head.
:-( I do not want to have all search results in style id=5, only from forums that use that style id=5 and and also vba that use the same style id=5.
Forumhome and rest of forums use style id=1
Please .-) Can you figure it out?
Also I am looking for solution that will reserve first 5 search result positions for forums using styleid=5. I am willing to pay for such bonus .-) Please PM me if you find it interesting...
I want to use this for tutorials. Since search time logic will digg them in search result, they tend to loose position eventhough they are content-rich...
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.