vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   Quick Search Area For Users - Showthread (https://vborg.vbsupport.ru/showthread.php?t=121018)

-=Sniper=- 07-11-2006 10:00 PM

Quick Search Area For Users - Showthread
 

############################################
##############--Bought to you by--###############

Talk Coding - Programming Forums

##########--Free / Premium vBulletin Solutions--#########
############################################


This will work for vbulletin 3.6 is well!

In the SHOWTHREAD template find

HTML Code:

<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

HTML Code:

<!-- /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.


All times are GMT. The time now is 05:03 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01190 seconds
  • Memory Usage 1,745KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (12)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete