idnguy
07-29-2011, 12:39 PM
Hi,
I created a plug-in to rotate a couple of ads as so, and named the file http://myforum.com/ads.php.
<?
$r_i=rand(0,1);
if ($r_i == 0)
{
echo "ad 1";
}
else
{
echo "ad 2";
}
?>
I created the plug-in with the code:
ob_start();
include('http://myforum/ads.php');
$myads = ob_get_contents();
ob_end_clean();
But when I access the code in the navbar template using $myads, no html shows up.
Any idea why?
We're on 3.8.4
I created a plug-in to rotate a couple of ads as so, and named the file http://myforum.com/ads.php.
<?
$r_i=rand(0,1);
if ($r_i == 0)
{
echo "ad 1";
}
else
{
echo "ad 2";
}
?>
I created the plug-in with the code:
ob_start();
include('http://myforum/ads.php');
$myads = ob_get_contents();
ob_end_clean();
But when I access the code in the navbar template using $myads, no html shows up.
Any idea why?
We're on 3.8.4