PDA

View Full Version : Quick Search Area For Users - Forumdisplay


-=Sniper=-
07-11-2006, 10:00 PM
This should work for vbulletin 3.6 is well

In forumdisplay template find

<!-- / sub-forum list -->
</if>

Under it ADD

<br />
<if condition="$show['forumsearch']">
<!-- /quick actions area by sniper -->
<table class="tborder" cellpadding="6" cellspacing="0" border="0" width="100%" align="center">
<tr>
<td class="alt1" align="left">
<div class="smallfont">
<!-- search this forum -->
<form action="search.php?do=process" method="post">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="process" />
<input type="hidden" name="forumchoice[]" value="$forumid" />
<input type="hidden" name="childforums" value="1" />
<input type="text" class="bginput" name="query" value="$vbphrase[search_this_forum]" size="25" tabindex="1001" onfocus="this.value = '';" />
<input type="submit" class="button" value="$vbphrase[go]" accesskey="s" tabindex="1004" />
<a href="search.php?$session[sessionurl]f=$forumid" rel="nofollow">$vbphrase[advanced_search]</a>
</form>
<!-- / search this forum -->
</div>
</td>
</tr>
</table>
<br />
<!-- /end quick actions area by sniper -->
</if>

Find

<!-- / controls below thread list -->

</form>
<br />

Under it add

<if condition="$show['forumsearch']">
<!-- /quick actions area by sniper -->
<table class="tborder" cellpadding="6" cellspacing="0" border="0" width="100%" align="center">
<tr>
<td class="alt1" align="left">
<div class="smallfont">
<!-- search this forum -->
<form action="search.php?do=process" method="post">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="process" />
<input type="hidden" name="forumchoice[]" value="$forumid" />
<input type="hidden" name="childforums" value="1" />
<input type="text" class="bginput" name="query" value="$vbphrase[search_this_forum]" size="25" tabindex="1001" onfocus="this.value = '';" />
<input type="submit" class="button" value="$vbphrase[go]" accesskey="s" tabindex="1004" />
<a href="search.php?$session[sessionurl]f=$forumid" rel="nofollow">$vbphrase[advanced_search]</a>
</form>
<!-- / search this forum -->
</div>
</td>
</tr>
</table>
<br />
<!-- /end quick actions area by sniper -->
</if>

Live Demo: http://www.hardwareforums.com/cases-modding-gallery/

The Realist
07-12-2006, 03:07 PM
Nice idea.

Installed and working fine.

Snake
07-12-2006, 05:02 PM
Thank you, just installed it. ;)

rrr
07-12-2006, 09:55 PM
beautiful. Thanks!

Barakat
07-13-2006, 12:22 AM
installed works gooooooooooooooooooooooooooooooooooood

kenanulas
07-13-2006, 01:22 AM
cool man thanks

shadowevil
07-13-2006, 03:57 AM
thanks guys ... *installed*

Pvtiste
07-13-2006, 02:11 PM
Thanks ! Installed too ;)

FReeSTER
08-28-2006, 02:28 AM
Perfect!!!!!!!!!!!! Installed ;)

ronoxQ
08-29-2006, 12:43 AM
Wait, I can't find it on the live demo. X_X

Stefano Virgill
10-16-2007, 03:23 AM
Wait, I can't find it on the live demo. X_X

Go all the way to the bottom.

Regards

Steve