The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
php include for traffic - HOW?
Hi there,
I am using Tracewatch which is a Real Time Web Stats and Traffic Analysis program; if you don't know what it is, check it out over at www.tracewatch.com - it is 100% free with no tags or images required and you host it yourself. Anyways, there's two ways of tracking traffic, one is via php include and one is via java, I have been forced to use java because I don't know how to add php include in vb... how could I add a php include to all pages on my forum? sample: <?php $GLOBALS['adl_count_params']=true; @include_once $GLOBALS['HTTP_SERVER_VARS']['DOCUMENT_ROOT'].'/twatch_include/logger.php'; ?> Thank you, --Tone |
#2
|
|||
|
|||
Add it to the php_include_start template.
|
#3
|
|||
|
|||
thats odd - i tried that before and it gave me an error like unexpected < or something so i assumed that didn't work...
but I did it again but the traffic does not update with that in and the java out so something is still amiss.. hmm.. --Tone there's something peculiar you need to do with that isn't there.. i just added the above to the bottom (under the comments) of the php_include_start template... what should I have done? --Tone |
#4
|
||||
|
||||
Remove the <?php at the begining and the ?> at the end and put the code in the phpinclude_start template.
|
#5
|
|||
|
|||
$GLOBALS['adl_count_params']=true; @include_once $GLOBALS['HTTP_SERVER_VARS']['DOCUMENT_ROOT'].'/twatch_include/logger.php'; ?
i would put that inside the sample call in the phpinclude_start template or just like that? do I need to call it on the html template too or anything and if so, how? Thank you so much for your help, --Tone |
#6
|
|||
|
|||
Jוust put it on the phpinclude_start template and thats it.
|
#7
|
|||
|
|||
Just curious if anyone got this to work, just throwing that code in there doesn't do anything.
|
#8
|
|||
|
|||
yeah - i gave up...
--Tone |
#9
|
|||
|
|||
I'm not giving up that easily. Here's the code I have up now in phpinclude_start, maybe someone will have an idea.
ob_start(); @include_once $GLOBALS['HTTP_SERVER_VARS']['DOCUMENT_ROOT'].'/twatch_include/logger.php'; $logger = ob_get_contents(); ob_end_clean(); And of course calling $logger in the footer. |
#10
|
|||
|
|||
if you get it working - please share!
Thanks --Tone |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|