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

zyad 05-14-2006 06:41 PM

was just wondering, what's under the advanced search under members? Is there a way to have an advanced search so that you can define everything you're looking for in members??

Oblivion Knight 05-14-2006 08:43 PM

Quote:

Originally Posted by zyad
was just wondering, what's under the advanced search under members? Is there a way to have an advanced search so that you can define everything you're looking for in members??

The "Advanced Search" links to the equivalent of this page, but on your forums.

Which pretty much already does as you ask.. ;)

ultrAtolga 06-21-2006 04:14 PM

I have a problem which occurs after i replace the code.

Forbidden
You don't have permission to access /forum/admincp/template.php on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

SHalliday 06-28-2006 08:01 PM

Thank you as I "Click Install".

TotalDriver 07-01-2006 04:31 AM

^Ditto^

El Orans 11-01-2006 10:09 PM

* Clicks Install *

MonkYZ 05-17-2010 07:31 AM

Guys, can i have a little help in here ? After modifying the navbar, i get this Message box:
Quote:

Your submission could not be processed because a security token was missing.

If this occurred unexpectedly, please inform the administrator and describe the action you performed before you received this error.
Can you help me fix this, please ? Thank you in advance !

MonkYZ 05-17-2010 07:36 AM

Found where the problem is. Seems for 4.8.x vB there is a new line needed for security token:
Code:

                                <input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />


All times are GMT. The time now is 04:50 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.01074 seconds
  • Memory Usage 1,779KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_html_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (18)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete