The Arcive of vBulletin Modifications Site. |
|
![]() |
|||||||||||||||||||||||||
This template edit will add a "Search Members" search box taken from the Memberlist, directly below the "Search Forums" search box.
Edit your navbar template, find: HTML Code:
<if condition="$show['searchbuttons']"> <!-- header quick search form --> <div class="vbmenu_popup" id="navbar_search_menu" style="display:none"> <table cellpadding="4" cellspacing="1" border="0"> <tr> <td class="thead">$vbphrase[search_forums]</td> </tr> <tr> <td class="vbmenu_option" title="nohilite"> <form action="search.php" method="post"> <input type="hidden" name="do" value="process" /> <input type="hidden" name="showposts" value="0" /> <input type="hidden" name="quicksearch" value="1" /> <input type="hidden" name="s" value="$session[sessionhash]" /> <input type="text" class="bginput" name="query" size="20" />$gobutton<br /> </form> </td> </tr> <tr> <td class="vbmenu_option"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[advanced_search]</a></td> </tr> </table> </div> <!-- / header quick search form --> </if> HTML Code:
<if condition="$show['searchbuttons']"> <!-- header quick search forms --> <div class="vbmenu_popup" id="navbar_search_menu" style="display:none"> <table cellpadding="4" cellspacing="1" border="0"> <tr> <td class="thead">$vbphrase[search_forums]</td> </tr> <tr> <td class="vbmenu_option" title="nohilite"> <form action="search.php" method="post"> <input type="hidden" name="do" value="process" /> <input type="hidden" name="showposts" value="0" /> <input type="hidden" name="quicksearch" value="1" /> <input type="hidden" name="s" value="$session[sessionhash]" /> <input type="text" class="bginput" name="query" size="20" />$gobutton<br /> </form> </td> </tr> <tr> <td class="vbmenu_option"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[advanced_search]</a></td> </tr> </table> <if condition="!$show['usergroup']"> <table cellpadding="4" cellspacing="1" border="0"> <tr> <td class="thead">Search Members</td> </tr> <tr> <td class="vbmenu_option" title="nohilite"> <form action="memberlist.php" method="post"> <input type="hidden" name="s" value="$session[sessionhash]" /> <input type="hidden" name="do" value="getall" /> <input type="text" class="bginput" name="ausername" size="20" value="" title="$vbphrase[username]" />$gobutton </form> </td> </tr> <tr> <td class="vbmenu_option"><a href="memberlist.php?$session[sessionurl]do=search">$vbphrase[advanced_search]</a></td> </tr> </table> </if> </div> <!-- / header quick search forms --> </if> [sql]UPDATE `phrase` SET `phrasetypeid` = '1' WHERE `varname` = 'search_members' LIMIT 1;[/sql]Then in the navbar template, replace Search Members with $vbphrase[search_members] and you're done. Screenshot attached.. ![]() Show Your Support
|
Comments |
#2
|
||||
|
||||
![]()
Text file please?
![]() |
#3
|
|||
|
|||
![]()
niceeeeeee installed
|
#4
|
||||
|
||||
![]() Quote:
|
#5
|
||||
|
||||
![]()
Nope. We ask that all hacks/mods have a text file so anyone can update it when they upgrade vBulletin and don't have to try to hunt it down on the org. You of all people should have known that.
![]() |
#6
|
|||
|
|||
![]()
Nice Idea !
![]() But to be within the vB-standards, you should replace the hard-coded text "Search Members" with the correct vbphrase-variable. J?rg |
#7
|
||||
|
||||
![]()
Yep, there's a "Search Members" phrase in the User Tools phrasegroup so I didn't want to create another phrase with the exact same text, although there's no reason why I couldn't. I'll probably write an optional query to move it to the GLOBAL phrasegroup or something..
|
#8
|
|||
|
|||
![]()
Cool idea, suuuuuuuuuuupppppppppppppppper fast install!!!!!!!!
|
#9
|
|||
|
|||
![]()
Very nice idea, I like it.
|
#10
|
||||
|
||||
![]()
/me clicks install
ty |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|