Hallo, Gast! (Registrieren)

Letzte Ankündigung: MyBB 1.8.38 veröffentlicht (30.04.24)


Benutzer, die gerade dieses Thema anschauen: 1 Gast/Gäste
modcp - profileditor
#11
memberlist_search

PHP-Code:
<html>
<
head>
<
title>{$mybb->settings['bbname']} - {$lang->search_member_list}</title>
{
$headerinclude}
</
head>
<
body>
{
$header}
<
form method="post" action="memberlist.php">
<
table border="0" cellspacing="{$theme['borderwidth']}cellpadding="{$theme['tablespace']}class="tborder">
<
tr>
<
td class="thead" colspan="2"><strong>{$lang->search_member_list}</strong></td>
</
tr>
<
tr>
    <td class="tcat" colspan="2"><strong>{$lang->search_criteria}</strong></td>
</
tr>
<
tr>
    <td class="trow1" style="vertical-align: top;" width="20%"><strong><label for="username">{$lang->username}</label></strong></td>
    <td class="trow1">
        <select name="username_match">
            <option value="begins">{$lang->begins_with}</option>
            <option value="contains">{$lang->username_contains}</option>
        </select>
        &nbsp;
        <input type="text" class="textbox" name="username" id="username" />
    </td>
</
tr>
<
tr>
    <td class="trow2" width="20%"><strong><label for="website">{$lang->search_website}</label></strong></td>
    <td class="trow2">
        <input type="text" class="textbox" name="website" id="website" />
    </td>
</
tr>
<
tr>
    <td class="trow1" width="20%"><strong><label for="aim">{$lang->search_aim}</label></strong></td>
    <td class="trow1">
        <input type="text" class="textbox" name="aim" id="aim" />
    </td>
</
tr>
<
tr>
    <td class="trow1" width="20%"><strong><label for="skype">{$lang->search_skype}</label></strong></td>
    <td class="trow1">
        <input type="text" class="textbox" name="skype" id="skype" />
    </td>
</
tr>
<
tr>
    <td class="trow1" width="20%"><strong><label for="google">{$lang->search_google}</label></strong></td>
    <td class="trow1">
        <input type="text" class="textbox" name="google" id="google" />
    </td>
</
tr>
<
tr>
    <td class="trow1" width="20%"><strong><label for="yahoo">{$lang->search_yahoo}</label></strong></td>
    <td class="trow1">
        <input type="text" class="textbox" name="yahoo" id="yahoo" />
    </td>
</
tr>
<
tr>
    <td class="trow1" width="20%"><strong><label for="icq">{$lang->search_icq}</label></strong></td>
    <td class="trow1">
        <input type="text" class="textbox" name="icq" id="icq" />
    </td>
</
tr>
<
tr>
    <td class="tcat" colspan="2"><strong>{$lang->search_options}</strong></td>
</
tr>
<
tr>
    <td class="trow1" width="20%"><strong><label for="sort">{$lang->sort_by}</label></strong></td>
    <td class="trow1">
        <select name="sort" id="sort">
            <option value="username">{$lang->sort_by_username}</option>
            <option value="regdate">{$lang->sort_by_regdate}</option>
            <option value="lastvisit">{$lang->sort_by_lastvisit}</option>
            <option value="postnum">{$lang->sort_by_posts}</option>
            <option value="threadnum">{$lang->sort_by_threads}</option>
            <option value="referrals">{$lang->sort_by_referrals}</option>
        </select><br />
        <span class="smalltext">
        <input type="radio" class="radio" name="order" id="order_asc" value="asc" /> <label for="order_asc">{$lang->order_asc}</label><br />
        <input type="radio" class="radio" name="order" id="order_desc" value="desc" checked="checked" /> <label for="order_desc">{$lang->order_desc}</label>
        </span>
    </td>
</
tr>
<
tr>
    <td class="trow1" width="20%"><strong><label for="perpage">{$lang->per_page}</label></strong></td>
    <td class="trow1">
        <input type="text" class="textbox" size="4" name="perpage" id="perpage" value="15" />
    </td>
</
tr>
</
table>
<
div align="center"><br /><input type="submit" class="button" name="submit" value="{$lang->search}/></div>
</
form>
{
$footer}
<
script type="text/javascript" src="{$mybb->asset_url}/jscripts/select2/select2.min.js?ver=1806"></script>
<
script type="text/javascript">
<!--
if(
use_xmlhttprequest == "1")
{
    MyBB.select2();
    $("#username").select2({
        placeholder"{$lang->search_user}",
        minimumInputLength3,
        maximumSelectionSize3,
        multiplefalse,
        ajax: { // instead of writing the function to execute the request we use Select2's convenient helper
            url"xmlhttp.php?action=get_users",
            dataType'json',
            data: function (termpage) {
                return {
                    queryterm// search term
                };
            },
            results: function (datapage) { // parse the results into the format expected by Select2.
                // since we are using custom formatting functions we do not need to alter remote JSON data
                return {resultsdata};
            }
        },
        initSelection: function(elementcallback) {
            var value = $(element).val();
            if (value !== "") {
                callback({
                    idvalue,
                    textvalue
                
});
            }
        },
       // Allow the user entered text to be selected as well
       createSearchChoice:function(termdata) {
            if ( $(data).filter( function() {
                return this.text.localeCompare(term)===0;
            }).length===0) {
                return {id:termtext:term};
            }
        },
    });

      $('[for=username]').click(function(){
        $("#username").select2('open');
        return false;
    });
}
// -->
</script>
</
body>
</
html

