View Single Post
  #3  
Old 11-17-2009, 07:17 AM
JoergZ JoergZ is offline
 
Join Date: Jun 2002
Location: Germany
Posts: 127
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by milsirhc View Post
I'm interested!

O.k., here we go.

In template "navbar"

find

Code:
<div id="globalsearch">
add above

Code:
 <div id="globalsearchmbr">
  <form action="memberlist.php?do=process" method="post" id="navbar_member_search">
   <input type="hidden" name="s" value="{vb:raw session.sessionurl}" />
   <input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
   <input type="hidden" name="do" value="getall" />
   <span class="textboxcontainer"><span><input type="text" value="" name="ausername" class="textbox" /></span></span>
   <span class="buttoncontainer"><span><input type="image" class="searchbutton" src="{vb:stylevar imgdir_button}/search.png" name="submit" onclick="document.getElementById('navbar_member_search').submit;" /></span></span>
  </form>
  <ul class="navbar_advanced_search">
   <li><a href="memberlist.php?{vb:raw session.sessionurl}do=search">{vb:rawphrase advanced_search}</a></li>
  </ul>
 </div>

In template "vbulletin-chrome.css"

find

Code:
#globalsearch {
add above

Code:
#globalsearchmbr {
 position:absolute;
 width:180px;
 left:550px;
 {vb:stylevar right}: {vb:math {vb:stylevar padding}*2};
 bottom: 0;
 float: {vb:stylevar right};
 clear: {vb:stylevar left};
 text-align:{vb:stylevar right};
 line-height: 1.0em;
 display:block;
}
 
#globalsearchmbr .textboxcontainer {
 height: {vb:stylevar navbar_tab_size.height}px;
 border-{vb:stylevar left}:{vb:stylevar navbar_tab_border};
 display:inline-block;
 float: {vb:stylevar left};
 text-align:center;
}
#globalsearchmbr .textboxcontainer span {
 border-top: {vb:stylevar navbar_tab_bevel};
 border-{vb:stylevar left}: {vb:stylevar navbar_tab_bevel};
 display: inline-block;
 height: {vb:math {vb:stylevar navbar_tab_size.height}-4}px;
 padding-{vb:stylevar left}: 2px;
 padding-{vb:stylevar right}: 2px;
 padding-top: 3px;
 margin-bottom: 1px;
 width: 147px;
        _width:140px; /* ie6 hack */
}
#globalsearchmbr input.textbox {
 width: 120px;
}
#toplinks form input.loginbutton {
 font-size: {vb:math {vb:stylevar font.fontSize}-2}px;
 padding: 0 {vb:math {vb:stylevar padding}/2};
 background-color:  {vb:stylevar toplinks_input_login_backgroundColor};
 border:solid 1px {vb:stylevar heavy_border.borderColor};
}
#globalsearchmbr .buttoncontainer {
 height: {vb:stylevar navbar_tab_size.height}px;
 border-{vb:stylevar left}:{vb:stylevar navbar_tab_border};
 display:inline-block;
 border-{vb:stylevar right}:{vb:stylevar navbar_tab_border};
 width: 25px;
 overflow: hidden;
 float: {vb:stylevar right};
}
#globalsearchmbr .buttoncontainer span{
 border-top: {vb:stylevar navbar_tab_bevel};
 border-{vb:stylevar left}: {vb:stylevar navbar_tab_bevel};
 height: {vb:math {vb:stylevar navbar_tab_size.height}-3}px;
 padding-{vb:stylevar left}: 4px;
 padding-top: {vb:math {vb:math {vb:stylevar navbar_tab_size.height}-21}/2}px;
 display:inline-block;
}
#globalsearchmbr .searchbutton {
 border: 0;
 padding: 0;
 width: 22px;
 margin-top: -2px;
 margin-{vb:stylevar left}: -2px;
}

To change the position of the new box change more left or right, change the parameter width here:

Code:
#globalsearchmbr {
 position:absolute;
 width:180px;





Known issues:
  • New searchbox is fixed to the left menu-buttons, not to the right searchbox. That has the effect, when you resize your browser-window and make it very small, there is a point that the original searchbox and the new searchbox are overlayed.
  • In the CMS the white input-box for member-search is bigger (some pixels higher) than in the forum. But that's probably a beta-problem of vb4 and will disappear when we come closer to vb4 gold
Suggestions how to fix the box relative to the right searchbox are welcome


J?rg
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01323 seconds
  • Memory Usage 1,784KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete