Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 01-13-2008, 08:42 PM
zachlee47 zachlee47 is offline
 
Join Date: Dec 2007
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default How can I add Search box to my navbar / header to my site

The search bar (search box) that vbulletin.org uses between the header and navbar is great. I have searched through this site and the main site and have not found how to add this to mine. Can someone point me in the right direction?? Thanks! -Z

--------------- Added [DATE]1200282774[/DATE] at [TIME]1200282774[/TIME] ---------------

does vbulletin.org have a list of their installed mods? I have been hunting around and cannot locate anything. Maybe a sticky somewhere???
Reply With Quote
  #2  
Old 01-14-2008, 06:50 PM
Rob1986 Rob1986 is offline
 
Join Date: Feb 2005
Posts: 88
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Would also like to know.
Reply With Quote
  #3  
Old 01-14-2008, 07:08 PM
snakes1100 snakes1100 is offline
 
Join Date: Dec 2001
Location: Michigan
Posts: 3,733
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That is a custom modification created by the admins here at vb.org, they are not publicly released.

You can view the page source code and get a general idea on what to do, i dont recall them ever disallowing the use of their code, not even for the tab'd style.
Reply With Quote
  #4  
Old 01-14-2008, 07:14 PM
Rob1986 Rob1986 is offline
 
Join Date: Feb 2005
Posts: 88
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

They should release the code for that search box, its pretty nifty.
Reply With Quote
  #5  
Old 01-14-2008, 07:26 PM
zachlee47 zachlee47 is offline
 
Join Date: Dec 2007
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Check out my screenshot
Here is the code of what I did:

Code:
<table border="0"  width="100%">
  <tr><!-- Row 1 -->
<td>    <center>

<!--searchSTART -->
              <form action="search.php?do=process" method="post" name="vbform" id="searchform">
<input type="hidden" name="s" value="" />
<input type="hidden" name="do" value="process" />
<input type="hidden" name="searchthreadid" value="" />
                <input type="text" class="alt1" name="query" size="40" onfocus="this.value=''" value="$vbphrase[srechercher_defaut]" />
               <input type="submit" class="button" value="Search CPS KB" style="vertical-align: middle;"/>
              </form>
               
<!--searchEND-->


</td><!-- Col 1 --></center>


<!--Google Start-->
 <td>
    <center>
<form method="get" action="http://www.google.com/custom" target="google_window">
<table bgcolor="#ffffff">
<tr><td nowrap="nowrap" valign="top" align="left" height="32">
<label for="sbi" style="display: none">Enter your search terms</label>
<input type="text" name="q" size="40" maxlength="255" value="" id="sbi"></input>
<label for="sbb" style="display: none">Submit search form</label>
<input type="submit" name="sa" value="Google It" id="sbb"></input>
<input type="hidden" name="client" value="pub-2949812222115590"></input>
<input type="hidden" name="forid" value="1"></input>
<input type="hidden" name="ie" value="ISO-8859-1"></input>
<input type="hidden" name="oe" value="ISO-8859-1"></input>
<input type="hidden" name="cof" value="GALT:#008000;GL:1;DIV:#336699;VLC:663399;AH:center;BGC:FFFFFF;LBGC:336699;ALC:0000FF;LC:0000FF;T:000000;GFNT:0000FF;GIMP:0000FF;FORID:1"></input>
<input type="hidden" name="hl" value="en"></input>
</td></tr></table>
</form>
<!-- Google END --> 
</td><!-- Col 2 --></center>
  </tr>
</table>
Attached Images
File Type: jpg vbulletin_navbar.jpg (11.9 KB, 0 views)
Reply With Quote
  #6  
Old 01-14-2008, 10:08 PM
Guest210212002
Guest
 
Posts: n/a
Default

I released this as a mod a while back:

https://vborg.vbsupport.ru/showthread.php?t=147076

It's unsupported now, as I don't have much time to really hack around anymore.
Reply With Quote
  #7  
Old 01-14-2008, 10:30 PM
zachlee47 zachlee47 is offline
 
Join Date: Dec 2007
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I found a lot of mods that had it up in the header and/or in the navbar. I just wanted a standalone, simple search box. No drop downs, no options, just search.

I use vbulletin for an in-house knowledge_base. My users are "not so computer literate" I have to dumb things down to one step before *simple*

I used to run a football_forum back in the 2.x days, and had a similar search bar.
Reply With Quote
  #8  
Old 01-15-2008, 07:53 AM
Rob1986 Rob1986 is offline
 
Join Date: Feb 2005
Posts: 88
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Chris-777 View Post
I released this as a mod a while back:

https://vborg.vbsupport.ru/showthread.php?t=147076

It's unsupported now, as I don't have much time to really hack around anymore.
This is perfect! Thank you.

Working on my site. www.musclemecca.com
Reply With Quote
  #9  
Old 01-15-2008, 08:47 AM
zachlee47 zachlee47 is offline
 
Join Date: Dec 2007
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Rob1986 View Post
This is perfect! Thank you.

Working on my site. www.musclemecca.com
Cool logo. IMO, pre-set word verification (pain) plus image verification is a bit much. Overall, nice design!

--------------- Added [DATE]1200394550[/DATE] at [TIME]1200394550[/TIME] ---------------

I made a slight change to my search box to make it stand out (and more easily recognizable against a white background)

locate the following style code, and add the bold:

Code:
<input type="text" class="alt1" name="query" size="40" style="background-color:#FFFF66;" onfocus="this.value=''" value="$vbphrase[srechercher_defaut]" />
Reply With Quote
  #10  
Old 01-15-2008, 08:58 AM
zachlee47 zachlee47 is offline
 
Join Date: Dec 2007
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The above adition will change the backround color of the searchbox to a pale yellow. A
Attached Images
File Type: jpg searchbars.jpg (10.3 KB, 0 views)
Reply With Quote
Reply

Thread Tools
Display Modes

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:16 PM.


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.04655 seconds
  • Memory Usage 2,267KB
  • Queries Executed 12 (?)
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
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (2)postbit_attachment
  • (9)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
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete