PDA

View Full Version : Mini Mods - Search Title Only in search drop-down


Abe1
06 Aug 2006, 14:41
Search Title only in search drop-down


This template change will make the search drop-down menu on your forum have a check box option to search just titles.

Installation:

Open template 'navbar'.

Search for:
<form action="search.php?do=process" method="post">

Place after:
<!-- Start Abe1 Search Title only in search drop-down -->
<div><input type="checkbox" name="titleonly" value="1" /> $vbphrase[search_titles_only]</div>
<!-- End Abe1 Search Title only in search drop-down -->



Open template 'FORUMDISPLAY'.

Search for THE FIRST:
<form action="search.php?do=process" method="post">

Place after:
<!-- Start Abe1 Search Title only in search drop-down -->
<div class="smallfont"><input type="checkbox" name="titleonly" value="1" /> $vbphrase[search_titles_only]</div>
<!-- End Abe1 Search Title only in search drop-down -->


Search for:
<div><input type="text" class="bginput" name="query" size="25" tabindex="1001" /><input type="submit" class="button" value="$vbphrase[go]" accesskey="s" tabindex="1004" /></div>

Place BEFORE:
<!-- Start Abe1 Search Title only in search drop-down -->
<div class="smallfont"><input type="checkbox" name="titleonly" value="1" /> $vbphrase[search_titles_only]</div>
<!-- End Abe1 Search Title only in search drop-down -->

Please post your comments or suggestions for this hack. I read ALL posts.

MAKE SURE YOU CLICK INSTALL (http://www.vbulletin.org/forum/vborg_miscactions.php?do=installhack&threadid=123202)!
You will get an email when a new version is released.

MaLTRaiN
09 Aug 2006, 13:54
Thanks! I'll install this this weekend...

ctrl-alt-del
11 Aug 2006, 21:18
Ooh...simple, but helpful. Thanks!

Moonkat
12 Aug 2006, 18:44
cool - thank you :)

johnstires
14 Aug 2006, 03:47
Sweet template change! Thanks!

pauloo
15 Aug 2006, 10:00
Fine !Thank you

MaLTRaiN
16 Aug 2006, 02:53
It doesn't work for me... I don't know why... :(

Acido
20 Aug 2006, 12:08
Installed. Very Usefull.:)

Any chance to use this code in forumdisplay?

Abe1
20 Aug 2006, 13:29
Installed. Very Usefull.:)

Any chance to use this code in forumdisplay?
Try adding it. I think it should work.

Acido
20 Aug 2006, 14:26
Try adding it. I think it should work.

All perfect :)

I edit FORUMDISPLAY template.
Serch for:

<td class="thead">$vbphrase[search_this_forum]<a name="goto_forumsearch"></a></td>

Then place after:

<!-- Start Abe1 Search Title only in search drop-down -->
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<input type="checkbox" name="titleonly" value="1" /> $vbphrase[search_titles_only]
</td>
<!-- End Abe1 Search Title only in search drop-down -->

Thank you Abe1!

Snake
30 Aug 2006, 17:13
Thanks for the hack! I'll install it right away... :)

adwade
08 Sep 2006, 15:13
I edit FORUMDISPLAY template.
Serch for:

<td class="thead">$vbphrase[search_this_forum]<a name="goto_forumsearch"></a></td>

The above code, occurs twice in the FORUMDISPLAY template. So I tried adding the code (shown below) after the first occurrence only, after the second occurrence only, and after each occurrence. All attempts FAILED though.:surprised:

Then place after:

<!-- Start Abe1 Search Title only in search drop-down -->
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<input type="checkbox" name="titleonly" value="1" /> $vbphrase[search_titles_only]
</td>
<!-- End Abe1 Search Title only in search drop-down -->


I'm using Miko's ARIA Skins (vbstyles.com), but would that not allow this feature to be implemented? :disappointed: Here's what the ARIA Skin FORUMDISPLAY code looks like before I edit it as denoted above:

$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
<title>$foruminfo[title_clean]<if condition="$pagenumber>1"> - <phrase 1="$pagenumber">$vbphrase[page_x]</phrase></if> - $vboptions[bbtitle]</title>
<if condition="$show['inlinemod']"><script type="text/javascript" src="clientscript/vbulletin_inlinemod.js?v=$vboptions[simpleversion]"></script></if>
</head>
<body>
$header
$navbar

<if condition="$show['forumslist']">
<!-- sub-forum list -->

<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="21" height="31" align="center" valign="top" style="background-image: url($stylevar[imgdir_misc]/top_bg.gif)"><img border="0" src="$stylevar[imgdir_misc]/top_left.gif" width="21" height="31" alt="" /></td>
<td height="31" width="60%" align="left" valign="middle" style="background-image: url($stylevar[imgdir_misc]/top_bg.gif)"><div class="category_title">$vbphrase[subforums]: $foruminfo[title]</a></div></td>
<td width="19" align="left" valign="middle"><img src="$stylevar[imgdir_misc]/top_end.gif" alt="" width="19" height="31" border="0" /></td>


<if condition="$show['forumsearch']">
<td align="right" valign="middle" style="background-image: url($stylevar[imgdir_misc]/top_center.gif)" nowrap="nowrap">
<span class="category_title" id="forumsearch.subforums"><a href="search.php?$session[sessionurl]f=$foruminfo[forumid]" rel="nofollow">$vbphrase[search_this_forum]</a> <script type="text/javascript"> vbmenu_register("forumsearch.subforums"); </script></span></td>
</if>
<td width="14" height="31" align="right" valign="top"><img src="$stylevar[imgdir_misc]/top_right.gif" alt="" width="14" height="31" border="0" /></td>
</tr>
</table>




<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr align="center">
<td class="thead">&nbsp;</td>
<td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="thead">&nbsp;&nbsp;&nbsp;$vbphrase[threads]&nbsp;&nbsp;&nbsp;</td>
<td class="thead">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$vbphrase[posts]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
</tr>
</thead>
$forumbits
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="12" align="left" valign="top"><img src="$stylevar[imgdir_misc]/blc.gif" width="12" height="13" alt="" border="0" /></td>
<td width="100%" style="background-image:url($stylevar[imgdir_misc]/bottom.gif)"><img src="$stylevar[imgdir_misc]/clear.gif" width="100%" height="13" alt="" border="0" /></td>
<td width="12" align="right" valign="top"><img src="$stylevar[imgdir_misc]/brc.gif" width="12" height="13" alt="" border="0" /></td>
</tr>
</table>
<br />
<!-- / sub-forum list -->
</if>

<if condition="$show['threadslist']">
<!-- threads list -->

<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="forumid" value="$forumid" />

<!-- controls above thread list -->
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-bottom:3px">
<tr valign="bottom">
<td class="smallfont"><if condition="$show['newthreadlink']"><a href="newthread.php?$session[sessionurl]do=newthread&amp;f=$foruminfo[forumid]" rel="nofollow"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /></a><else />&nbsp;</if></td>
<if condition="$pagenav"><td align="$stylevar[right]">$pagenav</td></if>
</tr>
</table>
<!-- / controls above thread list -->
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="21" height="31" align="left" valign="top" style="background-image: url($stylevar[imgdir_misc]/top_bg.gif)"><img border="0" src="$stylevar[imgdir_misc]/top_left.gif" width="21" height="31" alt="" /></td>
<td height="31" width="60%" align="left" valign="middle" style="background-image: url($stylevar[imgdir_misc]/top_bg.gif)"><div class="category_title">$vbphrase[threads_in_forum]: $foruminfo[title]</a></div></td>
<td width="19" align="left" valign="middle"><img src="$stylevar[imgdir_misc]/top_end.gif" alt="" width="19" height="31" border="0" /></td>


<td align="right" valign="middle" style="background-image: url($stylevar[imgdir_misc]/top_center.gif)" nowrap="nowrap">
<span class="category_title" id="forumtools"><a href="$show[nojs_link]#goto_forumtools" rel="nofollow">$vbphrase[forum_tools]</a> <script type="text/javascript"> vbmenu_register("forumtools"); </script></span><if condition="$show['forumsearch']">
<span class="category_title" id="forumsearch">&nbsp;&nbsp;<a href="$show[nojs_link]#goto_forumsearch" rel="nofollow">$vbphrase[search_this_forum]</a> <script type="text/javascript"> vbmenu_register("forumsearch"); </script></span>
</if> </td>


<td width="14" height="31" align="right" valign="top"><img src="$stylevar[imgdir_misc]/top_right.gif" alt="" width="14" height="31" border="0" /></td>
</tr>
</table>




<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" id="threadslist">
<tbody>
$announcebits
<if condition="$show['search_engine']">
<if condition="$show['threadicons']">
<td class="thead" colspan="2">&nbsp;</td>
<else />
<td class="thead">&nbsp;</td>
</if>
<td class="thead" width="100%">
<if condition="$show['threadratings']"><span style="float:$stylevar[right]">$vbphrase[rating]</span></if>
$vbphrase[thread] / $vbphrase[thread_starter]
</td>
<td class="thead" width="150" align="center" nowrap="nowrap"><span style="white-space:nowrap">$vbphrase[last_post]</span></td>
<td class="thead" align="center" nowrap="nowrap"><span style="white-space:nowrap">$vbphrase[replies]</span></td>
<td class="thead" align="center" nowrap="nowrap"><span style="white-space:nowrap">$vbphrase[views]</span></td>
<else />
<tr>
<if condition="$show['threadicons']">
<td class="thead" colspan="2">&nbsp;</td>
<else />
<td class="thead">&nbsp;</td>
</if>
<td class="thead" width="100%">
<if condition="$show['threadratings']"><span style="float:$stylevar[right]"><a href="$sorturl&amp;order=desc&amp;sort=voteavg" rel="nofollow">$vbphrase[rating]</a> $sortarrow[voteavg]</span></if>
<a href="$sorturl&amp;order=asc&amp;sort=title" rel="nofollow">$vbphrase[thread]</a> $sortarrow[title] /
<a href="$sorturl&amp;order=asc&amp;sort=postusername" rel="nofollow">$vbphrase[thread_starter]</a> $sortarrow[postusername]
</td>
<td class="thead" width="150" align="center" nowrap="nowrap"><span style="white-space:nowrap"><a href="$sorturl&amp;order=desc&amp;sort=lastpost" rel="nofollow">$vbphrase[last_post]</a> $sortarrow[lastpost]</span></td>
<td class="thead" align="center" nowrap="nowrap"><span style="white-space:nowrap"><a href="$sorturl&amp;order=desc&amp;sort=replycount" rel="nofollow">&nbsp;&nbsp;&nbsp;$vbphrase[replies]&nbsp;&nbsp;&nbsp;</a> $sortarrow[replycount]</span></td>
<td class="thead" align="center" nowrap="nowrap"><span style="white-space:nowrap"><a href="$sorturl&amp;order=desc&amp;sort=views" rel="nofollow">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$vbphrase[views]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a> $sortarrow[views]</span></td>

<if condition="$show['inlinemod']">
<if condition="$show['popups']">
<td class="vbmenu_control" id="imod" align="center" title="$vbphrase[moderation]"> <script type="text/javascript"> vbmenu_register('imod'); </script> </td>
<else />
<td class="thead" align="center">
<input type="checkbox" name="allbox" id="checkall_all" title="$vbphrase[check_uncheck_all]" onclick="inlineMod.check_all()" />
</td>
</if>
</if>
</tr>
</tbody>
</if>
<if condition="$show['threads']">
<!-- show threads -->
<tbody id="threadbits_forum_$foruminfo[forumid]">
<if condition="$show['stickies']">
$threadbits_sticky
</if>
$threadbits
</tbody>
<!-- end show threads -->
<else />
<!-- show no threads message -->
<tbody>
<tr>
<td class="alt1" colspan="$foruminfo[bottomcolspan]" align="center">
<div style="padding: 16px">
<if condition="$show['noposts']"><strong>$vbphrase[no_posts_in_this_forum]</strong><else /><strong><phrase 1="$daysprune">$vbphrase[no_posts_last_x_days_forum]</phrase></strong><br />
<span class="smallfont">$vbphrase[try_controls_below_for_older_posts]</span></if>
</div>
</td>
</tr>
</tbody>
<!-- end show no threads message -->
</if>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="12" align="left" valign="top"><img src="$stylevar[imgdir_misc]/blc.gif" width="12" height="13" alt="" border="0" /></td>
<td width="100%" style="background-image:url($stylevar[imgdir_misc]/bottom.gif)"><img src="$stylevar[imgdir_misc]/clear.gif" width="100%" height="13" alt="" border="0" /></td>
<td width="12" align="right" valign="top"><img src="$stylevar[imgdir_misc]/brc.gif" width="12" height="13" alt="" border="0" /></td>
</tr>
</table>
<!-- controls below thread list -->
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-top:3px">
<tr valign="top">
<td class="smallfont"><if condition="$show['newthreadlink']"><a href="newthread.php?$session[sessionurl]do=newthread&amp;f=$foruminfo[forumid]" rel="nofollow"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /></a><else />&nbsp;</if></td>
<if condition="$show['pagenav'] OR $show['inlinemod']">
<td align="$stylevar[right]">$pagenav
<if condition="$show['inlinemod']">
<div class="smallfont" style="text-align:$stylevar[left]; white-space:nowrap; float:$stylevar[right]">
<if condition="$show['pagenav']"><br /></if><strong>$vbphrase[moderation]</strong><br />
<select name="do">
<optgroup label="$vbphrase[option]">
<if condition="$show['deletethread']">
<option value="deletethread">$vbphrase[delete_threads]</option>
<option value="undeletethread">$vbphrase[undelete_threads]</option>
</if>
<if condition="$show['openthread']">
<option value="open">$vbphrase[open_threads]</option>
<option value="close">$vbphrase[close_threads]</option>
</if>
<if condition="$show['approvethread']">
<option value="approvethread">$vbphrase[approve_threads]</option>
<option value="unapprovethread">$vbphrase[unapprove_threads]</option>
</if>
<if condition="$show['movethread']">
<option value="stick">$vbphrase[stick_threads]</option>
<option value="unstick">$vbphrase[unstick_threads]</option>
<option value="movethread">$vbphrase[move_threads]</option>
<option value="mergethread">$vbphrase[merge_threads]</option>
</if>
</optgroup>
<optgroup label="____________________">
<option value="viewthread">$vbphrase[view_selected_threads]</option>
<option value="clearthread">$vbphrase[clear_thread_list]</option>
</optgroup>
</select><input type="submit" class="button" id="inlinego" value="$vbphrase[go]" />
</div>
<script type="text/javascript">
<!--
inlineMod = new vB_Inline_Mod('inlineMod', 'thread', 'inlinemodform', '$vbphrase[go_x]');
//-->
</script>
</if>
</td>
</if>
</tr>
</table>
<!-- / controls below thread list -->

