Area51 @ 4seven.de

Mod Base and Testarea
It is currently 23 Feb 2025, 19:44

All times are UTC + 1 hour




Post new topic TOPIC_LOCKED  [ 1 post ] 
Author Message
PostPosted: 21 Dec 2011, 01:29 
Offline
Tiptop
Tiptop
User avatar

Joined: 11 Feb 2008, 11:49
Posts: 241
Usersearch everywhere

Adds a usersearch to overall_header

demo
http://4seven.bplaced.net/forum/1/index.php

Instruction

open

includes/functions.php

find

Code:
        'U_SEARCH'                => append_sid("{$phpbb_root_path}search.$phpEx"), 


after add

Code:
        // Usersearch everywhere / 4seven / 2011
        'U_USERNAME_SEARCH'        => append_sid("{$phpbb_root_path}memberlist.$phpEx"),
        // Usersearch everywhere / 4seven / 2011       


open

language/en/common.php

find

Code:
$lang = array_merge($lang, array


after add

Code:
    // Usersearch everywhere / 4seven / 2011
    'USERNAME_SEARCH'    => 'Search user..',
    // Usersearch everywhere / 4seven / 2011       


open

styles/prosilver/template/overall_header.html

find

Code:
                <form action="{U_SEARCH}" method="get" id="search">
                <fieldset>
                    <input name="keywords" id="keywords" type="text" maxlength="128" title="{L_SEARCH_KEYWORDS}" class="inputbox search" value="<!-- IF SEARCH_WORDS-->{SEARCH_WORDS}<!-- ELSE -->{L_SEARCH_MINI}<!-- ENDIF -->" onclick="if(this.value=='{LA_SEARCH_MINI}')this.value='';" onblur="if(this.value=='')this.value='{LA_SEARCH_MINI}';" />
                    <input class="button2" value="{L_SEARCH}" type="submit" /><br />
                    <a href="{U_SEARCH}" title="{L_SEARCH_ADV_EXPLAIN}">{L_SEARCH_ADV}</a> {S_SEARCH_HIDDEN_FIELDS}
                </fieldset>
                </form>


replace with

Code:
                <form action="{U_SEARCH}" method="get" id="search">
                <fieldset>
                    <input name="keywords" id="keywords" type="text" maxlength="128" title="{L_SEARCH_KEYWORDS}" class="inputbox search" value="<!-- IF SEARCH_WORDS-->{SEARCH_WORDS}<!-- ELSE -->{L_SEARCH_MINI}<!-- ENDIF -->" onclick="if(this.value=='{LA_SEARCH_MINI}')this.value='';" onblur="if(this.value=='')this.value='{LA_SEARCH_MINI}';" />
                    <input class="button2" value="{L_SEARCH}" type="submit" /><br />
                </fieldset>
                </form>
                
                
<form action="{U_USERNAME_SEARCH}" method="get" id="username_search">
                <fieldset>
                    <input name="username" id="username" type="text" style="width:95px;" maxlength="128" title="{L_SEARCH_KEYWORDS}" class="inputbox search" value="<!-- IF SEARCH_WORDS-->{SEARCH_WORDS}<!-- ELSE -->{L_USERNAME_SEARCH}<!-- ENDIF -->" onclick="if(this.value=='{LA_USERNAME_SEARCH}')this.value='';" onblur="if(this.value=='')this.value='{LA_USERNAME_SEARCH}';" />
                    <input class="button2" value="{L_SEARCH}" type="submit" /><br />
                    <a href="{U_SEARCH}" title="{L_SEARCH_ADV_EXPLAIN}">{L_SEARCH_ADV}</a> {S_SEARCH_HIDDEN_FIELDS}
                </fieldset>
                </form


clear all caches

_________________
Mod-Bot / Service-Team


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic TOPIC_LOCKED  [ 1 post ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group
[ Time : 0.031s | 22 Queries | GZIP : Off ]