PDA

View Full Version : Adding PHP Snippet to Footer


Equination
02-26-2010, 06:37 PM
I have recently agreed to take on an advertiser who requires the inclusion of an "include();" line of PHP in the footer of all pages on my site. I have tried adding this snippet in as an advertisement to the "above footer" spot with no luck. I have also tried to paste the PHP snippet into the footer style template and that failed, as well.

Is there any way I can add this code:

<center><? include ("display.php"); ?></center>

to my forum so that my ads can be displayed on the footer?

compwhizii
02-27-2010, 02:17 PM
You can't use PHP in templates. Maybe you can create a plugin that adds whatever the fie is outputting to the footer? You should ask if it's possible to get him to create a function that's includable that would return the code needed instead of echo/printing it.