vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How can I add Search box to my navbar / header to my site (https://vborg.vbsupport.ru/showthread.php?t=167677)

zachlee47 01-13-2008 08:42 PM

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???

Rob1986 01-14-2008 06:50 PM

Would also like to know.

snakes1100 01-14-2008 07:08 PM

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.

Rob1986 01-14-2008 07:14 PM

They should release the code for that search box, its pretty nifty.

zachlee47 01-14-2008 07:26 PM

1 Attachment(s)
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>


Guest210212002 01-14-2008 10:08 PM

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.

zachlee47 01-14-2008 10:30 PM

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.

Rob1986 01-15-2008 07:53 AM

Quote:

Originally Posted by Chris-777 (Post 1421540)
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

zachlee47 01-15-2008 08:47 AM

Quote:

Originally Posted by Rob1986 (Post 1421796)
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]" />

zachlee47 01-15-2008 08:58 AM

1 Attachment(s)
The above adition will change the backround color of the searchbox to a pale yellow. A


All times are GMT. The time now is 09:06 PM.

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.01574 seconds
  • Memory Usage 1,737KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete