Menü

  Login

  Shoutbox

  Forum » Fragen zu Ilch » Andere Dinge » Awards im Profil


Awards im Profil
Don Alex
Gast

User Pic

# 03.01.2010 - 03:09:17
    zitieren



es geht um das Thema:

http://www.ilch.de/forum-showposts-29120-p3.html#278643

 Code
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
    1.
      function profilefields_show_spez_awards($value, $uid) {
   2.
      $output = ''; 
   3.
      $sql = db_query("SELECT a.platz, a.text, a.wofur, a.team, a.bild, DATE_FORMAT(a.`time`, '%d.%m.%Y') AS time FROM `prefix_awards` a INNER JOIN prefix_user b ON a.team = b.name WHERE b.id = $uid ORDER BY `time` DESC");
   4.
          while($row = db_fetch_assoc($sql) ) {
   5.
              $output .= (!empty($row['bild']) ? '<img src="'.$row['bild'].'" alt="'.$row['wofur'].'" title="'.$row['wofur'].'"/>' : $row['wofur']).'<br /><font class="smalfont">'.$row['time'].'</font><br />';
   6.
          }
   7.
          return profilefields_show_echo_standart( 'Awards', $output);
   8.
      }


Kannst du mir den Code Abändern, das man alle Infos, so wie im der "normalen" index.php?awards sieht?

Hier der Code der awards.php

 Code
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:
 
<?php
#   Copyright by: Manuel
#   Support: www.ilch.de


defined ('main') or die ( 'no direct access' );

$title = $allgAr['title'].' :: Awards';
$hmenu = 'Awards';
$design = new design ( $title , $hmenu );
$design->header();

$tpl = new tpl ( 'awards.htm' );
$tpl->out(0);
$class = 'Cnorm';
$erg = db_query("SELECT platz, text, wofur, team, bild, DATE_FORMAT(time, '%d.%m.%Y') as time FROM `prefix_awards` ORDER BY time DESC");
while($row = db_fetch_assoc($erg) ) {
  $class = ( $class == 'Cmite' ? 'Cnorm' : 'Cmite' );
  if ($row['bild'] != '' AND trim($row['bild']) != 'http://') {
    $row['bildutime'] = '<span style="float: left; margin-right: 10px;"><img src="'.$row['bild'].'" alt="'.$row['wofur'].'" title="'.$row['wofur'].'"/><br /><font class="smalfont">'.$row['time'].'</font></span><br />';
  } else {
    $row['bildutime'] = $lang['date'].': '.$row['time'].'<br />';
  }
   $row['class'] = $class;
   $tpl->set_ar_out($row,1);

}
$tpl->out(2);

$design->footer();

?>


vielen DANK!