Salve. Ho installato il vostro plugin Sourcerer-v2.4.2.zip ...
Devo inserire questo codice PHP che richiama altri due file PHP:
<?php
if (isset($_GET['num_adsense']))
{
$num_adsense = $_GET['num_adsense']; }
else
{
$num_adsense = '1'; }
$num_adsense = rand(1,2);
switch($num_adsense) {
case '1': include("Banner_GAT_336x280px.php");
break;
case '2': include("Banner_IgorScarabello_336x280px.php");
break; }
?>
I due file PHP richiamati sono pagine con i codici di Adsense ...
Per inserirlo nei miei articoli, ho cliccato sul tasto INSERT CODE e così è uscito così:
{source}<span style="font-family: courier new, courier, monospace;"><br /><span><</span>?php<br />if (isset($_GET['num_adsense']))<br />{<br /><img src="plugins/editors-xtd/sourcerer/images/tab.png" border="0" alt=" " />$num_adsense = $_GET['num_adsense']; }<br />else<br />{<br /><img src="plugins/editors-xtd/sourcerer/images/tab.png" border="0" alt=" " />$num_adsense = '1'; }<br />$num_adsense = rand(1,2);<br />switch($num_adsense) {<br /><img src="plugins/editors-xtd/sourcerer/images/tab.png" border="0" alt=" " />case '1': include("Banner_GAT_336x280px.php");<br /><img src="plugins/editors-xtd/sourcerer/images/tab.png" border="0" alt=" " />break;<br /><img src="plugins/editors-xtd/sourcerer/images/tab.png" border="0" alt=" " />case '2': include("Banner_IgorScarabello_336x280px.php");<br /><img src="plugins/editors-xtd/sourcerer/images/tab.png" border="0" alt=" " />break; }<br />?<span>></span><br /></span>{/source}
Salvo l'articolo. Lo pubblico ......... ma l'articolo non viene caricato ... Tolgo il codice, e l'articolo funziona, ma ovviamente senza l'effetto voluto ...
Perchè?