The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Search form script/code from a specific category ?
Hello,
I'm creating a non-vB page XX and i wonder add "A Search Form" in that page XX, but the "Search Form" i need must be functional only on a Specific Category. For example i have a "Videos" category in my forum then when i type "Shrek 3" in the "Search Form" From my non-vB page XX, it will search only in that "Videos" category. Do you know where could i find that script/code, please ? |
#2
|
|||
|
|||
im not really sure what you mean, if you have a forum called videos you can use the advanced search.
Otherwise you can make your own custom search. This would be under mysql im assuming so you would need to search for a code that searches a database. |
#3
|
|||
|
|||
Hi,
I mean that in my forum there are some categories and one of them called "Videos" and i wonder know if there is a "Custom Search Script" which can find what i type on it, then show the results directly/only from that "Videos" category. PS : The "Custom Search Script" i'm looking is for a non vB page. Regards. |
#4
|
||||
|
||||
Have a look at how the search works. Just copy over the search bar code and create a hidden field that specifies 'Video''s forum id.
|
#5
|
|||
|
|||
Ok i'll see
|
#6
|
|||
|
|||
I need help with this too...
The code i have so far is: <div style="white-space:nowrap;"> <form action="mysite" method="post"> <input type="hidden" name="s" value="" /> <input type="hidden" name="do" value="process" /> <input type="hidden" name="showposts" value="0" /> <input type="hidden" name="quicksearch" value="1" /> <input type="text" style="width:100px;" class="bginput" name="query"/> <input style="font: bold 10px Arial" type="submit" class="button" value="Search" /></form> </div> Can anyone tell me how i would be able to search a specific category/forum? such as Forum ID 11? |
#7
|
||||
|
||||
Look at advanced search. The "Advanced Search" page has the category specifics.
|
#8
|
|||
|
|||
Yes, i know, but what i am trying to do is make a quicksearch box that automatically searches the forum it's in... All i need is the code to make this search a specific forum and then i can just use <if> conditions to make it stay in the forum i want it to be in.
|
#9
|
||||
|
||||
If you look in the advanced search, you can find out the names of the forum input, and fill out a hidden field with the values you want.
|
#10
|
|||
|
|||
I have already tried that, but the categories are all shown by the variable "$searchforumbits".
Is there a certain string of code that i'm missing? ------------------------------------------------------------- Quote:
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|