www.eslad.com I'm doing this site for someone and he wants co-op ads in the footer. I use a script to feed Amazon's products and that script uses .tpl files for things like the footer, header, and everything else. Is there a way to do this with the .tpl files? Thanks, Philip
Not that I've found. I've always had to put the co-op ads in other files when I've used a site with tpl files.
How did you do that? Can I do a php include on the .tpl file then have the ads on another .php page? Will that work?
Nope, so far as I can tell (I'm not that much of an expert), you can't do a php include on a tpl file. What I did was find a spot in one of the php files where I could put in the Co-op ads. Not terribly flexible when it came to positioning, but it worked. If I recall correctly, I used the php file that the tpl file went through - I figured out where it was being called and placed the code after. It was a bit of a headache to figure out, but I did it eventually.
The whole site works on .tpl files though. All there is, is an index.php because its an amazon script that feeds the site so there are not other pages...
No place to put it in index.php? I've been trying to remember what changes I did to make it work. If I recall correctly, I had to take the closing body and html tags out of the tpl files and put them in to close the php file, with the code for the co-op right above.
What about: http://forums.digitalpoint.com/showthread.php?t=12758&highlight=.tpl+coop Can that help me out?
Looks like it's worth a try. I don't know much about tpl files, so I haven't tried to do it that way.
Nope. The footer is also a .tpl. Everything on the site is run with a .tpl and a index.php to pull everything together.