Log in

View Full Version : Quick Search Area For Users - Showthread


-=Sniper=-
07-11-2006, 10:00 PM
############################################
##############--Bought to you by--###############

Talk Coding - Programming Forums
(http://www.talkcoding.com)
##########--Free / Premium vBulletin Solutions--#########
############################################



This will work for vbulletin 3.6 is well!

In the SHOWTHREAD template find

<if condition="!$show['search_engine']">
<br />

<div class="smallfont" align="center">
<strong>&laquo;</strong>
<a href="showthread.php?$session[sessionurl]t=$threadid&amp;goto=nextoldest" rel="nofollow">$vbphrase[prev_thread]</a>
|
<a href="showthread.php?$session[sessionurl]t=$threadid&amp;goto=nextnewest" rel="nofollow">$vbphrase[next_thread]</a>
<strong>&raquo;</strong>
</div>
</if>

Replace it WITH

<!-- /quick actions area by sniper -->
<br />
<table class="tborder" cellpadding="6" cellspacing="0" border="0" width="100%" align="center">
<tr>
<td class="alt1" align="left">
<if condition="!$show['search_engine']">
<div class="smallfont" style="float: right; padding: 5px 5px 0 0;">
<strong>&laquo;</strong>
<a href="showthread.php?$session[sessionurl]t=$threadid&amp;goto=nextoldest" rel="nofollow">$vbphrase[prev_thread]</a>
|
<a href="showthread.php?$session[sessionurl]t=$threadid&amp;goto=nextnewest" rel="nofollow">$vbphrase[next_thread]</a>
<strong>&raquo;</strong>
</div>
</if>
<if condition="$show['search']">
<div class="smallfont">
<!-- search this thread -->
<form action="search.php?do=process&amp;searchthreadid=$threadid" method="post">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="process" />
<input type="hidden" name="searchthread" value="1" />
<input type="hidden" name="showposts" value="1" />
<input type="hidden" name="searchthreadid" value="$threadid" />
<input type="text" class="bginput" name="query" value="$vbphrase[search_this_thread]" size="20" style="width:175px" onfocus="this.value = '';" />
$gobutton
<a href="search.php$session[sessionurl_q]">$vbphrase[advanced_search]</a>

</form>
<!-- / search this thread -->
</div>
</if>
</td>
</tr>
</table>
<!-- /end quick actions area by sniper -->

Live Demo: http://www.hardwareforums.com/my-new-case-12587

The Realist
07-12-2006, 03:12 PM
Installed and working well.

Thanks.

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

MGM
07-12-2006, 07:06 PM
Very nicely done. Installed and works.

MGM out

Barakat
07-13-2006, 12:12 AM
installed ...

shadowevil
07-13-2006, 03:50 AM
good job ....Thanks you ... *installed*

Pcparts
07-13-2006, 03:06 PM
Thanks. This is very useful.

offsidex
07-14-2006, 06:08 AM
Thank you.

Muellmann
07-14-2006, 05:23 PM
it's an addition of convenience thanks!

kafi
09-11-2006, 08:06 PM
Thank you for this sniper.

I have put the code into the thread navbar - javascript menu. I have replaced pop-up Search this thread, but as an admin the form functionality of this doesnt work for me because it is overriden with action="inlinemod.php". Once I hit "Go" button it goes to inlinemod.php instead of search.php&....

Any idea on how to get rid of this?

TotalTorque.net
05-06-2007, 09:09 PM
I don't know how I missed this. Installed. Very useful indeed.

serhat_kk
05-07-2007, 01:01 PM
Great work. Thanks.