The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Advanced Quick Search form like vBulletin.org Details »» | |||||||||||||||||||||||||||
Advanced Quick Search form like vBulletin.org
Developer Last Online: Nov 2023
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 /> </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&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&showposts=0&starteronly=1&exactname=1&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&replyless=1&replylimit=0&exclude=30&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
|
Comments |
#22
|
|||
|
|||
Hi fellows! let me introduce you my site its
Code:
http://maya-empire.com/m-e/forum.php Code:
<!-- logo --> <a href="http://www.maya-empire.com"><img src="/m-e/images/undergroundstyle/misc/maya_2008.jpg" alt="Ad" /></a> </div> <!-- /logo --> <!-- content table --> $spacer_open $_phpinclude_output $ad_location[ad_header_end] Can someone help me configurating my header code please? but.....i was thinking it can be places into another templante right?? a table could be created beneath the line that has USER CP Help Chat Member List... i thik its called navbar can someone could create a template modification that im proposing? im not a coder i would like to help....but its an idea, maybe some coder havent thought of it.... i hope someone can make it.... |
#23
|
|||
|
|||
Quote:
Thx for help! Can u paste here "template hack", how u insert filter in "header" on your site tech555.com ? |
#24
|
||||
|
||||
Quote:
Display Options Above Threads - as seen on vbulletin.org |
#25
|
|||
|
|||
Quote:
|
#26
|
|||
|
|||
Did I understand correctly that this is a default feature of 3.7? I couldn't find any option to switch this on.
Quote:
|
#27
|
|||
|
|||
Thanks for this mod but i dont understand how it works. I am probably being a bit dim but here goes..
Where the code is.. PHP Code:
What about subforums? I have several subforums with the same name but in different categories so i guess it will have to include the parent too. I cant see how this works as ive added the code on a test forum ive changed nothing in the code but it will still perform a search and retrieve results even though i dont have a forum called 'Forum1'. Hope you can help. {EDIT} Scrap all that, sorry chaps just read instruction 6 doh! |
#28
|
|||
|
|||
Ok ive installed it and its Fantastic for my forum. Thanks.
There is one thing i dont like though.. If for example you selected a category from the drop down list but left the search area blank it will default to the advanced search paget. Would it not be possible for it to list the latest posts in the selected category instead? Now that for me would make this perfect. Cheers |
#29
|
|||
|
|||
Very nice
Thanks |
#30
|
||||
|
||||
Hi all....
I need your help... i want to allow a portion of the search option for groups 6 and 12 ... I try this, but it doesn't work... Code:
<if condition="$show['searchbuttons']"> <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> <div align="center"> <input type="text" name="query" size="30" style="font-size: 8pt;" /> <select name="forumchoice[]"> <option value="-1" selected="selected">Tout le site</option> <option value="3,4">Tutoriels</option> <option value="12">Forums d'aide</option> <if condition="is_member_of($bbuserinfo, 6,12)"> <option value="27"> Images famille</option> <option value="19,20,21,22,23,25">Messages perso</option> </if> </select> <select name="titleonly"> <option value="0" selected="selected">Dans le texte complet</option> <option value="1" >Seulement dans le titre</option> </select> <input name="search" value="Recherche" type="submit" class="button" /> <a href="search.php" accesskey="4" rel="nofollow" id="navbar_search1" class=""></a> <script type="text/javascript"> vbmenu_register("navbar_search1",1); </script> </div> </div> </form> </if> thx in advance for your help... :up: |
#31
|
||||
|
||||
It should be
HTML Code:
<if condition="is_member_of($vbulletin->userinfo, 6, 12)">
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|