</form>
<br />




<!-- Active Users in this Forum (and sub-forums) and Moderators -->

<form action="forumdisplay.php" method="get">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="f" value="$forumid" />
<input type="hidden" name="page" value="$pagenumber" />
<input type="hidden" name="pp" value="$perpage" />

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat">$vbphrase[display_options]</td>
<if condition="$show['activeusers']">
<td class="tcat">$vbphrase[currently_active_users]</td>
</if>
<if condition="$show['moderators']">
<td class="tcat">$vbphrase[moderators]</td>
</if>
</tr>
<tr>
<td class="thead"><phrase 1="$limitlower" 2="$limitupper" 3="$totalthreads">$vbphrase[showing_threads_x_to_y_of_z]</phrase></td>
<if condition="$show['activeusers']">
<td class="thead">$totalonline (<phrase 1="$numberregistered" 2="$numberguest">$vbphrase[x_members_y_guests]</phrase>)</td>
</if>
<if condition="$show['moderators']">
<td class="thead">$vbphrase[moderators] : $totalmods</td>
</if>
</tr>
<tr valign="top">
<td class="alt1">

<table cellpadding="0" cellspacing="1" border="0">
<tr>
<td class="smallfont" style="padding-right:6px">$vbphrase[sorted_by]</td>
<td><select name="sort">
<option value="title" $sort[title]>$vbphrase[thread_title]</option>
<option value="lastpost" $sort[lastpost]>$vbphrase[last_post_time]</option>
<option value="dateline" $sort[dateline]>$vbphrase[thread_start_time]</option>
<option value="replycount" $sort[replycount]>$vbphrase[number_of_replies]</option>
<option value="views" $sort[views]>$vbphrase[number_of_views]</option>
<option value="postusername" $sort[postusername]>$vbphrase[thread_starter]</option>
<if condition="$show['threadratings']"><option value="voteavg" $sort[voteavg]>$vbphrase[thread_rating]</option></if>
</select></td>
<td class="smallfont" style="padding-right:6px; padding-left:12px">$vbphrase[sort_order]</td>
<td><select name="order">
<option value="asc" $order[asc]>$vbphrase[ascending]</option>
<option value="desc" $order[desc]>$vbphrase[descending]</option>
</select></td>
</tr>
<tr>
<td class="smallfont" style="padding-right:6px">$vbphrase[from_the]</td>
<td><select name="daysprune">
<option value="1" $daysprunesel[1]>$vbphrase[last_day]</option>
<option value="2" $daysprunesel[2]>$vbphrase[last_2_days]</option>
<option value="7" $daysprunesel[7]>$vbphrase[last_week]</option>
<option value="10" $daysprunesel[10]>$vbphrase[last_10_days]</option>
<option value="14" $daysprunesel[14]>$vbphrase[last_2_weeks]</option>
<option value="30" $daysprunesel[30]>$vbphrase[last_month]</option>
<option value="45" $daysprunesel[45]>$vbphrase[last_45_days]</option>
<option value="60" $daysprunesel[60]>$vbphrase[last_2_months]</option>
<option value="75" $daysprunesel[75]>$vbphrase[last_75_days]</option>
<option value="100" $daysprunesel[100]>$vbphrase[last_100_days]</option>
<option value="365" $daysprunesel[365]>$vbphrase[last_year]</option>
<option value="-1" $daysprunesel[all]>$vbphrase[beginning]</option>
</select></td>
<td colspan="2" align="$stylevar[right]"><input type="submit" class="button" value="$vbphrase[show_threads]" /></td>
</tr>
</table>

