How can I incorporate <?php include(''); ?> into the advertisement so that it executes? We are trying to incorporate a random banner rotater. When we tried to "<?php include(''); ?>" into the PUT ADVERTISEMENT HERE, Nothing happened. Please help
How can I incorporate <?php include(''); ?> into the advertisement so that it executes? We are trying to incorporate a random banner rotater. When we tried to "<?php include(''); ?>" into the PUT ADVERTISEMENT HERE, Nothing happened. Please help
It is a smarty template system...
try the following
Code:{php} include "your-file.php"; {/php}
Or try any of the threads listed in this one:
viewtopic.php?f=12&t=1791&p=9676
There is also something I had to do one time about "literal"...I'm trying to remember what it was! LOL I'll let you know when I find it.
UPDATE
Found that information here viewtopic.php?f=6&t=2169&p=9433
Hope one of these solutions works for ya! Please do let us know!
If it's not fun, stop doing it!
Where do I change this? In the template or in the admin area? Thanks for your help :)
You have to change the template file header.tpl
Find
Replace withCode:{insert name=advertise adv_name='banner_top'}
Code:{php} include "your-file.php"; {/php}
Thanks for all your help it worked GREAT!!! :)
Bookmarks