I managed to add the code everywere on the site but to the footer of the guestbook (it's the 'advanced guestbook' that comes with most hosting plans) Can anyone help? The guestbook is installed in a "guestbook" subfolder. I've tried the code with/without the php tags, using the default/full path to the ad_network.php file but... no luck.
www.musicians-anytime.co.uk/guestbook I thought changing from .htm .html server parsed would be tricky but that went without problems. Instead I got stuck with the guestbook! I really need to learn php someday! I have recently created a subdomain that should have soon over 1000 pages all php. I guess changing my account setting from the main domain to the subdomain is my only alternative if nothing else works.
It's PHP based, so it shouldn't be too hard... probably just a matter of adding the PHP code to the index.php file... ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../'); include ('ad_network.php'); echo $ad_network[0]; PHP: If you've done that already, does it give any errors or anything?
I tried that before and after the "include("$base_path/footer.php");" without success. I've also tried it in header.php and footer.php. Again no luck. When I enter it like that (withou the <?, ?>) in index.php or header.php nothing happens. When i try the same way in footer.php it just appears on the guestbook pages "include ('ad_network.php'); echo "
Hmmm... it's really hard to say without being able to see how it works. But footer.php is probably the best bet. Is there any other PHP code in that file?
footer.php is in a "templates" subfolder within the guestbook folder and I don't see any php code there it's just:
Try adding <?php echo 'Testing'; ?> to the footer. If you add that does it output "Testing" in the browser, or leave it as PHP code (you would have to view source to see it then)?
Hmmm... ok, then the footer page isn't evaluating any PHP code I guess. Probably needs to go in index.php in that case (somewhere within the existing PHP tags).
Thanks for your help. I managed to do it in the end by adding the code not only to index.php (as that was only showing the adds on the main page) but also to admin.php, comment.php and picture.php And now finally the ads seem to finally display on every page!