myregistration |
06-04-2007 08:45 AM |
Hi thincom2000, thanks for your quick response!
My current version of vBulletin is 3.6.7. Has the replacement code changed with version vBulletin 3.6.7? I was able to modify the popup box, but the change I had to make to the navbar Search popup was a little different than the readme.txt file, described below.
When I submit a search in the popup box on the vbulletin pages it works fairly well. Though, if no Article search results are found it redirects me to my website's login page.
When I use the popup on the Wiki side, it takes me to the vBulletin search page and does not auto fill the keywords for the query field.
For the Wiki side, do I need to configure MediaWiki or vbWikiPro for the hook? Any ideas?
For the Special:Search page url, the following format worked best for my environment:
Code:
http://www.yourdomain.com/forum/index.php?ns0=1&searchx=Search
* the keywords will be appended by code in format &search=keywords
Thanks! :)
Code:
<!-- NAVBAR POPUP MENUS -->
<if condition="$show['searchbuttons']">
<!-- header quick search form -->
<div class="vbmenu_popup" id="navbar_search_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">$vbphrase[search_forums]</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<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>
</td>
</tr>
<tr>
<td class="vbmenu_option"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[advanced_search]</a></td>
</tr>
</table>
</div>
<!-- / header quick search form -->
</if>
I replaced the above with the following code ...
Code:
<!-- NAVBAR POPUP MENUS -->
<if condition="$show['searchbuttons']">
<!-- header quick search form -->
<div class="vbmenu_popup" id="navbar_search_menu" style="display:none">
<form action="search.php" method="post">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">$vbphrase[search_forums]</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<!-- *** OMITTING THE FOLLOWING FIELDS ***
<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 />
</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<label for="rb_nb_sp0"><input type="radio" name="showwiki" value="0" id="rb_nb_sp0" tabindex="1002" checked="checked" />$vbphrase[show_threads]</label>
<br>
<label for="rb_nb_sp1"><input type="radio" name="showwiki" value="1" id="rb_nb_sp1" tabindex="1003" />$vbphrase[show_posts]</label>
<br>
<label for="rb_nb_sp2"><input type="radio" name="showwiki" value="2" id="rb_nb_sp2" tabindex="1004" />$vbphrase[show_wiki]</label>
</td>
</tr>
<tr>
<td class="vbmenu_option"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[advanced_search]</a></td>
</tr>
</table>
</form>
</div>
<!-- / header quick search form -->
</if>
|