CODE
function Block_News() {
global $SDK;
if ($news = $SDK->list_forum_topics($GLOBALS['newsforumid'], array("limit" => $GLOBALS['newslimit'], "order" => "desc"))) {
if (count($news)) {
foreach ($news as $i) {
echo '<p style="margin: 0px;"><strong>'.$i['title'].'</strong><br /> echo $SDK->get_avatar (); Posté par <a href="'.$SDK->board_url.'?showuser='.$i['author_id'].'">'.$i['author_name'].'</a> at <em>'.$SDK->sdk_date($i['post_date'], "M j Y, h:i A").'</em><br /><span style="font-size:8pt;">'.$i['post'].'</span><br /><br />Commentaires: <strong>'.$i['posts'].'</strong> - Views: <strong>'.$i['views'].'</strong> - <a href="'.$boardurl.'?showtopic='.$info['tid'].'">Faire un commentaire</a></p><hr style="color: #c0c0c0;" />';
}
}
}
}
?>
global $SDK;
if ($news = $SDK->list_forum_topics($GLOBALS['newsforumid'], array("limit" => $GLOBALS['newslimit'], "order" => "desc"))) {
if (count($news)) {
foreach ($news as $i) {
echo '<p style="margin: 0px;"><strong>'.$i['title'].'</strong><br /> echo $SDK->get_avatar (); Posté par <a href="'.$SDK->board_url.'?showuser='.$i['author_id'].'">'.$i['author_name'].'</a> at <em>'.$SDK->sdk_date($i['post_date'], "M j Y, h:i A").'</em><br /><span style="font-size:8pt;">'.$i['post'].'</span><br /><br />Commentaires: <strong>'.$i['posts'].'</strong> - Views: <strong>'.$i['views'].'</strong> - <a href="'.$boardurl.'?showtopic='.$info['tid'].'">Faire un commentaire</a></p><hr style="color: #c0c0c0;" />';
}
}
}
}
?>
CODE
echo $SDK->get_avatar ();
A mon avi la balise echo étant déjà ouverte on ne peut pas en ouvrir une nouvelle
