Search result is wrong, when using VW Search box. Using vbulletin 3.6.x
If i searching using
http://www.domain.com/search.php?type=wiki page, the search result is correct, its only search in wiki forum pages, because the forum selected is only the wiki namespace like screenshot below
But if i searching using search box, from wiki front page, the search result is not only from wiki forum pages, but threads from another forum too
i guess i need to fix search box code in vault_search_noid template below
Code:
<div class="searchBox">
<form action="search.php?$session[sessionurl]do=process" method="post">
Search Wiki Pages: <input class="bginput" type="text" name="query" value="" />
<input type="hidden" name="do" value="process" />
<input type="hidden" name="showposts" value="1" />
<input type="hidden" name="sortby" value="rank" />
<input type="hidden" name="fromspecial" value="1" />
<input type="hidden" name="namespace[__all__]" value="1" />
<input type="hidden" name="gotoarticle" value="1" />
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
<input class="button" type="submit" value="$vbphrase[go]" />
</form>
</div>
i already tried change this line
Code:
<input type="hidden" name="namespace[__all__]" value="1" />
to
Code:
<input type="hidden" name="namespace[Default]" value="1" />
or
Code:
<input type="hidden" name="namespace" value="Default" />
or this line
Code:
<form action="search.php?$session[sessionurl]do=process" method="post">
to the forumid used for vw XXX
Code:
<form action="search.php?$session[sessionurl]do=process&f=XXX&type=wiki" method="post">
but still same, not fix it, can you give suggestion, pegasus?