Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 06-08-2011, 12:41 PM
princesspepper princesspepper is offline
 
Join Date: May 2010
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Quick Search dropdown for prefixes

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 [DATE]1307559829[/DATE] at [TIME]1307559829[/TIME] ---------------

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 :

Code:
<ul class="popupgroup forumdisplaypopups" id="forumdisplaypopups">


Add after :

Code:
<!-- 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.
Reply With Quote
  #2  
Old 06-08-2011, 06:14 PM
thermax04 thermax04 is offline
 
Join Date: Apr 2011
Posts: 81
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can you provide a demo page for this mod
Reply With Quote
  #3  
Old 02-16-2012, 03:49 PM
g00gl3r g00gl3r is offline
 
Join Date: Sep 2005
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can confirm this works. I've removed the style for the submit button though as the padding didn't look right. Screenshot attached.
Attached Images
File Type: png Screen Shot 2012-02-16 at 16.48.31.png (102.8 KB, 0 views)
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:53 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.07495 seconds
  • Memory Usage 2,202KB
  • Queries Executed 14 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (3)postbit
  • (1)postbit_attachment
  • (3)postbit_onlinestatus
  • (3)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete