RE: Mitgliederliste erweitern - Tanja S - 04.05.2015
(02.01.2014, 12:18)MrBrechreiz schrieb: Öddne die Datei memberlist.php und Suche nach
PHP-Code: $user['regdate'] = my_date($mybb->settings['dateformat'], $user['regdate']).", ".my_date($mybb->settings['timeformat'], $user['regdate']);
Füge darüber folgendes ein.
PHP-Code: // START eMail und PN-Button $post['uid'] = $user['uid']; $emailcode = $pmcode = ''; if($user['hideemail'] != 1) { eval("\$emailcode = \"".$templates->get("postbit_email")."\";"); } if($user['receivepms'] != 0 && $mybb->settings['enablepms'] != 0 && my_strpos(",".$user['ignorelist'].",", ",".$mybb->user['uid'].",") === false) { eval("\$pmcode = \"".$templates->get("postbit_pm")."\";"); } // ENDE eMail und PN-Button
finde dies in meiner php nicht
RE: Mitgliederliste erweitern - hkkp - 04.05.2015
(04.05.2015, 13:21)Tanja S schrieb: (02.01.2014, 12:18)MrBrechreiz schrieb: Öddne die Datei memberlist.php und Suche nach
PHP-Code: $user['regdate'] = my_date($mybb->settings['dateformat'], $user['regdate']).", ".my_date($mybb->settings['timeformat'], $user['regdate']);
Füge darüber folgendes ein.
PHP-Code: // START eMail und PN-Button $post['uid'] = $user['uid']; $emailcode = $pmcode = ''; if($user['hideemail'] != 1) { eval("\$emailcode = \"".$templates->get("postbit_email")."\";"); } if($user['receivepms'] != 0 && $mybb->settings['enablepms'] != 0 && my_strpos(",".$user['ignorelist'].",", ",".$mybb->user['uid'].",") === false) { eval("\$pmcode = \"".$templates->get("postbit_pm")."\";"); } // ENDE eMail und PN-Button
finde dies in meiner php nicht
RE: Mitgliederliste erweitern - Tanja S - 04.05.2015
danke
hat geklapt schaut nun so aus leer sehe anhang kreutze
weiss du auch wie mann das geburtssatum eventuell so hin bekommt
12.04.1988 oder 12.April.1988
oder was besser wäre nur das alter
vielen dank
RE: Mitgliederliste erweitern - hkkp - 04.05.2015
Jetzt öffnest Du das Template -> Benutzerliste Templates -> memberlist_user
und fügst über
Code: <td class="{$alt_bg}" align="center">{$user['regdate']}</td>
folgendes ein:
Code: <td class="{$alt_bg}" align="center">{$emailcode}</td>
<td class="{$alt_bg}" align="center">{$pmcode}</td>
Nun noch in das memberlist Template:
suche:
Code: <td class="thead" colspan="6">
mache aus der 6,7 oder was auch immer eine 11
suche weiter nach:
Code: <td class="tcat"><span class="smalltext"><strong>{$lang->username}</strong></span></td>
und füge darunter dies ein:
Code: <td class="tcat" width="15%" align="center"><span class="smalltext"><strong>Email</strong></span></td>
<td class="tcat" width="10%" align="center"><span class="smalltext"><strong>PM</strong></span></td>
an dem anderen bin ich selber am probieren noch.
RE: Mitgliederliste erweitern - Tanja S - 04.05.2015
hab ich alles aber wie gesagt sieht so aus wie auf den Screen
RE: Mitgliederliste erweitern - hkkp - 04.05.2015
deine buttons sind aber nicht zufällig weiss oder so?
poste mal deine templates....
RE: Mitgliederliste erweitern - Tanja S - 04.05.2015
www.lucky-kids.net
eigentlcih nicht
memberlist
Code: [b]<html>
[/b]
[b]<head>
[/b]
[b]<title>{$mybb->settings['bbname']} - {$lang->member_list}</title>
[/b]
[b]{$headerinclude}
[/b]
[b]</head>
[/b]
[b]<body>
[/b]
[b]{$header}
[/b]
[b]{$multipage}
[/b]
[b]<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
[/b]
[b]<tr>
[/b]
[b]<td class="thead" colspan="11">
[/b]
[b] <div class="float_right">
[/b]
[b] <a href="memberlist.php?username_match=begins&username={$lang->a}" style="padding: 5px;">{$lang->a}</a>
[/b]
[b] <a href="memberlist.php?username_match=begins&username={$lang->b}" style="padding: 5px;">{$lang->b}</a>
[/b]
[b] <a href="memberlist.php?username_match=begins&username={$lang->c}" style="padding: 5px;">{$lang->c}</a>
[/b]
[b] <a href="memberlist.php?username_match=begins&username={$lang->d}" style="padding: 5px;">{$lang->d}</a>
[/b]
[b] <a href="memberlist.php?username_match=begins&username={$lang->e}" style="padding: 5px;">{$lang->e}</a>
[/b]
[b] <a href="memberlist.php?username_match=begins&username={$lang->f}" style="padding: 5px;">{$lang->f}</a>
[/b]
[b] <a href="memberlist.php?username_match=begins&username={$lang->g}" style="padding: 5px;">{$lang->g}</a>
[/b]
[b] <a href="memberlist.php?username_match=begins&username={$lang->h}" style="padding: 5px;">{$lang->h}</a>
[/b]
[b] <a href="memberlist.php?username_match=begins&username={$lang->i}" style="padding: 5px;">{$lang->i}</a>
[/b]
[b] <a href="memberlist.php?username_match=begins&username={$lang->j}" style="padding: 5px;">{$lang->j}</a>
[/b]
[b] <a href="memberlist.php?username_match=begins&username={$lang->k}" style="padding: 5px;">{$lang->k}</a>
[/b]
[b] <a href="memberlist.php?username_match=begins&username={$lang->l}" style="padding: 5px;">{$lang->l}</a>
[/b]
[b] <a href="memberlist.php?username_match=begins&username={$lang->m}" style="padding: 5px;">{$lang->m}</a>
[/b]
[b] <a href="memberlist.php?username_match=begins&username={$lang->n}" style="padding: 5px;">{$lang->n}</a>
[/b]
[b] <a href="memberlist.php?username_match=begins&username={$lang->o}" style="padding: 5px;">{$lang->o}</a>
[/b]
[b] <a href="memberlist.php?username_match=begins&username={$lang->p}" style="padding: 5px;">{$lang->p}</a>
[/b]
[b] <a href="memberlist.php?username_match=begins&username={$lang->q}" style="padding: 5px;">{$lang->q}</a>
[/b]
[b] <a href="memberlist.php?username_match=begins&username={$lang->r}" style="padding: 5px;">{$lang->r}</a>
[/b]
[b] <a href="memberlist.php?username_match=begins&username={$lang->s}" style="padding: 5px;">{$lang->s}</a>
[/b]
[b] <a href="memberlist.php?username_match=begins&username={$lang->t}" style="padding: 5px;">{$lang->t}</a>
[/b]
[b] <a href="memberlist.php?username_match=begins&username={$lang->u}" style="padding: 5px;">{$lang->u}</a>
[/b]
[b] <a href="memberlist.php?username_match=begins&username={$lang->v}" style="padding: 5px;">{$lang->v}</a>
[/b]
[b] <a href="memberlist.php?username_match=begins&username={$lang->w}" style="padding: 5px;">{$lang->w}</a>
[/b]
[b] <a href="memberlist.php?username_match=begins&username={$lang->x}" style="padding: 5px;">{$lang->x}</a>
[/b]
[b] <a href="memberlist.php?username_match=begins&username={$lang->y}" style="padding: 5px;">{$lang->y}</a>
[/b]
[b] <a href="memberlist.php?username_match=begins&username={$lang->z}" style="padding: 5px;">{$lang->z}</a>
[/b]
[b] </div>
[/b]
[b] <div><strong>{$lang->member_list}</strong></div></td>
[/b]
[b]</tr>
[/b]
[b]<tr>
[/b]
[b]<td class="tcat" width="1%"><span class="smalltext"><strong>{$lang->avatar}</strong></span></td>
[/b]
[b]<td class="tcat"><span class="smalltext"><a href="{$sorturl}&sort=username&order=ascending"><strong>{$lang->username}</strong></a> {$orderarrow['username']}</span></td>
[/b]
[b] <td class="tcat" width="15%" align="center"><span class="smalltext"><strong>Email</strong></span></td>
[/b]
[b] <td class="tcat" width="10%" align="center"><span class="smalltext"><strong>PM</strong></span></td>
[/b]
[b]<td class="tcat" width="15%" align="center"><span class="smalltext"><a href="{$sorturl}&sort=regdate&order=ascending"><strong>{$lang->joined}</strong></a> {$orderarrow['regdate']}</span></td>
[/b]
[b]<td class="tcat" width="15%" align="center"><span class="smalltext"><a href="{$sorturl}&sort=lastvisit&order=descending"><strong>{$lang->lastvisit}</strong></a> {$orderarrow['lastvisit']}</span></td>
[/b]
[b]<td class="tcat" width="10%" align="center"><span class="smalltext"><a href="{$sorturl}&sort=postnum&order=descending"><strong>{$lang->posts}</strong></a> {$orderarrow['postnum']}</span></td>
[/b]
[b]<td class="tcat" width="10%" align="center"><span class="smalltext"><strong>Wohnort</strong></span></td>
[/b]
[b]<td class="tcat" width="10%" align="center"><span class="smalltext"><strong>Geschlecht</strong></span></td>
[/b]
[b]<td class="tcat" width="10%" align="center"><span class="smalltext"><strong>Realname</strong></span></td>
[/b]
[b]<td class="tcat" width="10%" align="center"><span class="smalltext"><strong>Geburtstag</strong></span></td>
[/b]
[b]</tr>
[/b]
[b]{$users}
[/b]
[b]</table>
[/b]
[b]<div class="float_right" style="padding-top: 4px;">
[/b]
[b] <a href="showteam.php"><strong>{$lang->forumteam}</strong></a>
[/b]
[b]</div>
[/b]
[b]{$multipage}
[/b]
[b]<br class="clear" />
[/b]
[b]<br />
[/b]
[b]<form method="post" action="memberlist.php">
[/b]
[b]<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
[/b]
[b]<tr>
[/b]
[b]<td class="thead" colspan="3">
[/b]
[b] <div class="float_right">
[/b]
[b] <strong><a href="memberlist.php?action=search">{$lang->advanced_search}</a></strong>
[/b]
[b] </div>
[/b]
[b] <div><strong>{$lang->search_members}</strong></div>
[/b]
[b]</td>
[/b]
[b]</tr>
[/b]
[b]<tr>
[/b]
[b] <td class="tcat"><strong><label for="username">{$lang->username}</label></strong></td>
[/b]
[b] <td class="tcat"><strong><label for="website">{$lang->website}</label></strong></td>
[/b]
[b] <td class="tcat"><strong><label for="sort">{$lang->sort_by}</label></strong></td>
[/b]
[b]</tr>
[/b]
[b]<tr>
[/b]
[b] <td class="trow1" width="33%" style="vertical-align: top;">
[/b]
[b] {$lang->contains}<br />
[/b]
[b] <input type="text" class="textbox" name="username" id="username" style="width: 99%; margin-top: 4px;" value="{$search_username}" />
[/b]
[b] </td>
[/b]
[b] <td class="trow1" width="33%" style="vertical-align: top;">
[/b]
[b] {$lang->contains}<br />
[/b]
[b] <input type="text" class="textbox" name="website" id="website" style="width: 99%; margin-top: 4px;" value="{$search_website}" />
[/b]
[b] </td>
[/b]
[b] <td class="trow1" width="33%">
[/b]
[b] <div class="smalltext" style="margin-bottom: 3px;">
[/b]
[b] <input type="radio" class="radio" name="order" id="order_asc" value="ascending"{$order_check['ascending']} /> <label for="order_asc">{$lang->order_asc}</label>
[/b]
[b] <input type="radio" class="radio" name="order" id="order_desc" value="descending"{$order_check['descending']} /> <label for="order_desc">{$lang->order_desc}</label>
[/b]
[b] </div>
[/b]
[b] <select name="sort" id="sort" style="width: 99%;">
[/b]
[b] <option value="username"{$sort_selected['username']}>{$lang->sort_by_username}</option>
[/b]
[b] <option value="regdate"{$sort_selected['regdate']}>{$lang->sort_by_regdate}</option>
[/b]
[b] <option value="lastvisit"{$sort_selected['lastvisit']}>{$lang->sort_by_lastvisit}</option>
[/b]
[b] <option value="postnum"{$sort_selected['postnum']}>{$lang->sort_by_posts}</option>
[/b]
[b] <option value="threadnum"{$sort_selected['threadnum']}>{$lang->sort_by_threads}</option>
[/b]
[b] <option value="referrals"{$sort_selected['referrals']}>{$lang->sort_by_referrals}</option>
[/b]
[b] </select>
[/b]
[b] </td>
[/b]
[b]</tr>
[/b]
[b]</table>
[/b]
[b]<div align="center"><br /><input type="submit" class="button" name="submit" value="{$lang->search}" /></div>
[/b]
[b]</form>
[/b]
[b]{$footer}
[/b]
[b]<link rel="stylesheet" href="{$mybb->asset_url}/jscripts/select2/select2.css">
[/b]
[b]<script type="text/javascript" src="{$mybb->asset_url}/jscripts/select2/select2.min.js?ver=1804"></script>
[/b]
[b]<script type="text/javascript">
[/b]
[b]<!--
[/b]
[b]if(use_xmlhttprequest == "1")
[/b]
[b]{
[/b]
[b] MyBB.select2();
[/b]
[b] $("#username").select2({
[/b]
[b] placeholder: "{$lang->search_user}",
[/b]
[b] minimumInputLength: 3,
[/b]
[b] maximumSelectionSize: 3,
[/b]
[b] multiple: false,
[/b]
[b] ajax: { // instead of writing the function to execute the request we use Select2's convenient helper
[/b]
[b] url: "xmlhttp.php?action=get_users",
[/b]
[b] dataType: 'json',
[/b]
[b] data: function (term, page) {
[/b]
[b] return {
[/b]
[b] query: term, // search term
[/b]
[b] };
[/b]
[b] },
[/b]
[b] results: function (data, page) { // parse the results into the format expected by Select2.
[/b]
[b] // since we are using custom formatting functions we do not need to alter remote JSON data
[/b]
[b] return {results: data};
[/b]
[b] }
[/b]
[b] },
[/b]
[b] initSelection: function(element, callback) {
[/b]
[b] var value = $(element).val();
[/b]
[b] if (value !== "") {
[/b]
[b] callback({
[/b]
[b] id: value,
[/b]
[b] text: value
[/b]
[b] });
[/b]
[b] }
[/b]
[b] },
[/b]
[b] // Allow the user entered text to be selected as well
[/b]
[b] createSearchChoice:function(term, data) {
[/b]
[b] if ( $(data).filter( function() {
[/b]
[b] return this.text.localeCompare(term)===0;
[/b]
[b] }).length===0) {
[/b]
[b] return {id:term, text:term};
[/b]
[b] }
[/b]
[b] },
[/b]
[b] });
[/b]
[b] $('[for=username]').click(function(){
[/b]
[b] $("#username").select2('open');
[/b]
[b] return false;
[/b]
[b] });
[/b]
[b]}
[/b]
[b]// -->
[/b]
[b]</script>
[/b]
[b]</body>
[/b]
[b]</html>[/b]
memberlist_user
Code: <tr>
<td class="{$alt_bg}" align="center">{$user['avatar']}</td>
<td class="{$alt_bg}">{$user['profilelink']}<br />
<span class="smalltext">
{$user['usertitle']}<br />
{$usergroup['groupimage']}
{$user['userstars']}
</span></td>
<td class="{$alt_bg}" align="center">{$emailcode}</td>
<td class="{$alt_bg}" align="center">{$pmcode}</td>
<td class="{$alt_bg}" align="center">{$user['regdate']}</td>
<td class="{$alt_bg}" align="center">{$user['lastvisit']}</td>
<td class="{$alt_bg}" align="center">{$user['postnum']}</td>
<td class="{$alt_bg}" align="center">{$user['fid1']} </td>
<td class="{$alt_bg}" align="center">{$user['fid3']} </td>
<td class="{$alt_bg}" align="center">{$user['fid4']} </td>
<td class="{$alt_bg}" align="center">{$user['birthday']}</td>
</tr>
RE: Mitgliederliste erweitern - hkkp - 04.05.2015
stehen in der memberlist wirklich diese <b> un </b> überall?
RE: Mitgliederliste erweitern - Tanja S - 04.05.2015
nein
hab den code falsch eingesteut weil ich memberlist
hier fett gemacht habe
RE: Mitgliederliste erweitern - hkkp - 04.05.2015
mach mal aus der 11 eine 12 und verringere in der memberlist auch für pn und mail den wert von 15 und 10% jeweils auf 5%
|