Hello
Whenever I'm trying to use the "search this forum" feature, I always get global results.
I looked at the form and it looks good. Meaning the input hidden with the forumchoice array is set:
After submitting, I did a print_r of the $vbulletin->GPC and it doesn't contain the forumchoice[] array.
However, searching by using the "Advanced search" feature and selecting a particular forum works as expected.
Any ideas?
Whenever I'm trying to use the "search this forum" feature, I always get global results.
I looked at the form and it looks good. Meaning the input hidden with the forumchoice array is set:
HTML Code:
<form method="get" action="/search.php?do=process"> <ul class="popupbody" id="yui-gen78" style="display: none; left: 3px; top: 21px;"> <li> <input type="text" value="Cauta..." name="q" class="searchbox"> <input type="submit" value="Cautare" class="button"> </li> <li class="formsubmit"> <div class="submitoptions"> <label><input type="radio" checked="checked" value="0" name="showposts"> Vizualizare subiecte</label> <label><input type="radio" value="1" name="showposts"> Vizulaizare mesaje</label> </div> <div class="advancedsearchlink"><a rel="nofollow" href="/search.php?search_type=1&contenttypeid=&forumchoice[]=236">Cautare avansata</a></div> </li> </ul> <input type="hidden" value="" name="s"> <input type="hidden" value="1284220978-5d85bcf18e2dea6afebef997b4724e6bb0deb50b" name="securitytoken"> <input type="hidden" value="process" name="do"> <input type="hidden" value="" name="contenttypeid"> <input type="hidden" value="236" name="forumchoice[]"> <input type="hidden" value="1" name="childforums"> <input type="hidden" value="1" name="exactname"> </form>
PHP Code:
if ($_REQUEST['do'] == 'process')
{
print_r($vbulletin->GPC);die;
Any ideas?
Comment