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
  #22  
Old 11-15-2008, 07:35 PM
navik navik is offline
 
Join Date: Nov 2008
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi fellows! let me introduce you my site its

Code:
http://maya-empire.com/m-e/forum.php
im trying to put this kind of search into my web....but i've found out that my colaborator has changed the style im readin the header code....and im reading this

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]
and beause of the instructuions i can't place the given code here...in the location where its supposed to be as far as i understand the html the code given here it's located into a table...and as you can se in my header code i dont have tables.....

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....
Reply With Quote
  #23  
Old 11-16-2008, 09:30 AM
Crashh Crashh is offline
 
Join Date: May 2007
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by veenuisthebest View Post
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/
Oh.. Yeapp.. I find it) But in footer of the page )
Thx for help!

Can u paste here "template hack", how u insert filter in "header" on your site tech555.com ?
Reply With Quote
  #24  
Old 11-16-2008, 10:24 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 Crashh View Post
Oh.. Yeapp.. I find it) But in footer of the page )
Thx for help!

Can u paste here "template hack", how u insert filter in "header" on your site tech555.com ?
well that is different mod crashh

Display Options Above Threads - as seen on vbulletin.org
Reply With Quote
  #25  
Old 11-16-2008, 10:39 AM
Crashh Crashh is offline
 
Join Date: May 2007
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by veenuisthebest View Post
Ohhh. Thanks a lot
Reply With Quote
  #26  
Old 12-06-2008, 03:38 AM
leitel leitel is offline
 
Join Date: Mar 2003
Location: Costa Rica
Posts: 118
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did I understand correctly that this is a default feature of 3.7? I couldn't find any option to switch this on.

Quote:
Originally Posted by veenuisthebest View Post
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
  #27  
Old 12-08-2008, 02:37 PM
Powlo Powlo is offline
 
Join Date: Feb 2008
Location: Sunderland UK
Posts: 155
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:
 <option value="1">Forum1</option
i am assuming i replace Forum1 with a the forum name of my chosing, right?

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!
Reply With Quote
  #28  
Old 12-08-2008, 07:53 PM
Powlo Powlo is offline
 
Join Date: Feb 2008
Location: Sunderland UK
Posts: 155
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #29  
Old 12-12-2008, 02:56 AM
mesdar mesdar is offline
 
Join Date: Jul 2008
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very nice

Thanks
Reply With Quote
  #30  
Old 12-28-2008, 02:27 AM
leroub's Avatar
leroub leroub is offline
 
Join Date: Jul 2005
Location: In my computer
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
I also tried, "is_member_of($userinfo, 6,12)", but doesn't work...

thx in advance for your help... :up:
Reply With Quote
  #31  
Old 12-28-2008, 09:11 AM
veenuisthebest's Avatar
veenuisthebest veenuisthebest is offline
 
Join Date: Mar 2008
Location: India
Posts: 1,416
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It should be

HTML Code:
<if condition="is_member_of($vbulletin->userinfo, 6, 12)">
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:49 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.05628 seconds
  • Memory Usage 2,349KB
  • 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
  • (5)bbcode_code
  • (2)bbcode_html
  • (1)bbcode_php
  • (4)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
  • (4)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