SMF Ads Support Forum

Support => General Support => Topic started by: fastcart on May 18, 2007, 12:14:48 PM

Title: php includes?
Post by: fastcart on May 18, 2007, 12:14:48 PM
Hi Great mod here! Love it so far...

Real quick...I want to use Php includes eg

<?php include("http://www.myotherdomain.com/syndication/folder1/register.htm"); ?>

Is it possible to put this in as an ad? Must be as this is all
php. Just trying to figure out how to do it.....(im sure ill
have to modify this code a little and that's fine as long as i can
get my ads to show through)...

Thanks in advance.

Rich
:)
Title: Re: php includes?
Post by: bigguy on May 22, 2007, 04:32:28 PM
There should be a drop down menu right where you insert the code for the ad to switch it to html or php, try that.
Title: Re: php includes?
Post by: fastcart on May 23, 2007, 05:45:07 PM
Thanks but I did both modes....

Anyone?
Title: Re: php includes?
Post by: chadon on November 14, 2007, 11:30:22 AM
I have the same error when I try to add a php include code.
Parse error: parse error, unexpected '?' in /home/account/public_html/forum/Sources/Load.php(1726) : eval()'d code(583) : eval()'d code on line 1

This is my code:
<?php include('pictures/random.php'); ?>

The ad type is set to php.
Any idea?
Title: Re: php includes?
Post by: chadon on November 14, 2007, 12:17:46 PM
OK I have found the solution in the SMF supprt forum. Here is the code we have to use:
require("/home/account/public_html/pictures/random.php");
Do not include the <?php and ?> if you're including them in index.template.php or in SMF ads.