Home » Forum
NoNumber!

Joomla!® Websites & Extensions
development  -  support  -  consultancy

I try to respond within 48 hours (excluding weekends).
If I haven't responded by then, feel free to post a reminder or bug me via email.

My last reply was: 17 Hours, 1 Minute ago.

Welcome, Guest
Please Login or Register.    Lost Password?

NON funziona il codice per PHP
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: NON funziona il codice per PHP
#7642
NON funziona il codice per PHP 1 Year, 11 Months ago  
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>&lt;</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>&gt;</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è?
sbattitene
Posts: 1
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
#7654
Re: NON funziona il codice per PHP 1 Year, 11 Months ago  
What makes you think I can understand this?
Please keep it English.
Peter van Westen
Admin
Posts: 9165
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
Need to contact me directly? Go to my contact page.
If you use any NoNumber! extensions, please post a rating and a review at the Joomla! Extensions Directory.
Are you happy with the support? Please consider buying a License Code to help me to continue development and support.
 
Go to topPage: 1
Moderators: Peter van Westen
hosting joomla
Open Source Training | Online Joomla! Training and Support
MaxCDN | Content Delivery Network | Accelerate your site to the max