The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
Hello all.
I have a reviews page which reflects all the CD reviews that have been made at my forum. I want to make a search link (or button - I don't care) that will lead directly to the search.php *but* it will have as default the "search titles only" option. this way my users will be able to search - the - reviews forum - by - artist (where artist = the title of the topics/reviews). could anyone tell me how I could do that ? thanx in advance |
#2
|
|||
|
|||
![]()
Try adding titleonly=1 to the url.
|
#3
|
||||
|
||||
![]() Quote:
![]() Thanx http://www.electrowave.gr/forum/search.php?titleonly=1 Now could we also make it so that ... 1) it will only have one specific (by ID ?) forum selected to search in (my reviews forum) 2) the search options will not be shown |
#4
|
|||
|
|||
![]()
http://www.electrowave.gr/forum/search.php?titleonly=1&forumid=<forumid>
2. I don't think so, unless you create your own Search box (like the standard quicksearch). |
#5
|
||||
|
||||
![]()
thank YOU
![]() Now I'll go find out how to create a search form and when I create it I will put that link down... |
#6
|
|||
|
|||
![]() Quote:
|
#7
|
||||
|
||||
![]() Quote:
Let me make clear that I want to put the search form on a page outside the forum - actually on a VBadvanced page... here is the code I have put: Code:
<smallfont><form action="http://www.electrowave.gr/forum/search.php?forumid=29" method="post"> <input type="hidden" name="s" value="$session[sessionhash]"> <input type="hidden" name="forumchoice" value="- 1" /><input type="hidden" name="searchin" value="subject" /><input type="hidden" name="searchdate" value="-1" /><input type="hidden" name="action" value="simplesearch" /><input type="hidden" name="booleanand" value="yes" /> <input class="search" onFocus="this.value='';" type="text" name="query" value="search..." size="15" maxlength="150"/> <input type="hidden" name="action" value="simplesearch"> </form></smallfont> instead of searching the forum it just redirects to the Search.php with the keyword inserted in the search field... which is the standard quick search code? |
#8
|
|||
|
|||
![]()
This the standard vB code for the quick search:
HTML Code:
<form action="search.php" method="post"> <input type="hidden" name="do" value="process" /> <input type="hidden" name="showposts" value="0" /> <input type="hidden" name="quicksearch" value="1" /> <input type="hidden" name="s" value="$session[sessionhash]" /> <input type="text" class="bginput" name="query" size="20" /> $gobutton<br /> </form> PS In your example you seem to be missing the 'do', also don't use full url's, better relative file ie "forum/search.php........" |
#9
|
||||
|
||||
![]() Quote:
Ok thanx here is what I have put : Code:
<form action="forum/search.php?forumid=29" method="post"> <input type="hidden" name="do" value="process" /> <input type="hidden" name="showposts" value="0" /> <input type="hidden" name="quicksearch" value="1" /> <input type="hidden" name="s" value="$session[sessionhash]" /> <input type="text" class="bginput" name="query" size="20" /> $gobutton<br /> </form> Code:
<form action="forum/search.php?include=29" method="post">... it works but it searches the whole forum and not only the forum with ID=29 :disappointed: |
#10
|
|||
|
|||
![]()
Don't use the forumid in the filename. Insert the followingline instead:
HTML Code:
<input type="hidden" name="forumid" value="29" />
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|