Wie in dem Modulpack 1.8
die Lastwar box konnt ich einfach ersetzen und es ging mit dem Bild, aber bei der Nextwar box geht es net. kann mir jemand helfen?
Das is Dastiacs Nextwar/Box:
<?php # Copyright by: Manuel # Support www.ilch.de defined ('main') or die ( 'no direct access' ); echo '<table width="100%" border="0" cellpadding="2" cellspacing="0">'; $akttime = date('Y-m-d'); $erg = @db_query("SELECT DATE_FORMAT(datime,'%d.%m.%y - %H:%i') as time,oid, id, game FROM prefix_wars WHERE status = 2 AND datime > '".$akttime."' ORDER BY datime LIMIT 5"); if ( @db_num_rows($erg) == 0 ) { echo '<tr><td>kein War geplant</td></tr>'; } else { while ($row = @db_fetch_object($erg) ) { $row->tag = get_opponent_details('tag', $row->oid); $row->gegner = get_opponent_details('name', $row->oid); $row->tag = ( empty($row->tag) ? $row->gegner : $row->tag ); echo '<tr><td>'.get_wargameimg($row->game).'</td>'; echo '<td><a class="box" href="index.php?wars-more-'.$row->id.'">'; echo $row->time.' - '.$row->tag.'</a></td></tr>'; } } echo '</table>'; ?>
und das is die ausm Modulpack 1.8 hier ausm Download-bereich:
<?php # Copyright by Manuel Staechele # Support www.ilch.de defined ('main') or die ( 'no direct access' ); echo '<table width="100%" border="0" cellpadding="2" cellspacing="0">'; $akttime = date('Y-m-d'); $erg = @db_query("SELECT DATE_FORMAT(datime,'%d.%m.%y - %H:%i') as time,tag,gegner, id, game FROM prefix_wars WHERE status = 2 AND datime > '".$akttime."' ORDER BY datime LIMIT 5"); if ( @db_num_rows($erg) == 0 ) { echo '<tr><td>kein War geplant</td></tr>'; } else { while ($row = @db_fetch_object($erg) ) { if (file_exists("include/images/icons/$row->game.gif")){ $game = '<img src="include/images/icons/'.$row->game.'.gif"> '; }else{ $game = ''; } $row->tag = ( empty($row->tag) ? $row->gegner : $row->tag ); echo '<tr><td>'.get_wargameimg($row->game).'</td>'; echo '<td>'.$game.'<a class="box" href="index.php?wars-more-'.$row->id.'">'; echo $row->time.' - '.$row->tag.'</a></td></tr>'; } } echo '</table>'; ?>
verwendete ilchClan Version: 1.1
betroffene Homepage: elite-of-europe.de