Forumlar / Cotonti / Extensions / Support / XSAffiliates, show more then 1 random image in index.tpl

DemptD
#16602 2009-08-30 22:04
How can i do that?

Heres xsaff.index.php:

if (!defined('SED_CODE')) { die('Wrong URL.'); }
$sqlxsaff = sed_sql_query("SELECT * FROM $db_xsaff_aff WHERE aff_active='1' ORDER BY RAND() LIMIT 0,1");
$rowxsaff = sed_sql_fetcharray($sqlxsaff);

$t->assign("XSAFF_IMAGES", "<div class='centerall'><a href='plug.php?e=xsaff&m=redirect&id=".$rowxsaff['aff_id']."'><img src='plugins/xsaff/affimg/".sed_cc($rowxsaff['aff_img'])."' style='width:88px;height:31px;border:0px' alt='".sed_cc($rowxsaff['aff_desc'])."' /></a></div>");

?>