memberlist

PHP-Code:
<html>
<
head>
<
title>{$mybb->settings['bbname']} - {$lang->find_users}</title>
{
$headerinclude}
</
head>
<
body>
    {
$header}
    <
form action="modcp.php?action=finduser" method="post">
        <
table width="100%" border="0" align="center">
            <
tr>
                {
$modcp_nav}
                <
td valign="top">
                    <
table border="0" cellspacing="{$theme['borderwidth']}cellpadding="{$theme['tablespace']}class="tborder">
                        <
tr>
                            <
td class="thead" colspan="5"><strong>{$lang->users}</strong></td>
                        </
tr>
                        <
tr>
                            <
td class="tcat" width="30%"><span class="smalltext"><strong>{$lang->username}</strong></span></td>
                            <
td class="tcat" align="center" width="15%"><span class="smalltext"><strong>{$lang->usergroup}</strong></span></td>
                            <
td class="tcat" align="center" width="15%"><span class="smalltext"><strong>{$lang->regdate}</strong></span></td>
                            <
td class="tcat" align="center" width="15%"><span class="smalltext"><strong>{$lang->lastvisit}</strong></span></td>
                            <
td class="tcat" align="center" width="10%"><span class="smalltext"><strong>{$lang->postnum}</strong></span></td>
                        </
tr>
                        {
$users}
                    </
table>
                    {
$multipage}
                    <
br />
                    <
table border="0" cellspacing="{$theme['borderwidth']}cellpadding="{$theme['tablespace']}class="tborder">
                        <
tr>
                            <
td class="thead" colspan="2"><strong>{$lang->find_users}</strong></td>
                        </
tr>
                        <
tr>
                            <
td class="trow1" width="25%"><strong>{$lang->username_contains}</strong></td>
                            <
td class="trow1" width="75%"><input type="text" name="username" id="username" value="{$mybb->input['username']}class="textbox" /></td>
                        </
tr>
                        <
tr>
                            <
td class="trow1" width="25%"><strong>{$lang->sort_by}</strong></td>
                            <
td class="trow1" width="75%">
                                <
select name="sortby">
                                    <
option value="username"{$sortbysel['username']}>{$lang->username}</option>
                                    <
option value="regdate"{$sortbysel['regdate']}>{$lang->regdate}</option>
                                    <
option value="lastvisit"{$sortbysel['lastvisit']}>{$lang->lastvisit}</option>
                                    <
option value="postnum"{$sortbysel['postnum']}>{$lang->postnum}</option>
                                </
select>
                                {
$lang->in}
                                <
select name="order">
                                    <
option value="asc"{$ordersel['asc']}>{$lang->asc}</option>
                                    <
option value="desc"{$ordersel['desc']}>{$lang->desc}</option>
                                </
select>
                                {
$lang->order}
                            </
td>
                        </
tr>
                    </
table>
                    <
br />
                    <
div align="center">
                        <
input type="submit" class="button" value="{$lang->find_users}/>
                    </
div>
                </
td>
            </
tr>
        </
table>
    </
form>
{
$footer}
<
script type="text/javascript" src="{$mybb->asset_url}/jscripts/select2/select2.min.js?ver=1806"></script>
<
script type="text/javascript">
<!--
if(
use_xmlhttprequest == "1")
{
    
MyBB.select2();
    $(
"#username").select2({
        
placeholder"{$lang->find_users}",
        
minimumInputLength3,
        
maximumSelectionSize3,
        
multiplefalse,
        
ajax: { // instead of writing the function to execute the request we use Select2's convenient helper
            
url"xmlhttp.php?action=get_users",
            
dataType'json',
            
data: function (termpage) {
                return {
                    
queryterm// search term
                
};
            },
            
results: function (datapage) { // parse the results into the format expected by Select2.
                // since we are using custom formatting functions we do not need to alter remote JSON data
                
return {resultsdata};
            }
        },
        
initSelection: function(elementcallback) {
            var 
value = $(element).val();
            if (
value !== "") {
                
callback({
                    
idvalue,
                    
textvalue
                
});
            }
        }
    });
}
// -->
</script>
</
body>
</
html

modcp_finduser

PHP-Code:
<html>
<
head>
<
title>{$mybb->settings['bbname']} - {$lang->find_users}</title>
{
$headerinclude}
</
head>
<
body>
    {
$header}
    <
form action="modcp.php?action=finduser" method="post">
        <
