PDA

View Full Version : Forum Search Bar in Navbar Template


Neutral Singh
10 Oct 2005, 13:26
Forum Search Bar in Navbar Template
Should work in previous versions as well.



So, In navbar template,

Step # 1:

Find:

<if condition="$bbuserinfo['userid']">

<!-- <td class="alt2" valign="top" nowrap="nowrap"> -->
<td valign="top" nowrap="nowrap" <if condition="$bbuserinfo['pmunread']">id="pmBox"<else />class="alt2"</if>>

<div class="smallfont">
<strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></strong><br />
<phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase>
<if condition="$show['pmstats']"><br /><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></if>
</div>
</td>



Add Below:



<td class="alt1" valign="top">
<form action="$vboptions[bburl]/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="" />
<input type="text" name="query" size="15" onfocus="this.value=''" value="Search..." />
<input type="image" valign="middle" src="$vboptions[bburl]/images/misc/go.gif" style="vertical-align: middle;"/>
</form>&nbsp;<a href="$vboptions[bburl]/search.php" accesskey="4" rel="nofollow">Options</a><br>
</td>




Step # 2:

Find:


</form>
<!-- / login form -->

</td>




Add Below:



<td class="alt1" valign="top">
<form action="$vboptions[bburl]/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="" />
<input type="text" name="query" size="15" onfocus="this.value=''" value="Search..." />
<input type="image" valign="middle" src="$vboptions[bburl]/images/misc/go.gif" style="vertical-align: middle;"/>
</form>&nbsp;<a href="$vboptions[bburl]/search.php" accesskey="4" rel="nofollow">Options</a><br>
</td>




Step # 3



Copy attached image in your --> forum/images/misc/ folder.



And you are done !!

Demo: http://www.sikhphilosophy.net
Enjoy!!