The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Search on top right of this forum
I like the quick accress search facility on vbulletin.org, with its placement at the top right.
Is this a plugin or what? Thanks, Jon |
#2
|
||||
|
||||
|
#3
|
|||
|
|||
Thanks for that. Well found! It seems that the html of vb 3.8.7 has changed somewhat and so I can't seem to get the location right to put the search in there. It looks like it should go in the navbar template though.
I've experimented with putting it in there but it seems to mess up the breadcrumbs section somewhat. Does anyone know how to put this in 3.8.7? Pretty please? |
#4
|
||||
|
||||
Look at instructions on the link I posted, it goes in the header template.
I added it to my test site without issue. Link in my sig (Search only, not the tabs) Add it to your header template at the very bottom |
#5
|
|||
|
|||
Yes, I got the same as you, which isn't the same as vbulletin.org. Note that theirs is adjacent to the breadcrumbs, not above them.
|
#6
|
||||
|
||||
Add it at the very top of your navbar & see what you get.
|
#7
|
|||
|
|||
I'm not quite sure what you mean. I've tried multiple locations. I think there needs to be some editing of the html in the template, rather than just adding in the code given.
|
#8
|
||||
|
||||
I was able to add search to the breadcrumbs area but, I moved my login form to my header template. (link in my sig)
Not sure if you wanted to do that. I dont think you will have enough room if you leave the login form in the navbar template. To add the search to your navbar with the login form, in your navbar template, Create a backup of all templates you are going to edit just incase you need to re add them if you have an issue. find: Code:
<!-- breadcrumb, login, pm info --> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr> <td class="alt1" width="100%"> Find: Code:
<div class="navbar" style="font-size:10pt"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_start.gif" alt="" border="0" /></a> <strong>$vboptions[bbtitle]</strong></div> </if> Code:
<td class="alt1" width="25%"> <if condition="$show['searchbuttons']"> <!-- header quick search form --> <form action="search.php?do=process" method="post" <align="right"> <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="right"> <input type="text" name="query" size="18" style="font-size: 8pt;" /> <select name="forumchoice[]"> <option value="-1" selected="selected">All Forums</option> <option value="1">Forum 1</option> <option value="2">Forum 2</option> <option value="3">Forum 3</option> <option value="4">Forum 4</option> <option value="5">Forum 5</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></td> <!-- / header quick search form --> </if> If you want to move your login form to your header, Search your navbar template, Find and cut: Code:
<if condition="$show['member']"> <td class="alt2" nowrap="nowrap"> <div class="smallfont"> <strong><phrase 1="$bbuserinfo[username]" 2="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[welcome_x_link_y]</phrase></strong><br /> <phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase> <if condition="$show['notifications']"> <div><span id="notifications"><a href="usercp.php$session[sessionurl_q]">$vbphrase[your_notifications]:</a> <strong>$notifications_total</strong></span></div> <if condition="$show['popups']"> <script type="text/javascript"> vBmenu.register("notifications"); </script> <else /> <script type="text/javascript" src="clientscript/vbulletin_notifications_nopopups.js?v=$vboptions[simpleversion]"></script> <script type="text/javascript"> vBulletin.register_control("vB_Notifications_NoPopups", "notifications"); </script> </if> <else /><if condition="$show['pmstats']"> <div><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></div> </if></if> <if condition="$show['pmwarning']"><div><strong><phrase 1="$vbphrase[pmpercent_nav_compiled]">$vbphrase[your_pm_box_is_x_full]</phrase></strong></div></if> </div> </td> <else /> <td class="alt2" nowrap="nowrap" style="padding:0px"> <!-- login form --> <form action="login.php?do=login" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, $show[nopasswordempty])"> <script type="text/javascript" src="clientscript/vbulletin_md5.js?v=$vboptions[simpleversion]"></script> <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0"> <tr> <td class="smallfont" style="white-space: nowrap;"><label for="navbar_username">$vbphrase[username]</label></td> <td><input type="text" class="bginput" style="font-size: 11px" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="101" value="$vbphrase[username]" onfocus="if (this.value == '$vbphrase[username]') this.value = '';" /></td> <td class="smallfont" nowrap="nowrap"><label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" tabindex="103" id="cb_cookieuser_navbar" accesskey="c" />$vbphrase[remember_me]</label></td> </tr> <tr> <td class="smallfont"><label for="navbar_password">$vbphrase[password]</label></td> <td><input type="password" class="bginput" style="font-size: 11px" name="vb_login_password" id="navbar_password" size="10" tabindex="102" /></td> <td><input type="submit" class="button" value="$vbphrase[log_in]" tabindex="104" title="$vbphrase[enter_username_to_login_or_register]" accesskey="s" /></td> </tr> </table> <input type="hidden" name="s" value="$session[sessionhash]" /> <input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" /> <input type="hidden" name="do" value="login" /> <input type="hidden" name="vb_login_md5password" /> <input type="hidden" name="vb_login_md5password_utf" /> </form> <!-- / login form --> </td> </if> </tr> </table> <!-- / breadcrumb, login, pm info --> Search in your header template Find: Code:
<if condition="$ad_location['ad_header_logo']">$ad_location[ad_header_logo]<else /> </if> </td> Note: You may need to edit the td class to better fit your style, as this is edited fit my style colors. |
Благодарность от: | ||
Jon12345 |
#9
|
|||
|
|||
Nice work there. I will take a look but it seems you know what you are doing!
Thanks for all your help. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|