Log in

View Full Version : Search in current forum only


ehmud
10-23-2012, 04:45 AM
I have added search form in forumdisplay.php above the thread to search required threads. I am using this code, what to change this code because I want it to display search results only from current forum, not from all forum.

<form action="search.php?$session[sessionurl]do=get&forumid=$foruminfo[forumid]" method="get" name="vbform" id="searchform">

I have also attached snapshot here with;

kh99
10-23-2012, 02:55 PM
Try changing the action to be do=process and include={vb:raw foruminfo.forumid}, like:
<form action="search.php?$session[sessionurl]do=process&include={vb:raw foruminfo.forumid}" method="get" name="vbform" id="searchform">


unless you are using vb3, then it would be $foruminfo[forumid] like you had it.