Ciao a tutti, ho visto discussioni simile nel forum ma non sono riuscito a risolvere il problema che adesso vi dico.... Qui sotto riporto un pezzo di codice funzionante inserito nel file theme.html del mio tema xoops.
<div id="header" class="inside">
<!--Accessible Page Navigation (Hided by css specification) -
The link content has to be contextualized with the site navigation-->
<table width="990" border="0">
<tr>
<td>
<{php}>echo getbanner_from_id_banner(39);<{/php}>
</td>
<td>
<{php}>
$banner = rand(1,3);
if($banner == 1)
echo getbanner_from_id_banner(54);
else if($banner == 2)
echo getbanner_from_id_banner(63);
else
echo getbanner_from_id_banner(65);
<{/php}>
</td>
</tr>
</table>
</div>
<hr class="hide"/>
<hr size="1" noshade="noshade" class="hide" />
Adesso per rendere più semplice la gestione, vorrei inserire questa parte all'interno di un file banner.php nella stessa cartella del file sopracitato theme.html.
$banner = rand(1,3);
if($banner == 1)
echo getbanner_from_id_banner(54);
else if($banner == 2)
echo getbanner_from_id_banner(63);
else
echo getbanner_from_id_banner(65);
ciao a tutti e grazie in anticipo per l'aiuto.