table width="100%" border="0" align="center">
            <
tr>
                {
$modcp_nav}
                <
td valign="top">
                    <
table border="0" cellspacing="{$theme['borderwidth']}cellpadding="{$theme['tablespace']}class="tborder">
                        <
tr>
                            <
td class="thead" colspan="5"><strong>{$lang->users}</strong></td>
                        </
tr>
                        <
tr>
                            <
td class="tcat" width="30%"><span class="smalltext"><strong>{$lang->username}</strong></span></td>
                            <
td class="tcat" align="center" width="15%"><span class="smalltext"><strong>{$lang->usergroup}</strong></span></td>
                            <
td class="tcat" align="center" width="15%"><span class="smalltext"><strong>{$lang->regdate}</strong></span></td>
                            <
td class="tcat" align="center" width="15%"><span class="smalltext"><strong>{$lang->lastvisit}</strong></span></td>
                            <
td class="tcat" align="center" width="10%"><span class="smalltext"><strong>{$lang->postnum}</strong></span></td>
                        </
tr>
                        {
$users}
                    </
table>
                    {
$multipage}
                    <
br />
                    <
table border="0" cellspacing="{$theme['borderwidth']}cellpadding="{$theme['tablespace']}class="tborder">
                        <
tr>
                            <
td class="thead" colspan="2"><strong>{$lang->find_users}</strong></td>
                        </
tr>
                        <
tr>
                            <
td class="trow1" width="25%"><strong>{$lang->username_contains}</strong></td>
                            <
td class="trow1" width="75%"><input type="text" name="username" id="username" value="{$mybb->input['username']}class="textbox" /></td>
                        </
tr>
                        <
tr>
                            <
td class="trow1" width="25%"><strong>{$lang->sort_by}</strong></td>
                            <
td class="trow1" width="75%">
                                <
select name="sortby">
                                    <
option value="username"{$sortbysel['username']}>{$lang->username}</option>
                                    <
option value="regdate"{$sortbysel['regdate']}>{$lang->regdate}</option>
                                    <
option value="lastvisit"{$sortbysel['lastvisit']}>{$lang->lastvisit}</option>
                                    <
option value="postnum"{$sortbysel['postnum']}>{$lang->postnum}</option>
                                </
select>
                                {
$lang->in}
                                <
select name="order">
                                    <
option value="asc"{$ordersel['asc']}>{$lang->asc}</option>
                                    <
option value="desc"{$ordersel['desc']}>{$lang->desc}</option>
                                </
select>
                                {
$lang->order}
                            </
td>
                        </
tr>
                    </
table>
                    <
br />
                    <
div align="center">
                        <
input type="submit" class="button" value="{$lang->find_users}/>
                    </
div>
                </
td>
            </
tr>
        </
table>
    </
form>
{
$footer}
<
script type="text/javascript" src="{$mybb->asset_url}/jscripts/select2/select2.min.js?ver=1806"></script>
<
script type="text/javascript">
<!--
if(
use_xmlhttprequest == "1")
{
    
MyBB.select2();
    $(
"#username").select2({
        
placeholder"{$lang->find_users}",
        
minimumInputLength3,
        
maximumSelectionSize3,
        
multiplefalse,
        
ajax: { // instead of writing the function to execute the request we use Select2's convenient helper
            
url"xmlhttp.php?action=get_users",
            
dataType'json',
            
data: function (termpage) {
                return {
                    
queryterm// search term
                
};
            },
            
results: function (datapage) { // parse the results into the format expected by Select2.
                // since we are using custom formatting functions we do not need to alter remote JSON data
                
return {resultsdata};
            }
        },
        
initSelection: function(elementcallback) {
            var 
value = $(element).val();
            if (
value !== "") {
                
callback({
                    
idvalue,
                    
textvalue
                
});
            }
        }
    });
}
// -->
</script>
</
body>
</
html
Mit freundlichen Grüßen



Für etwaige Tipps, Vorschläge oder Anleitungen von mir gebe ich keine Gewähr. Die Durchführung erfolgt auf eigene Gefahr!
Zitieren
#12
so da ich so viele antworten bekommen habe, hier die lösung:

modcp.php

suche:

PHP-Code:
$mybb->input[$field] = urlencode($mybb->get_input($field)); 

zeile löschen...
Mit freundlichen Grüßen



Für etwaige Tipps, Vorschläge oder Anleitungen von mir gebe ich keine Gewähr. Die Durchführung erfolgt auf eigene Gefahr!
Zitieren


Möglicherweise verwandte Themen…
Thema Verfasser Antworten Ansichten Letzter Beitrag
  modcp Fehlermeldung ARRAY stefius 3 1.330 29.06.2019, 05:31
Letzter Beitrag: stefius
  MyBB Internal auf modcp.php?action=reports ps915 2 1.881 29.09.2017, 15:12
Letzter Beitrag: ps915
  editor modcp hkkp 2 1.725 07.06.2016, 18:26
Letzter Beitrag: hkkp