PDA

View Full Version : Where insert stats tracking code?


lund
04-16-2006, 06:41 PM
I have all your scripts and they are great - thanks!

I installed a PHP based stats tracking program for my website. The PHP code that the script gave me is shown below. How do I insert this code into PHPLD, ArticleScript and Newstopica? Which file(s) are involved?

<?php @include_once $GLOBALS['HTTP_SERVER_VARS']['DOCUMENT_ROOT'].'/twatch_include/logger.php'; ?>

thanks.

lund
--------
http://www.multilingualchildren.org/directory/

anon
04-16-2006, 08:11 PM
i'd start off by going into your index.php

find the line: require_once 'init.php';
right after

add your line:
include_once $GLOBALS['HTTP_SERVER_VARS']['DOCUMENT_ROOT'].'/twatch_include/logger.php';


if that does not seem to work, then go into your main.tpl

and right ABOVE:
</body>
</html>

add:
{php}
include_once $GLOBALS['HTTP_SERVER_VARS']['DOCUMENT_ROOT'].'/twatch_include/logger.php';
{/php}
</body>
</html>


These are just suggestions. ;)

Rob

bobby9101
04-17-2006, 04:09 AM
make sure you have logger.php located at the correct location though