.tpl Files and Co-Op Ads..

Discussion in 'Co-op Advertising Network' started by PhilipB, Apr 17, 2005.

  1. #1
    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
     
    PhilipB, Apr 17, 2005 IP
  2. PhilipB

    PhilipB Peon

    Messages:
    211
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Anyone know anything? Thanks
     
    PhilipB, Apr 18, 2005 IP
  3. stephfoster

    stephfoster Well-Known Member

    Messages:
    567
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    138
    #3
    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.
     
    stephfoster, Apr 18, 2005 IP
  4. PhilipB

    PhilipB Peon

    Messages:
    211
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    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?
     
    PhilipB, Apr 18, 2005 IP
  5. stephfoster

    stephfoster Well-Known Member

    Messages:
    567
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    138
    #5
    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.
     
    stephfoster, Apr 19, 2005 IP
  6. PhilipB

    PhilipB Peon

    Messages:
    211
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #6
    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...
     
    PhilipB, Apr 19, 2005 IP
  7. stephfoster

    stephfoster Well-Known Member

    Messages:
    567
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    138
    #7
    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.
     
    stephfoster, Apr 19, 2005 IP
  8. PhilipB

    PhilipB Peon

    Messages:
    211
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #8
    I dont think so. I'll try to look through the index.php file but it doesn't look like it can be done
     
    PhilipB, Apr 20, 2005 IP
  9. stephfoster

    stephfoster Well-Known Member

    Messages:
    567
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    138
    #9
    Good luck to you.
     
    stephfoster, Apr 20, 2005 IP
  10. PhilipB

    PhilipB Peon

    Messages:
    211
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
  11. stephfoster

    stephfoster Well-Known Member

    Messages:
    567
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    138
    #11
    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.
     
    stephfoster, Apr 21, 2005 IP
  12. jim

    jim Well-Known Member

    Messages:
    816
    Likes Received:
    53
    Best Answers:
    0
    Trophy Points:
    153
    #12
    The footer is a php include, right? Isn't there some way to stick coop code in there?
     
    jim, Apr 21, 2005 IP
  13. PhilipB

    PhilipB Peon

    Messages:
    211
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #13
    Nope. The footer is also a .tpl. Everything on the site is run with a .tpl and a index.php to pull everything together.
     
    PhilipB, Apr 22, 2005 IP