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:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
|
-------------------------------
4) Die Datei "index.php ändern.
-------------------------------
4.1)
------
SUCHE:
------
/* ############## BIRTHDAYS ############## */
unset($birthdaybit);
if ($showbirthdays == 1 && $wbbuserdata['can_view_calendar'] != 0) {
$currentdate = formatdate("m-d", time());
$currentyear = intval(formatdate("Y", time()));
$result = $db->unbuffered_query("SELECT userid, username, birthday FROM bb".$n."_users WHERE birthday LIKE '%-$currentdate' ORDER BY username ASC");
while ($row = $db->fetch_array($result)) {
$row['username'] = htmlconverter($row['username']);
$birthyear = intval(wbb_substr($row['birthday'], 0, 4));
$age = $currentyear - $birthyear;
if ($age < 1 || $age > 200) $age = '';
else $age = " ($age)";
if (isset($birthdaybit)) eval("\$birthdaybit .= \"".$tpl->get("index_birthdaybit")."\";");
else eval("\$birthdaybit = \"".$tpl->get("index_birthdaybit")."\";");
}
}
-----------------
FÜGE DARUNTER EIN:
-----------------
/* VGGeburtstag */
if ($showbirthdays == 1 && $wbbuserdata['can_view_calendar'] != 0) {
$currentdate = formatdate("m-d", time());
$currentyear = intval(formatdate("Y", time()));
$result = $db->unbuffered_query("SELECT * FROM bb".$n."_vg_geburtstag WHERE gebday LIKE '%-$currentdate' ORDER BY gebname ASC");
while ($row = $db->fetch_array($result)) {
$row['gebname'] = htmlconverter($row['gebname']);
$birthyear = intval(wbb_substr($row['gebday'], 0, 4));
$age = $currentyear - $birthyear;
if ($age < 1 || $age > 200) $age = '';
else $age = " ($age)";
if (isset($birthdaybit)) eval("\$birthdaybit .= \"".$tpl->get("vg_geburtstag_index_birthdaybit")."\";");
else eval("\$birthdaybit = \"".$tpl->get("vg_geburtstag_index_birthdaybit")."\";");
}
}
/* VGGeburtstag */
|