princesspepper
06-08-2011, 12:41 PM
Does anyone know of a quick search drop down menu mod for prefixes? For example, like the dropdown at the top of this board, so you can quicksearch from the main menu to only pull up threads with a selected prefix.
Thanks in advance! :)
--------------- Added 1307559829 at 1307559829 ---------------
I have written my own, so if anyone is interested in the code, here it is. This is for VB 4.1.3
In FORUMDISPLAY template...
Find :
<ul class="popupgroup forumdisplaypopups" id="forumdisplaypopups">
Add after :
<!-- ADDED PREFIX SORT TO TOP -->
<vb:if condition="$show['threadslist']">
<vb:if condition="$prefix_options">
<li>
<form id="forum_display_options" action="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}forumdisplay.php" method="get">
<input type="hidden" name="s" value="{vb:raw session.sessionhash}" />
<input type="hidden" name="f" value="{vb:raw forumid}" />
<input type="hidden" name="page" value="{vb:raw pagenumber}" />
<input type="hidden" name="pp" value="{vb:raw perpage}" />
<input type="hidden" name="daysprune" value="{vb:rawphrase beginning}" />
<input type="hidden" name="sort" value="{vb:rawphrase last_post_time}" />
<input type="hidden" name="order" value="desc" />
<label for="sel_prefixid" style="float:left; padding:5px 10px 0 0;">{vb:rawphrase prefix}</label>
</li>
<li>
<select name="prefixid" class="primary" id="sel_prefixid">
<option value="" {vb:raw prefix_selected.anythread}>{vb:rawphrase any_thread_meta}</option>
<option value="-2" {vb:raw prefix_selected.anyprefix}>{vb:rawphrase any_prefix_meta}</option>
<option value="-1" {vb:raw prefix_selected.none}>{vb:rawphrase no_prefix_meta}</option>
{vb:raw prefix_options}
</select>
<p class="description">{vb:rawphrase select_threads_with_prefix_description}</p>
</li>
<li>
<input type="submit" class="button" value="{vb:rawphrase show_threads}" style="padding: 9px 0 0 0;" />
</li>
</form>
</vb:if>
</vb:if>
<!-- END PREFIX SORT TO TOP -->
If anyone has a better way of styling this, please feel free to add info. :)
Thanks in advance! :)
--------------- Added 1307559829 at 1307559829 ---------------
I have written my own, so if anyone is interested in the code, here it is. This is for VB 4.1.3
In FORUMDISPLAY template...
Find :
<ul class="popupgroup forumdisplaypopups" id="forumdisplaypopups">
Add after :
<!-- ADDED PREFIX SORT TO TOP -->
<vb:if condition="$show['threadslist']">
<vb:if condition="$prefix_options">
<li>
<form id="forum_display_options" action="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}forumdisplay.php" method="get">
<input type="hidden" name="s" value="{vb:raw session.sessionhash}" />
<input type="hidden" name="f" value="{vb:raw forumid}" />
<input type="hidden" name="page" value="{vb:raw pagenumber}" />
<input type="hidden" name="pp" value="{vb:raw perpage}" />
<input type="hidden" name="daysprune" value="{vb:rawphrase beginning}" />
<input type="hidden" name="sort" value="{vb:rawphrase last_post_time}" />
<input type="hidden" name="order" value="desc" />
<label for="sel_prefixid" style="float:left; padding:5px 10px 0 0;">{vb:rawphrase prefix}</label>
</li>
<li>
<select name="prefixid" class="primary" id="sel_prefixid">
<option value="" {vb:raw prefix_selected.anythread}>{vb:rawphrase any_thread_meta}</option>
<option value="-2" {vb:raw prefix_selected.anyprefix}>{vb:rawphrase any_prefix_meta}</option>
<option value="-1" {vb:raw prefix_selected.none}>{vb:rawphrase no_prefix_meta}</option>
{vb:raw prefix_options}
</select>
<p class="description">{vb:rawphrase select_threads_with_prefix_description}</p>
</li>
<li>
<input type="submit" class="button" value="{vb:rawphrase show_threads}" style="padding: 9px 0 0 0;" />
</li>
</form>
</vb:if>
</vb:if>
<!-- END PREFIX SORT TO TOP -->
If anyone has a better way of styling this, please feel free to add info. :)