Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Template Modifications
Boolean Search in Search Drop-Down Menu Option in Navbar Details »»
Boolean Search in Search Drop-Down Menu Option in Navbar
Version: 1.00, by Neutral Singh Neutral Singh is offline
Developer Last Online: Feb 2016 Show Printable Version Email this Page

Version: 3.5.1 Rating:
Released: 11-11-2005 Last Update: Never Installs: 6
Template Edits
 
No support by the author.

Boolean Search in Search Drop-Down Menu Option in Navbar
[Should work in all vB 3.5.x versions]


All Thanks To Jake Bunce, vBulletin Team

Context: I was wondering, how could we set up the boolean search as the default option for quick search from serach drop-down menu

Installation Instructions:

Quote:
Originally Posted by Jake Bunce

Admin CP -> Styles & Templates -> Style Manager -> ? ? -> Navigation / Breadcrumb Templates -> navbar



Find this code, add the red code:



Code:
    <if condition="$show['searchbuttons']">

    <!-- header quick search form -->

    <div class="vbmenu_popup" id="navbar_search_menu" style="display:none">

        <table cellpadding="4" cellspacing="1" border="0">

        <tr>

            <td class="thead">$vbphrase[search_forums]</td>

        </tr>

        <tr>

            <td class="vbmenu_option" title="nohilite">

            <form action="search.php" method="post">

                <input type="hidden" name="do" value="process" />

                <input type="hidden" name="showposts" value="0" />

                <input type="hidden" name="quicksearch" value="1" />

                <input type="hidden" name="s" value="$session[sessionhash]" />

                <input type="hidden" name="searchtype" value="1" />

                <input type="text" class="bginput" name="query" size="20" />&nbsp;$gobutton<br />

            </form>

            </td>

        </tr>

        <tr>

            <td class="vbmenu_option"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[advanced_search]</a></td>

        </tr>

        </table>

    </div>

    <!-- / header quick search form -->

    </if>


That should do it.
Thats All folks, Enjoy!!

Demo: http://www.sikhphilosophy.net

Please click install to encourage me to release such cute pies for you all !! :nervous:

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 11-12-2005, 07:31 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

2 things:

Can you please post a text file for this?

And, what is "Boolean Search?"

Reply With Quote
  #3  
Old 11-12-2005, 11:20 AM
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Posts: 3,832
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That's what I'm wondering too. lol
Reply With Quote
  #4  
Old 11-12-2005, 11:44 AM
AN-net's Avatar
AN-net AN-net is offline
 
Join Date: Dec 2003
Location: AnimationTalk.com
Posts: 2,367
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

boolearn search is where you can specify that certain words are more important than others or to skip entries containing certain words. or if two words are to be consectutive. it goes with full text searching.
Reply With Quote
  #5  
Old 11-12-2005, 01:04 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by AN-net
boolearn search is where you can specify that certain words are more important than others or to skip entries containing certain words. or if two words are to be consectutive. it goes with full text searching.
I guess I've never played with that feature. How would you do it?
Reply With Quote
  #6  
Old 11-12-2005, 01:46 PM
AN-net's Avatar
AN-net AN-net is offline
 
Join Date: Dec 2003
Location: AnimationTalk.com
Posts: 2,367
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<a href="http://www.mysql.com" target="_blank">www.mysql.com</a> has a great documentation this. you would use a "+" sign in front of words you want to appear in a search and a "-" sign in front of words you do not want your results to include. example:
+vbulletin -.org
that would yield all results with vbulletin but no results containing .org
Reply With Quote
  #7  
Old 11-13-2005, 01:17 PM
Tulsa Tulsa is offline
 
Join Date: Jul 2005
Location: Broken Arrow, Oklahoma
Posts: 475
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I like the idea of being able to search for phrases instead of just key words but for some reason I am not seeing the "red" code you're speaking of. I've looked at this thread with both "Firefox" on a Mac and IE on a PC and nothing is coming up red or any other color for that matter.
Reply With Quote
  #8  
Old 11-18-2005, 10:05 PM
ShadowOne ShadowOne is offline
 
Join Date: May 2005
Location: Tampa
Posts: 338
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yah i dont see the red code....
Reply With Quote
  #9  
Old 11-18-2005, 10:33 PM
shovel's Avatar
shovel shovel is offline
 
Join Date: Mar 2002
Location: South Carolina, US
Posts: 222
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ShadowOne
yah i dont see the red code....
Me either. But after comparison.

Add:
Code:
<input type="hidden" name="searchtype" value="1" />
After:
Code:
<input type="hidden" name="s" value="$session[sessionhash]" />
Under:
Code:
<!-- header quick search form -->
Hope that helps. Enjoy.

Ps.
It might make it a little better on you, Neutral Singh, if you add the definition of Boolean and Boolean Searching to your first post, that way you don't have to constantly explain. Good hack though, I didn't even know it existed in the form. Nice job.
Reply With Quote
  #10  
Old 07-03-2007, 07:58 PM
J0iN J0iN is offline
 
Join Date: Apr 2007
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great Work
Reply With Quote
Reply

Thread Tools

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 11:18 AM.


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.04283 seconds
  • Memory Usage 2,287KB
  • Queries Executed 23 (?)
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
  • (4)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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_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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete