Back to vBulletin 3.7 Template Modifications

Search this Forum above threads
Mod Version: 1.00, by Sofia

This modification is in the archives.
vB Version: 3.7.x Rating: (1 vote - 4.00 average) Installs: 6
Released: 31 May 2009 Last Update: Never Downloads: 0
Not Supported Re-usable Code Translations  

This mod allows you to add a search by forum above threads list.
Included: a dropdown menu to go on advanced search or to search unanswered threads in the forum.




In the template "forumdisplay"

Find and delete:

HTML Code:
<form action="inlinemod.php?forumid=$forumid" method="post" id="inlinemodform">
<input type="hidden" name="url" value="$url" />
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
<input type="hidden" name="forumid" value="$forumid" />
Find and delete:

HTML Code:
<if condition="$show['forumsearch']">
    <td class="vbmenu_control" id="forumsearch" nowrap="nowrap"><if condition="$show['quicksearch']"><a href="$show[nojs_link]#goto_forumsearch" rel="nofollow">$vbphrase[search_this_forum]</a> <script type="text/javascript"> vbmenu_register("forumsearch"); </script><else /><a href="search.php?$session[sessionurl]f=$foruminfo[forumid]" rel="nofollow">$vbphrase[search_this_forum]</a></if></td>
    </if>

Find:


HTML Code:
<!-- / controls above thread list -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" style="border-bottom-width:0px">
<tr>
    <td class="tcat" width="100%">$vbphrase[threads_in_forum]<span class="normal"> : $foruminfo[title]</span></td>
    <td class="vbmenu_control" id="forumtools" nowrap="nowrap"><a href="$show[nojs_link]#goto_forumtools" rel="nofollow">$vbphrase[forum_tools]</a> <script type="text/javascript"> vbmenu_register("forumtools"); </script></td>
    <if condition="$show['forumsearch']">
    <td class="vbmenu_control" id="forumsearch" nowrap="nowrap"><if condition="$show['quicksearch']"><a href="$show[nojs_link]#goto_forumsearch" rel="nofollow">$vbphrase[search_this_forum]</a> <script type="text/javascript"> vbmenu_register("forumsearch"); </script><else /><a href="search.php?$session[sessionurl]f=$foruminfo[forumid]" rel="nofollow">$vbphrase[search_this_forum]</a></if></td>
    </if>
</tr>
</table>
Add below:

HTML Code:
<!-- search this forum -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" style="border-bottom-width:0px">
<if condition="$show['popups'] AND $show['forumsearch']">
<!-- forum search menu -->
<form action="search.php?do=process" method="post">
    <tr>
        <td class="thead">$vbphrase[search_this_forum]</td>
    </tr>
    <tr align="center">
        <td class="alt1" title="nohilite">
            <input type="hidden" name="s" value="$session[sessionhash]" />
            <input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
            <input type="hidden" name="do" value="process" />
            <input type="hidden" name="forumchoice[]" value="$forumid" />
            <input type="hidden" name="childforums" value="1" />
            <input type="hidden" name="exactname" value="1" />
            <input type="text" class="bginput" name="query" size="25" tabindex="1001" />
<select name="titleonly">
                            <option value="0" $titleonlyselected[0]>Search Entire Posts</option>
                            <option value="1" $titleonlyselected[1]>$vbphrase[search_titles_only]</option>
                        </select><if condition="$show['nocache']"> <label for="cb_nocache"><input type="checkbox" name="nocache" value="1" id="cb_nocache" />$vbphrase[do_not_use_cached_results]</label></if>
                    <input type="submit" class="button" value="Search" accesskey="s" tabindex="1004" />
<a href="search.php" accesskey="4" rel="nofollow" id="search_forum_h" class=""><img src="$stylevar[imgdir_misc]/menu_open.gif" alt="" title="Advanced Search" border="0" /></a>
            <script type="text/javascript"> vbmenu_register("search_forum_h",1); </script>
</div>
<div class="vbmenu_popup" id="search_forum_h_menu" style="display:none">
    <table cellpadding="4" cellspacing="1" border="0">
    <tr><td class="thead" align="left">Search Options</td></tr>
    <tr><td class="vbmenu_option" align="left"><a href="search.php?$session[sessionurl]f=$forumid" rel="nofollow">$vbphrase[advanced_search]</a></td></tr>
        <tr><td class="vbmenu_option" align="left"><a href="search.php?$session[sessionurl]do=process&amp;forumchoice[]=$forumid&amp;replyless=1&amp;replylimit=0&amp;exclude=30&amp;nocache=1" rel="nofollow">Unanswered Threads</a></td></tr>
    </table>
</div>
</td>
    </tr>
</form>
</if>
</table>
    <!-- / search this forum -->
<form action="inlinemod.php?forumid=$forumid" method="post" id="inlinemodform">
<input type="hidden" name="url" value="$url" />
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
<input type="hidden" name="forumid" value="$forumid" />

Download

No files for download.

Similar Mods

Miscellaneous Hacks Forum-wide Search For Unanswered Threads vBulletin 3.8 Add-ons
Miscellaneous Hacks Search For Unanswered Threads By Forum vBulletin 3.8 Add-ons
Forum Display Enhancements Search this Forum above threads vBulletin 3.8 Template Modifications
Miscellaneous Hacks Search For Unanswered Threads By Forum vBulletin 3.7 Add-ons
Forum Display Enhancements Search For Unanswered Threads By Forum vBulletin 3.6 Add-ons

vblts.ru supports vBulletin®, 2022-2024