</td>
<if condition="$show['activeusers']">
<td class="alt1"><div class="smallfont">$activeusers</div></td>
</if>
<if condition="$show['moderators']">
<td class="alt1"><div class="smallfont">$moderatorslist&nbsp;</div></td>
</if>
</tr>
</table>

</form>
<!-- End Active Users in this Forum (and sub-forums) and Moderators -->

<if condition="$show['popups']">
<br />
<!-- popup menu contents -->


<!-- forum tools menu -->
<div class="vbmenu_popup" id="forumtools_menu" style="display:none">
<form action="moderator.php?f=$forumid" method="post" name="forumadminform">
<table cellpadding="4" cellspacing="1" border="0">
<tr><td class="thead">$vbphrase[forum_tools]<a name="goto_forumtools"></a></td></tr>
<if condition="$show['newthreadlink']"><tr><td class="vbmenu_option"><a href="newthread.php?$session[sessionurl]do=newthread&amp;f=$foruminfo[forumid]" rel="nofollow">$vbphrase[post_a_new_thread]</a></td></tr></if>
<tr><td class="vbmenu_option"><a href="forumdisplay.php?$session[sessionurl]do=markread&amp;f=$foruminfo[forumid]" rel="nofollow" onclick="return mark_forum_read($foruminfo[forumid]);">$vbphrase[mark_this_forum_read]</a></td></tr>
<tr><td class="vbmenu_option"><a href="subscription.php?$session[sessionurl]do=addsubscription&amp;f=$foruminfo[forumid]" rel="nofollow">$vbphrase[subscribe_to_this_forum]</a></td></tr>
<tr><td class="vbmenu_option"><a href="forumdisplay.php?$session[sessionurl]f=$foruminfo[parentid]" rel="nofollow">$vbphrase[view_parent_forum]</a></td></tr>
<if condition="$show['adminoptions']">
<tr>
<td class="thead">$vbphrase[admin_tools]<a name="goto_forumadmin"></a></td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<div><label for="fa_mpo"><input type="radio" name="do" id="fa_mpo" value="modposts" checked="checked" />$vbphrase[view_posts_queue]</label></div>
<div><label for="fa_mat"><input type="radio" name="do" id="fa_mat" value="modattach" />$vbphrase[view_attachment_queue]</label></div>
<div><label for="fa_mov"><input type="radio" name="do" id="fa_mov" value="move" />$vbphrase[massmove_threads]</label></div>
<div><label for="fa_prn"><input type="radio" name="do" id="fa_prn" value="prune" />$vbphrase[massprune_threads]</label></div>
<if condition="$show['addmoderator']">
<div><label for="fa_amd"><input type="radio" name="do" id="fa_amd" value="addmoderator" />$vbphrase[add_moderator]</label></div>
</if>
<if condition="$show['post_new_announcement']">
<div><label for="fa_pan"><input type="radio" name="do" id="fa_pan" value="postannouncement" />$vbphrase[post_new_announcement]</label></div>
</if>
</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite" align="center">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="f" value="$forumid" />
<input type="submit" class="button" value="$vbphrase[perform_action]" />
</td>
</tr>
</if>
</table>
</form>
</div>
<!-- / forum tools menu -->

<!-- inline mod menu -->
<if condition="$show['inlinemod']">
<div class="vbmenu_popup" id="imod_menu" style="display:none" align="$stylevar[left]">
$threadadmin_imod_menu_thread
</div>
</if>
<!-- / inline mod menu -->

<!-- / popup menu contents -->
<else />
<!-- controls for non-popup browsers -->


<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" style="border-top-width:0px">
<tr>
<td class="thead">$vbphrase[forum_tools]<a name="goto_forumtools"></a></td>
<td class="thead">$vbphrase[search_this_forum]<a name="goto_forumsearch"></a></td>
</tr>
<tr valign="top">
<!-- forum tools -->
<td class="alt1">
<div class="smallfont">
<div><img class="inlineimg" src="$stylevar[imgdir_button]/subscribe.gif" alt="$vbphrase[mark_this_forum_read]" vspace="1" /> <a href="forumdisplay.php?$session[sessionurl]do=markread&amp;f=$foruminfo[forumid]" rel="nofollow">$vbphrase[mark_this_forum_read]</a></div>
<if condition="$show['member']"><div><img class="inlineimg" src="$stylevar[imgdir_button]/subscribe.gif" alt="$vbphrase[subscription]" vspace="1" /> <a href="subscription.php?$session[sessionurl]do=addsubscription&amp;f=$foruminfo[forumid]" rel="nofollow">$vbphrase[subscribe_to_this_forum]</a></div></if>
<div><img class="inlineimg" src="$stylevar[imgdir_button]/subscribe.gif" alt="$vbphrase[view_parent_forum]" vspace="1" /> <a href="forumdisplay.php?$session[sessionurl]f=$foruminfo[parentid]" rel="nofollow">$vbphrase[view_parent_forum]</a></div>
</div>
</td>
<!-- / forum tools -->

