Adding some phpads banners
I have a number of other sites not using tiki therefore I have an openads (phpads) server. I want to add banners to my new site www.doggipedia.org
and am struggling. I am new to the css smarty php web! thing although I have been helped a lot here.
- I started by getting the code and creating a new tpl file to include my banner ads - thought it would be tidyer than putting it in the code. I called this vivTopPageAds.
- I created a new div tag in the css to layout this div later
- I copied the tpl files I thought I needed to my custom style folder called doggipedia which is based on twist.
I had earlier inserted a banner directly into header.tpl and that worked fine. This time I want it on the top of every page where the "Welcome to the Doggipedia" goes on the front page - I also want to get rid of that.
I searched for the div that this is enclosed in and found it was probably in tiki-index_p.tpl
I opened that file and included the new tpl in it. I saved this file to the doggipedia folder
but it doesn't work. Am I editing the wrong file? I also tried editing
doggiepedia\templates\styles\doggipedia\tiki-site_header.tpl
After this I also want to put one in the left hand bar so any ideas on the location of that tpl would be good. Is there a page in the documentation telling me what all the components of a standard page are in the tpl files?
thanks so much
Vivienne
<!-- vivTopPageAds -->
<div class = "pageBanner">THIS IS WHERE THE AD IS
<!--
if (!document.phpAds_used) document.phpAds_used = ',';
phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11);
document.write ("<" + "script language='JavaScript' type='text/javascript' src='");
document.write ("http://d657987.i86.quadrahosting.com.au/adjs.php?n=" + phpAds_random);
document.write ("&what=zone:2");
document.write ("&exclude=" + document.phpAds_used);
if (document.referrer)
document.write ("&referer=" + escape(document.referrer));
document.write ("'><" + "/script>");
//-->
<!-- END: vivTopPageAds -->
I then include this using{include file = "vivTopPageAds.tpl}