Anyone familiar with how to do this? I downloaded and installed the module, but can't find instructions anywhere of what to do next. Anyone dealt with this before. I want them in my footer, which is listed as a module called bottom. Thanks!
Perhaps you've already tried this, but here it is anyway: - open module 'bottom' in your editor - insert the code provided in the setup instructions for .php i.e. something like this: Fire it up... Otherwise, post the code from 'bottom' and somebody will be able to tell you exactly where to insert the ad network code
Here is the code from my bottom template. I inserted it as you said and it didn't show up. I also used the mambo mod at mamboforge and it just showed "Array". Any ideas?
Try adding the co-op php code inside the last </div>: <?php ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../'); include ('ad_network_392.php'); echo $ad_network; ?>
ad_network_392.php is in the correct directory? ad_network_ads_392.txt has had file permissions changed to 666?
No problem -- have some time Add this: echo "test"; below echo $ad_network; If it displays 'test' in your footer, then you at least know that PHP is being interpreted.
At the last test, I had this: <?php ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../'); include ('ad_network_392.php'); echo $ad_network; echo "test"; ?>
Try putting that outside the last </div> on the outside chance that css is obscuring the links. i.e., the code will be the last lines in the bottom template
It's clear that Mambo is parsing code and not letting it execute... Found this after a google of: "insert php code into mambo" From a post elsewhere: "<<I realise this is a security thing, but I simply want to run various PHP scripts, and wrap the Mambo template around them.>> I use mosADDPHP and it works like a charm. I run forms, mostly, but so far it seems to work just like wrapper except for a very important difference: the php runs within a content item. I only wish it worked with html files as well." Also, if you have MosPHP installed, you can wrap PHP in squigglies as so: {mosphp} echo "test"; {/mosphp} This seems like an easy way to insert PHP into templates.
You'll need to download and install Mosphp first. Read thru here: http://www.mambobrothers.com/mambo/index.php?option=com_content&task=view&id=18&Itemid=34