1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
| 1. / 2. / ...
In mods/members/manage.php
Zeile 29: Ändere in
$select = 'mem.members_admin AS members_admin, mem.users_id AS users_id, mem.squads_id AS squads_id, mem.members_order AS members_order, usr.users_age AS users_age, usr.users_nick AS users_nick, usr.users_active AS users_active, usr.users_delete AS users_delete, sqd.squads_name AS squads_name, mem.members_id AS members_id';
(Es wurde ein "usr.users_age AS users_age," hinzugefügt)
Einfügen NACH Zeile 50:
if(!empty($cs_members[$run]['users_age'])){
$gebdate = explode("-", $cs_members[$run]['users_age']);
$tag = $gebdate[2];
$monat = $gebdate[1];
$jahr = $gebdate[0];
$jetzt = mktime(0,0,0,date("m"),date("d"),date("Y"));
$geburt = mktime(0,0,0,$monat,$tag,$jahr);
$age = intval(($jetzt - $geburt) / (3600 * 24 * 365));
$data['members'][$run]['age'] = $age;
}elseif(empty($cs_members[$run]['users_age'])){
$data['members'][$run]['age'] = "-";
}
In themes/members/manage.tpl
Einfügen NACH Zeile 16:
<td class="headb"><center>{lang:age}</center></td>
Einfügen NACH Zeile 26:
<td class="leftc"><center>{members:age}</center></td>
In lang/German/members.php
Einfügen an das Ende der Datei (ca. Zeile 85):
$cs_lang['age'] = 'Alter';
|