<!-- search this forum -->
<td class="alt1">
<form action="search.php?do=process" method="post">
<div class="smallfont">
<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" />
<strong>$vbphrase[search_this_forum]</strong> :<br />
<input type="text" class="bginput" name="query" size="20" style="width:175px" />$gobutton<br />
<a href="search.php?$session[sessionurl]f=$forumid" rel="nofollow">$vbphrase[advanced_search]</a>
</div>
</form>
</td>
<!-- / search this forum -->
</tr>
</table>
<br />


<!-- / controls for non-popup browsers -->
</if>

<if condition="$show['ajax_js']">
<script type="text/javascript" src="clientscript/vbulletin_ajax_threadslist.js?v=$vboptions[simpleversion]"></script>
<script type="text/javascript">
<!--
vB_AJAX_Threadlist_Init('threadslist');
//-->
</script>
</if>

<!-- ############## END THREADS LIST ############## -->
</if>

$forumhome_markread_script

<if condition="$show['popups'] AND $show['forumsearch']">
<!-- forum search menu -->
<div class="vbmenu_popup" id="forumsearch_menu" style="display:none">
<form action="search.php?do=process" method="post">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">$vbphrase[search_this_forum]<a name="goto_forumsearch"></a></td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<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" />
<div><input type="text" class="bginput" name="query" size="25" tabindex="1001" /><input type="submit" class="button" value="$vbphrase[go]" accesskey="s" tabindex="1004" /></div>
</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<label for="rb_fd_sp0"><input type="radio" name="showposts" value="0" id="rb_fd_sp0" tabindex="1002" checked="checked" />$vbphrase[show_threads]</label>
&nbsp;
<label for="rb_fd_sp1"><input type="radio" name="showposts" value="1" id="rb_fd_sp1" tabindex="1003" />$vbphrase[show_posts]</label>
</td>
</tr>
<tr>
<td class="vbmenu_option"><a href="search.php?$session[sessionurl]f=$forumid" rel="nofollow">$vbphrase[advanced_search]</a></td>
</tr>
</table>
</form>
</div>
<!-- / forum search menu -->
</if>

<!-- icon key -->
<if condition="$show['threadslist']">
<table cellpadding="2" cellspacing="0" border="0">
<tr>
<td><img src="$stylevar[imgdir_statusicon]/thread_new.gif" alt="$vbphrase[new_posts]" border="0" /></td>
<td class="smallfont">$vbphrase[new_posts]</td>
<if condition="$vboptions['usehotthreads']">
<td><img src="$stylevar[imgdir_statusicon]/thread_hot_new.gif" alt="<phrase 1="$vboptions[hotnumberposts]" 2="$vboptions[hotnumberviews]">$vbphrase[more_than_x_replies_or_y_views]</phrase>" border="0" /></td>
<td class="smallfont">$vbphrase[hot_thread_with_new_posts]</td>
<else />
<td colspan="2">&nbsp;</td>
</if>
</tr>
<tr>
<td><img src="$stylevar[imgdir_statusicon]/thread.gif" alt="$vbphrase[no_new_posts]" border="0" /></td>
<td class="smallfont">$vbphrase[no_new_posts]</td>
<if condition="$vboptions['usehotthreads']">
<td><img src="$stylevar[imgdir_statusicon]/thread_hot.gif" alt="<phrase 1="$vboptions[hotnumberposts]" 2="$vboptions[hotnumberviews]">$vbphrase[more_than_x_replies_or_y_views]</phrase>" border="0" /></td>
<td class="smallfont">$vbphrase[hot_thread_with_no_new_posts]</td>
<else />
<td colspan="2">&nbsp;</td>
</if>
</tr>
<tr>
<td><img src="$stylevar[imgdir_statusicon]/thread_lock.gif" alt="$vbphrase[closed_thread]" border="0" /></td>
<td class="smallfont">$vbphrase[thread_is_closed]</td>
<if condition="$show['dotthreads']">
<td><img src="$stylevar[imgdir_statusicon]/thread_dot.gif" alt="$vbphrase[thread_contains_a_message_written_by_you]" border="0" /></td>
<td class="smallfont">$vbphrase[you_have_posted_in_this_thread]</td>
<else />
<td colspan="2">&nbsp;</td>
</if>
</tr>
</table>
<else />
<!-- icons -->

<table class="icon_legend" align="center" border="0" cellpadding="6" cellspacing="0" width="100%">


