Ich habe das Addon:
|
PHP-Quelltext
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
<?php
$phpkit_status=phpkitstatus();
if (is_array($phpkit_status['bd_user'])) {
unset($bd_user);
foreach($phpkit_status['bd_user'] as $status) {
unset($age);
$age=getAge($status['user_bd_day'],$status['user_bd_month'],$status['user_bd_year']);
if ($bd_user=="") {$bd_user.="<a href=\"include.php?path=login/userinfo.php&id=$status[user_id]\">$status[user_nick]</a> (".$age.")";}
else {$bd_user.= ", <a href=\"include.php?path=login/userinfo.php&id=$status[user_id]\">$status[user_nick]</a> ($age)";}
}
if ($bd_user!="") {eval ("\$site_body.= \"".templateinclude("geburtstag")."\";"); }
}
?>
|
das zeigt mir auf der Startseite an, wenn User Geburtstag haben. Ich würde jedoch auch das jeweilige Avatar anzeigen lassen und habe da folgendes gebastelt:
|
PHP-Quelltext
|
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
|
<?php
$phpkit_status = phpkitstatus();
if (is_array($phpkit_status['bd_user'])) {
unset($bd_user);
foreach($phpkit_status['bd_user'] as $status) {
unset($age);
$age = getAge($status['user_bd_day'],$status['user_bd_month'],$status['user_bd_year']);
if ($config['avatar_eod'] != 0 && $status['user_avatar'] != "" && filecheck($config['avatar_path'].'/'.$status['user_avatar'])) {
$bd_user .= "
<table width='100' height='100' border='0'>
<tr>
<td align='center'><a href='include.php?path=login/userinfo.php&id=".$status[user_id]."'>".$status[user_nick]."</a> ($age)</td>
</tr>
<tr>
<td align='center'><a href='include.php?path=login/userinfo.php&id=".$status[user_id]."'><img src='".$config['avatar_path']."/".$status['user_avatar']."' border='0' alt='".$status[user_nick]."'></a></td>
<tr>
</table>
";
}
else {
$bd_user .= $status['user_avatar'] ."
<table width='100' height='100' border='0'>
<tr>
<td align='center'><a href='include.php?path=login/userinfo.php&id=".$status[user_id]."'>".$status[user_nick]."</a> ($age)</td>
</tr>
<tr>
<td align='center'></td>
<tr>
</table>
";
}
}
if ($bd_user != "") { eval ("\$site_body.= \"".templateinclude("geburtstag")."\";"); }
}
?>
|
nur bei dem zeigt er mir die Avatare nicht an ?!
Edit by Headless @ 2007-12-26 | 18:22:
Bitte verwende beim posten von "PHPCode" auch den BB-Code PHP - THX
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »Uwee« (26. Dezember 2007, 18:25)