Author Topic: wordpress and TP  (Read 11097 times)

0 Members and 1 Guest are viewing this topic.

Offline Pavel Svobada

  • Jr. Member
  • **
  • Posts: 53
    • View Profile
wordpress and TP
« on: March 01, 2009, 07:09:58 AM »
ok, so putting the TP track3er via include into the wp index template works, it also works to put it into the index.php file direclty. But looking at the code, this part stays the same all the time:

document.cookie='fav=1235919995;

while on other installs on non-blog sites this nr seems to be dynamic and changes each time I refresh the page. Am I missing some features or so when this nr stays the same when I refresh the page?

Offline Kildoozer

  • Administrator
  • Sr. Member
  • *****
  • Posts: 420
    • View Profile
Re: wordpress and TP
« Reply #1 on: March 04, 2009, 07:37:47 AM »
About WP + TP. It's not easy to make it work together, because of WP method of including templates. WP inlcludes templates inside a function. So ssi_in.php of TP runs INSIDE WP function, php variables of TP becomes invisible.
One way - it's include TP's ssi_in.php on the very top of page, BEFORE the WP code.
Second way - using htaccess + tp_in.php + redirect to main page (WP page).

Offline Pavel Svobada

  • Jr. Member
  • **
  • Posts: 53
    • View Profile
Re: wordpress and TP
« Reply #2 on: March 04, 2009, 12:31:20 PM »
can you explain what you mean with 'redirect to main page (WP page).' ?

Offline ip0li

  • mgSearkGD
  • Administrator
  • Hero Member
  • *****
  • Posts: 1959
    • View Profile
    • Pretty Girls from your city for night
Re: wordpress and TP
« Reply #3 on: March 04, 2009, 02:11:31 PM »
read manual incoming trackers you have it explained there mate!

Offline Pavel Svobada

  • Jr. Member
  • **
  • Posts: 53
    • View Profile
Re: wordpress and TP
« Reply #4 on: March 11, 2009, 06:12:41 AM »
I put the tracker code into the index.php - now when I open my blog like domain.com/blog/ it works perfectly. But when I add a 'www' in front of the domain I get this error message, anybody an idea what to do?

Warning: Cannot modify header information - headers already sent by (output started at /var/www/web8/html/domain.com/tp/ssi_in.php:67) in /var/www/web8/html/domain.com/blog/wp-includes/pluggable.php on line 850

When I want to use the htaccess instead, do I put it into my root directly and still all traffic going to my blog url domain.com/blog/ gets tracked as well as the permalink pages?
« Last Edit: March 11, 2009, 06:29:43 AM by Pavel Svobada »

Offline ip0li

  • mgSearkGD
  • Administrator
  • Hero Member
  • *****
  • Posts: 1959
    • View Profile
    • Pretty Girls from your city for night
Re: wordpress and TP
« Reply #5 on: March 11, 2009, 10:07:50 AM »
yep, U put it to root and all should work...

if U wanna message me over icq 169397168 with your ftp/wp/tp data and I can try to make it work for ya tmrow.