<tbody>
<tr align="center">
<td class="alt2"><img src="$stylevar[imgdir_statusicon]/forum_new.gif" alt="" border="0" /></td>
<td align="left" class="alt1">
<div class="smallfont">$vbphrase[forum_contains_new_posts]</div>


</td>
<td class="alt2" ><img src="$stylevar[imgdir_statusicon]/forum_old.gif" alt="" border="0" /></td>
<td align="left" class="alt1" ><div class="smallfont">$vbphrase[forum_contains_no_new_posts]</div></td>
<td class="alt2" ><img src="$stylevar[imgdir_statusicon]/forum_new_lock.gif" alt="" border="0" /><img src="$stylevar[imgdir_statusicon]/forum_old_lock.gif" alt="" border="0" /></td>
<td align="left" class="alt1" ><div class="smallfont">$vbphrase[forum_is_closed_for_posting]</div></td>
</tr>


</tbody>

</table>
<!-- /icons-->
</if>
<!-- / icon key -->
<div class="spacer"></div>
<!-- forum rules & forum jump -->
<table cellpadding="0" cellspacing="0" border="0" width="100%" align="center">
<tr valign="top">
<td width="100%">
<div class="smallfont">&nbsp;</div>
<if condition="$show['threadslist']">$forumrules</if>
</td>
<td>
$forumjump
<if condition="!$show['popups'] AND $show['adminoptions']">
<br />
<form action="moderator.php" method="get">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="f" value="$forumid" />
<div class="smallfont"><strong>$vbphrase[admin_tools]</strong> :</div>
<select name="do" onchange="this.form.submit();">
<optgroup label="$vbphrase[admin_tools]">
<option value="modposts" selected="selected">$vbphrase[view_posts_queue]</option>
<option value="modattach">$vbphrase[view_attachment_queue]</option>
<option value="move">$vbphrase[mass_move]</option>
<option value="prune">$vbphrase[mass_prune]</option>
<if condition="$show['addmoderator']">
<option value="addmoderator">$vbphrase[add_moderator]</option>
</if>
<if condition="$show['post_new_announcement']">
<option value="postannouncement">$vbphrase[post_new_announcement]</option>
</if>
</optgroup>
</select>$gobutton
</form>
</if>
</td>
</tr>
</table>
<!-- / forum rules & forum jump -->

$footer
</body>
</html>

adwade
08 Sep 2006, 15:26
Btw, my drop down search box does look different from the one pictured above as an example, with more options below the input line.(see attached pic)

Abe1
13 Sep 2006, 22:47
Btw, my drop down search box does look different from the one pictured above as an example, with more options below the input line.(see attached pic)
it doesn;t look like you placed the code in the right spot.

nathanrich
27 Sep 2006, 06:42
Btw, my drop down search box does look different from the one pictured above as an example, with more options below the input line.(see attached pic)
I'm using the Miko's Satellite skin which also has the code occuring twice and more options in the search dropdown. I placed the new code after the first occurence and it worked fine. I didn't place it after the second one because that one is for non-popup browsers.

mkdevo
27 Sep 2006, 18:03
excellent! i'm usually always searching for 'titles only'.. this is a big help. thanks!

SCRIPT3R
06 Oct 2006, 19:14
for those of you that wish to have a "radio" style input... and note that i also have mine locked with checked by default. if you don't want yours checked by default just remove checked="checked".

<!-- Start Search Title only in search drop-down -->
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<input type="radio" name="titleonly" value="1" checked="checked" /> $vbphrase[search_titles_only]
</td>
<!-- End Search Title only in search drop-down -->

malmazan
07 Oct 2006, 10:31
I had tried the same by duplicating the option on the advanced search.
However, vB would not load the phrase "Search full text", only "Search titles only" and i could not hardcode it because theforum is multi lingual.

This solves my problem (no need for "Search full text") and is a more elegant way of doing it.

Thanks for sharing.

Clicked on install.

Abe1
09 Oct 2006, 03:08
for those of you that wish to have a "radio" style input... and note that i also have mine locked with checked by default. if you don't want yours checked by default just remove checked="checked".

<!-- Start Search Title only in search drop-down -->
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<input type="radio" name="titleonly" value="1" checked="checked" /> $vbphrase[search_titles_only]
</td>
<!-- End Search Title only in search drop-down -->

If you use the radio style, you can't uncheck it once it's checked. You have to have to radio buttons then. One to use just threads and one posts and threads.

SCRIPT3R
09 Oct 2006, 03:30
you're right, i realised that after i made the changes on my forum the other day but forgot to edit my post here.

Nathan2006
03 Dec 2006, 05:27
Thank you Abe

Very useful :)

Install

stinger2
30 Jan 2007, 10:46
bookmarking......very cool

