Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Advanced Quick Search form like vBulletin.org Details »»
Advanced Quick Search form like vBulletin.org
Version: 1.00, by veenuisthebest veenuisthebest is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.7.x Rating:
Released: 11-11-2008 Last Update: Never Installs: 75
Template Edits
 
No support by the author.


1. This is a search form similar to what you see at this forum (screenshot above) that includes searching by forums, all posts, titles only with a quick menu.

2. It includes quick tag search as well, if you want. Just remove comments to enable it.

3. Under Search Options, you'll find

Code:
My Posts
My Threads
New Posts
Today's Posts
Unanswered Threads
Advanced Search

4. XHTML valid

5. It would be convenient and easiest if we simply place the code in Ad Location Templates -> ad_header_logo template (if you're not using it for ad purposes ofcourse and the spot is free) OR

find this in header template:-

Code:
<if condition="$ad_location['ad_header_logo']">$ad_location[ad_header_logo]<else />&nbsp;</if>

and replace the code in red with the below code.

HTML Code:
<if condition="$show['searchbuttons']">
	<!-- header quick search form -->
	<form action="search.php?do=process" method="post">
	<input type="hidden" name="do" value="process" />
	<input type="hidden" name="quicksearch" value="1" />
	<input type="hidden" name="childforums" value="1" />
	<input type="hidden" name="exactname" value="1" />
	<input type="hidden" name="s" value="$session[sessionhash]" />
	<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
<div><input type="text" name="query" size="30" style="font-size: 8pt;" />
<select name="forumchoice[]">
            <option value="-1" selected="selected">All Forums</option>
            <option value="1">Forum1</option>
            <option value="2">Forum2</option>
            <option value="3">Forum3</option>
          </select>
<select name="titleonly">
		<option value="0" selected="selected">All Posts</option>
		<option value="1" >Titles Only</option>
	</select><input name="search" value="Search" type="submit" class="button" /><a href="search.php" accesskey="4" rel="nofollow" id="navbar_search1" class=""><img src="$stylevar[imgdir_misc]/menu_open.gif" alt="" title="Advanced Search" border="0" /></a>
            <script type="text/javascript"> vbmenu_register("navbar_search1",1); </script>
</div>
</form>
<!-- <br />
<form action="tags.php" method="get">
<span id="tag_wrapper"><input type="text" id="tag_input" name="tag" size="25" style="font-size: 8pt" value="enter tag, and hit enter" onFocus="this.value=''" onBlur="this.value='enter tag, and hit enter'"/></span>
</form> -->
<div class="vbmenu_popup" id="navbar_search1_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]do=finduser&amp;u=$bbuserinfo[userid]" rel="nofollow">My Posts</a></td></tr>
	<tr><td class="vbmenu_option" align="left"><a href="search.php?$session[sessionurl]do=process&amp;showposts=0&amp;starteronly=1&amp;exactname=1&amp;searchuser=$bbuserinfo[username]" rel="nofollow">My Threads</a></td></tr>
	<tr><td class="vbmenu_option" align="left"><a href="search.php?$session[sessionurl]do=getnew" rel="nofollow">New Posts</a></td></tr>
	<tr><td class="vbmenu_option" align="left"><a href="search.php?$session[sessionurl]do=getdaily" rel="nofollow">Today's Posts</a></td></tr>
	<tr><td class="vbmenu_option" align="left"><a href="search.php?$session[sessionurl]do=process&amp;replyless=1&amp;replylimit=0&amp;exclude=30&amp;nocache=1" rel="nofollow">Unanswered Threads</a></td></tr>
	<tr><td class="vbmenu_option" align="left"><a href="search.php$session[sessionurl]" accesskey="4" rel="nofollow">Advanced Search</a></td></tr>
	</table>
</div>
	<!-- / header quick search form -->
	</if>

6. To add searching within forums, simply find Forum1, Forum2 in the above code and replace them with your forum title and corresponding FORUM ID's in place of option values.

Extras:-


1. To enable quick tag search:-

Simply uncomment the second form after first instance of </form>. Ofcourse position it, style it as you like.

2. You would notice a Javascript effect in tag search form where there is no submit button and a hint text on focus and blur is placed. If you like, you can do the same for the first form

Hope you find this useful. Please MARK AS INSTALLED if you use it.

Source: http://tech6.com/f51/advanced-quick-...etin-org-t588/

Show Your Support

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

Comments
  #12  
Old 11-13-2008, 03:43 AM
veenuisthebest's Avatar
veenuisthebest veenuisthebest is offline
 
Join Date: Mar 2008
Location: India
Posts: 1,416
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by glorify View Post
Correct me if I'm wrong, but what you're asking is how it looks on a stock vb style template?

Love the mod, just don't have a place to put it in my modded template
At your gtp site..

you can put it inbetween the logo and the image at the right. I would suggest you to use just the quick text search (for members only), this is how i am doing at my site. check it out, you need to sign in to see.

it looks good and is compact as well
Reply With Quote
  #13  
Old 11-13-2008, 09:03 AM
baghdad4ever baghdad4ever is offline
 
Join Date: Apr 2007
Location: baghdad
Posts: 443
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by veenuisthebest View Post
Then you probably didn't read the 1st point in extras.

Find this in code:-

HTML Code:
<!-- <br />
<form action="tags.php" method="get">
<span id="tag_wrapper"><input type="text" id="tag_input" name="tag" size="25" style="font-size: 8pt" value="enter tag, and hit enter" onFocus="this.value=''" onBlur="this.value='enter tag, and hit enter'"/></span>
</form> -->
Simply remove the comments to enable it.

HTML Code:
<br />
<form action="tags.php" method="get">
<span id="tag_wrapper"><input type="text" id="tag_input" name="tag" size="25" style="font-size: 8pt" value="enter tag, and hit enter" onFocus="this.value=''" onBlur="this.value='enter tag, and hit enter'"/></span>
</form>


thank you

installed
Reply With Quote
  #14  
Old 11-13-2008, 02:53 PM
Stifmeister2 Stifmeister2 is offline
 
Join Date: Feb 2006
Location: Finland
Posts: 755
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by glorify View Post
Correct me if I'm wrong, but what you're asking is how it looks on a stock vb style template?

Love the mod, just don't have a place to put it in my modded template
Yeah. I have customized styles. And I'm wondering where I might put this...
Reply With Quote
  #15  
Old 11-13-2008, 02:57 PM
veenuisthebest's Avatar
veenuisthebest veenuisthebest is offline
 
Join Date: Mar 2008
Location: India
Posts: 1,416
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Stifmeister2 View Post
Yeah. I have customized styles. And I'm wondering where I might put this...
Read post #11
Reply With Quote
  #16  
Old 11-14-2008, 12:34 PM
Crashh Crashh is offline
 
Join Date: May 2007
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have a question:

If i use this hack , can i filter threads by prefix?
Reply With Quote
  #17  
Old 11-14-2008, 04:17 PM
veenuisthebest's Avatar
veenuisthebest veenuisthebest is offline
 
Join Date: Mar 2008
Location: India
Posts: 1,416
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Crashh View Post
I have a question:

If i use this hack , can i filter threads by prefix?
1. That would require another form as the action script is different. And ofcourse another submit button that won't look good at all. Submitting two forms with one button can be done with JS but its not worth so much effort.

2. It would throw an invalid forum error when search made from index.php. You'll probably have to create *another* listbox containing all the forum list for workaround.

3. Though it would work great on forumdisplay.php BUT that page already has a prefix search, so...

Overall, its pretty useless I think. Keeping the Quick Search form on header should be made as compact and small as possible, no need of adding complexity to it.

Infact, I myself is using JUST a small input box for quick search. No forums list, no tag search, no dropdown menu, no titles/posts and not even the submit button lol
Reply With Quote
  #18  
Old 11-14-2008, 05:25 PM
Crashh Crashh is offline
 
Join Date: May 2007
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm... If i understand u correctly, it's difficult to make a search by prefix (like this forum)
I'm not a coder, maybe u'll make new hack like this forum, to search in sub-forums by prefix?
Reply With Quote
  #19  
Old 11-14-2008, 06:14 PM
veenuisthebest's Avatar
veenuisthebest veenuisthebest is offline
 
Join Date: Mar 2008
Location: India
Posts: 1,416
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Its not difficult, just a simple form needs to be added.

btw I don't see a Search by prefix in this forum, its a 3.7 feature, not 3.6.
Reply With Quote
  #20  
Old 11-14-2008, 07:46 PM
Crashh Crashh is offline
 
Join Date: May 2007
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by veenuisthebest View Post
Its not difficult, just a simple form needs to be added.

btw I don't see a Search by prefix in this forum, its a 3.7 feature, not 3.6.
Wow. If it's not difficult, can u do it? Please. I can't

Why u didn't see?
Look at the screenshot in attach, and u'll understand what i want
Reply With Quote
  #21  
Old 11-14-2008, 08:43 PM
veenuisthebest's Avatar
veenuisthebest veenuisthebest is offline
 
Join Date: Mar 2008
Location: India
Posts: 1,416
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Its the MODS forum at vborg. Its totally custom.

Btw, if you want it that way on forumdisplay.php, then ITS A DEFAULT FEATURE of 3.7

Check on my site
http://www.tech555.com/forum/f51-vbulletin/
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 09:07 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04937 seconds
  • Memory Usage 2,345KB
  • Queries Executed 25 (?)
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
  • (2)bbcode_code
  • (3)bbcode_html
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete