Hi folks, I write to you since I wish to include a php file on my site, on the IPB forum and in my main portal, but I can't. I am using this code for the inclusion: <?php include("http://www.latinforo.net/advertisement/header/banner_ads.php"); ?> Code (markup): I have tried: <?php include("/advertisement/header/banner_ads.php"); ?> -and- <?php include(".../advertisement/header/banner_ads.php"); ?> Code (markup): none of them work, they don't load the included files! please, if anyone ahs experience including php in ipb or mkportal please reply here
Probably because /advertisemnet/ isn't your root folder and .../ does nothing, you could try /home/<your user>/public_html/advertisement/ etc etc or ../../advertisement or such, .. goes back one directory, do it as many time as you need to.
Depends on the placement. I tried once both, IPB and Mk Portal finding that you can add the include if you put then on a div in the index.php this way at the very top or bottom of that file: <div position:absolute; top:XXpx; left:XXpx;"> <?php include("/advertisement/header/banner_ads.php"); ?> </div> Code (markup): Where XX is the number in pixel of the preferred location, and left can be substituted by right. Otherwise, you need to edit the corresponding file within the source code. Sources in IPB and templates within MK Portale and/or modules do not forget to backup your files, before any modification.