Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 04-12-2005, 10:46 PM
Shackbase Shackbase is offline
 
Join Date: Feb 2005
Location: Rockford, IL
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
Reply With Quote
  #2  
Old 04-13-2005, 12:46 AM
Jolten Jolten is offline
 
Join Date: Mar 2004
Posts: 749
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Add it to the php_include_start template.
Reply With Quote
  #3  
Old 04-13-2005, 01:38 AM
Shackbase Shackbase is offline
 
Join Date: Feb 2005
Location: Rockford, IL
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #4  
Old 04-14-2005, 03:23 AM
Link14716's Avatar
Link14716 Link14716 is offline
 
Join Date: Jun 2002
Location: Georgia, USA
Posts: 2,519
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Remove the <?php at the begining and the ?> at the end and put the code in the phpinclude_start template.
Reply With Quote
  #5  
Old 04-14-2005, 03:27 AM
Shackbase Shackbase is offline
 
Join Date: Feb 2005
Location: Rockford, IL
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

$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
Reply With Quote
  #6  
Old 04-14-2005, 06:59 PM
Guy G Guy G is offline
 
Join Date: Nov 2004
Posts: 250
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Jוust put it on the phpinclude_start template and thats it.
Reply With Quote
  #7  
Old 04-28-2005, 06:15 PM
VHLinks VHLinks is offline
 
Join Date: Jan 2005
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just curious if anyone got this to work, just throwing that code in there doesn't do anything.
Reply With Quote
  #8  
Old 04-28-2005, 06:32 PM
Shackbase Shackbase is offline
 
Join Date: Feb 2005
Location: Rockford, IL
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yeah - i gave up...

--Tone
Reply With Quote
  #9  
Old 04-28-2005, 06:46 PM
VHLinks VHLinks is offline
 
Join Date: Jan 2005
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #10  
Old 04-28-2005, 06:49 PM
Shackbase Shackbase is offline
 
Join Date: Feb 2005
Location: Rockford, IL
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

if you get it working - please share!

Thanks

--Tone
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:50 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04259 seconds
  • Memory Usage 2,246KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete