Author Topic: installing the php incoming hits tracker into a .tpl file  (Read 12021 times)

0 Members and 1 Guest are viewing this topic.

Offline Tim Chirillo

  • Newbie
  • *
  • Posts: 1
    • View Profile
installing the php incoming hits tracker into a .tpl file
« on: January 27, 2009, 02:17:25 PM »
anyone know how to do this? my site is done with smarty templates.. can not get this to work

Offline ip0li

  • mgSearkGD
  • Administrator
  • Hero Member
  • *****
  • Posts: 1959
    • View Profile
    • Pretty Girls from your city for night
Re: installing the php incoming hits tracker into a .tpl file
« Reply #1 on: January 27, 2009, 10:15:35 PM »
It's related to smarty, not to trade pulse and I don't know how to help you :(

Maybe someone will show up with answer or U can google it.

Thnx :)

Offline Jesse Barron

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: installing the php incoming hits tracker into a .tpl file
« Reply #2 on: March 07, 2010, 10:39:51 PM »
I know this is an old request, but this may help anyone searching tpl or smarty in hopes of accomplishing the same thing...

It took many tries, but this finally worked for me in smarty/tpl:

Code: [Select]
{php}include("/home/web1/xxxxxxxx.com/htdocs/tp/ssi_in.php");{/php}
You have to use the full directory path.  On my server it looks like that and I replaced my domain with x's.  Every type of server is different so you may have to ask your host for the full directory path.

I have a header.tpl file in my Adult Video Script and I put that code directly above </head> and it works correctly!

This replaces the first step in the TP manual that says to try either:

Code: [Select]
<!--#include virtual="/tp/ssi_in.php"-->or
Code: [Select]
<!--#include virtual="/tp/ssi_in.php"-->
I think you still want to do the step listed under warning where you are supposed to insert the following code right after start of <body>
Code: [Select]
<img src="/tp/img.php" width="0" height="0" style='display:none;border:none'>
I still did that to play it safe and nothing broke but I'm not certain its still needed ... no harm done, I don't think, it's just an invisible pixel.

Offline ip0li

  • mgSearkGD
  • Administrator
  • Hero Member
  • *****
  • Posts: 1959
    • View Profile
    • Pretty Girls from your city for night
Re: installing the php incoming hits tracker into a .tpl file
« Reply #3 on: March 08, 2010, 06:44:51 AM »
Thnx!