vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   Navbar: Search Members (https://vborg.vbsupport.ru/showthread.php?t=97906)

Oblivion Knight 10-08-2005 10:00 PM

Navbar: Search Members
 
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>

Replace it with:
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>

OPTIONALLY, if you want to remain fully phrased then run this query:
[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.. :)

Boofo 10-08-2005 11:54 PM

Text file please? ;)

vibe 10-09-2005 05:28 AM

niceeeeeee installed

Oblivion Knight 10-09-2005 06:42 AM

Quote:

Originally Posted by Boofo
Text file please? ;)

For a single edit?! You're joking, right? :speechless:

Boofo 10-09-2005 06:48 AM

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. ;)

JoergZ 10-09-2005 09:35 AM

Nice Idea ! :) I will install it.

But to be within the vB-standards, you should replace the hard-coded text "Search Members" with the correct vbphrase-variable.


J?rg

Oblivion Knight 10-09-2005 10:35 AM

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

hotrod1 10-10-2005 01:30 AM

Cool idea, suuuuuuuuuuupppppppppppppppper fast install!!!!!!!!

PennylessZ28 10-10-2005 03:17 AM

Very nice idea, I like it.

Brandon Sheley 10-12-2005 03:25 AM

/me clicks install
ty


All times are GMT. The time now is 12:12 AM.

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.01028 seconds
  • Memory Usage 1,764KB
  • 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_html_printable
  • (1)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