fpattberg
30 Jan 2007, 13:23
Installed!

Thank you.

Fabian

maxicep
04 Feb 2007, 15:57
nice installed.

maxicep
09 Feb 2007, 11:18
i changed this code to more usefull for me :


<td class="vbmenu_option" title="nohilite">
<label for="rb_nb_sp0"><input type="checkbox" name="showposts" value="0" id="rb_nb_sp0" tabindex="1002" checked="checked" />$vbphrase[show_threads]</label>
&nbsp;
<label for="rb_nb_sp1"><input type="checkbox" name="showposts" value="1" id="rb_nb_sp1" tabindex="1003" />$vbphrase[show_posts]</label>
&nbsp;<input type="checkbox" name="titleonly" value="1" id="rb_nb_sp2" /> $vbphrase[search_titles_only]
</form>
</td>

Abe1
09 Feb 2007, 17:43
i changed this code to more usefull for me :


<td class="vbmenu_option" title="nohilite">
<label for="rb_nb_sp0"><input type="checkbox" name="showposts" value="0" id="rb_nb_sp0" tabindex="1002" checked="checked" />$vbphrase[show_threads]</label>
&nbsp;
<label for="rb_nb_sp1"><input type="checkbox" name="showposts" value="1" id="rb_nb_sp1" tabindex="1003" />$vbphrase[show_posts]</label>
&nbsp;<input type="checkbox" name="titleonly" value="1" id="rb_nb_sp2" /> $vbphrase[search_titles_only]
</form>
</td>
Same thing jut you placed the new check box else where.

maxicep
10 Feb 2007, 11:16
Same thing jut you placed the new check box else where.

yes Abe, thanks for giving hack and this opinion.

Dennis B
12 Feb 2007, 21:34
Thanks, installed. :)

adwade
13 Feb 2007, 12:45
Just wanted to say Thanxx to both Nathanrich & Abe1. I sat down to try this again in the Navbar menu code this time and it worked PERFECTLY!

Tralala
14 Feb 2007, 17:26
Thanks for this...

Also thanks to maxicep for your post... it helped me figure out how to get this into my heavily customized style.

DieselMinded
28 Mar 2007, 06:24
Thanks Installed !

DM

RedGTiVR6
27 Apr 2007, 15:52
Great mod!

I have lost count of the number of times I wished this was an option in the drop down menu!

I also appreciate adding it to the forumdisplay search.

I just have one question in that regard tough.

I want the check box to show up below the search field.

I've figured out how to do it on the nav bar, but I can't (for whatever reason) figure out where to put it in the code to show up in the forumdisplay search.

Any insight would be appreciated!

Great template mod! One of my favorites.

Abe1
18 May 2007, 17:00
Updated for vb3.6.6/7. Also, I added template edit for forumdisplay.

servan
18 May 2007, 21:57
This mod is very usefull for my users.

Thanks!!

RedGTiVR6
22 May 2007, 17:22
The changes that you made, do they only work for 3.6.6 or will they work on 3.6.5 if I apply them before the update?

Abe1
22 May 2007, 23:07
The changes that you made, do they only work for 3.6.6 or will they work on 3.6.5 if I apply them before the update?
I think it should work for it also.

RedGTiVR6
24 May 2007, 18:27
Abe1 - would you mind describing exactly what changes you made?

The old mod works fine on our upgraded board.

I'm wondering what you changed and why...:)

Ramsesx
24 May 2007, 22:38
I'm waiting so long to have this built in on vbulletin, thanks abe.

Abe1
25 May 2007, 12:48
Abe1 - would you mind describing exactly what changes you made?

The old mod works fine on our upgraded board.

I'm wondering what you changed and why...:)
It wont work on vb3.6.6>=

The moved the <form> location. This also adds it to the forum display page.

Stefano Virgill
16 Oct 2007, 05:40
Installed.
Works great.

For those who has the statement appearing twice in forum display, just paste the code after the first, not the second.

Regards

Steve

bestmilan
08 Jan 2008, 23:06
Another very useful mod, thanks Abe1 !!

Mark as Installed.

RedGTiVR6
27 Feb 2008, 18:59
Any word if this will work with 3.7?

Abe1
02 Mar 2008, 18:51
Any word if this will work with 3.7?
yes.

mahmuttunc
06 Mar 2008, 11:32
Will this work for 3.6.8?

Abe1
06 Mar 2008, 11:54
Yes.

FIM
11 Jun 2008, 19:59
yes.

thanks man :)

sherwood
18 Feb 2009, 21:22
Thank you mate..

great work!

Keesa
07 Aug 2009, 07:21
Thank you Abe!

Ramya108
17 Aug 2009, 20:46
Thank you very much!