Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions

Reply
 
Thread Tools Display Modes
  #11  
Old 04-28-2005, 06:50 PM
VHLinks VHLinks is offline
 
Join Date: Jan 2005
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Will do, hopefully someone will point me in the right direction.
Reply With Quote
  #12  
Old 04-29-2005, 10:44 AM
sere sere is offline
 
Join Date: Apr 2005
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm trying to deal with one myself. Whenever I include it in _start it works but when somebody logs in it sends the person to homepage/Array for some reason. very annoying. I've included it now in _end and it appears to be working.

also, you probably need to

PHP Code:
@include_once ($GLOBALS['HTTP_SERVER_VARS']['DOCUMENT_ROOT'].'/twatch_include/logger.php'); 
or better of

PHP Code:
include_once('/absolute/path/to/file'); 
Reply With Quote
  #13  
Old 04-29-2005, 06:48 PM
VHLinks VHLinks is offline
 
Join Date: Jan 2005
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nope tried just sticking this line in the include end, it didn't work:

@include_once ($GLOBALS['HTTP_SERVER_VARS']['DOCUMENT_ROOT'].'/twatch_include/logger.php');

The I tried just putting this in the end include:

include_once('/home/jamtothis/twatch_include/logger.php');

Nada.
Reply With Quote
  #14  
Old 04-29-2005, 07:31 PM
ericgtr's Avatar
ericgtr ericgtr is offline
 
Join Date: Apr 2003
Location: Portland, Oregon
Posts: 1,407
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wouldn't that be this?
'home/jamtothis/public_html/twatch_include/logger.php'

Let me know if you get this working, I would like to use it too
Reply With Quote
  #15  
Old 04-29-2005, 07:33 PM
VHLinks VHLinks is offline
 
Join Date: Jan 2005
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Eric who? No man, I don't have a public_html directory. Yes the old site did, I don't on the new server.

I've tried so many freaking variations it's ridiculous.
Reply With Quote
  #16  
Old 04-29-2005, 09:28 PM
ericgtr's Avatar
ericgtr ericgtr is offline
 
Join Date: Apr 2003
Location: Portland, Oregon
Posts: 1,407
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I should have known you wouldn't miss something small like that You guys have me screwing around with this thing now and I have tried several variations, all with no luck
Reply With Quote
  #17  
Old 04-29-2005, 10:05 PM
VHLinks VHLinks is offline
 
Join Date: Jan 2005
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I know it's very frustrating. I even tried hardcoding it into index.php just to see if would work and it didn't.
Reply With Quote
  #18  
Old 04-29-2005, 10:37 PM
ericgtr's Avatar
ericgtr ericgtr is offline
 
Join Date: Apr 2003
Location: Portland, Oregon
Posts: 1,407
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I tried adding it to the global.php and it was ugly man. I don't think a call needs to be made to a variable for this one (I have tried both ways) we should be able to pop it in and go, maybe worth looking at the file it's grabbing from too.
Reply With Quote
  #19  
Old 01-01-2006, 11:53 PM
ZED28 ZED28 is offline
 
Join Date: Aug 2004
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I came across this post looking for an addon for some kind of webstats for my new VB site and was a little dejected to find that nobody had gotten it working considering how good the TraceWatch app looked. I'm nothing more than a noob but using some clues in this thread, some on VB's official site and one I just stumbled across that wasn't related to the stats app, I managed to get it to parse VB. That said, mine is version 3.5.2 and not the older version that was used in this discussion, I also realise how old this topic is.

Just incase anyone's interested, here's what I did... (Note that the Plugin/Hook System has to be enabled first, it's disabled by default)
From your AdminCD, go to vBulletin Options, Plugin/Hook System
Make sure the Plugin/Hook System is enabled.
Again from your AdminCD, go to Plugin System, Plugin Manager
Select Add New Plugin
For the Product, make sure VBulletin is selected
For Hook Location, select global_start
For the Title, call it something like Trace Watch Monitoring Plugin
For the Plugin PHP Code, enter the following:-
PHP Code:
@include_once $GLOBALS['HTTP_SERVER_VARS']['DOCUMENT_ROOT'].'/twatch_include/logger.php'
Save it and make sure it's active and you're done.

The TraceWatch application should be installed following the instructions from the author's website.
Reply With Quote
  #20  
Old 02-19-2006, 08:39 AM
MikQuattro MikQuattro is offline
 
Join Date: Jul 2003
Location: UK
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ZED28, nice one mate. Like you, I was in the middle of piecing this together when I came across your post. There is one thing I wanted to add to you post tho, and maybe get some help from the resident PHP gurus.....

Tracewatch doesn't count individual parameters to each page. For instance, you can click on as many threads around your forum as you want to, Tracewatch will see each of these as a a visit to showthread.php. There is, however, a way to get around this, by adding:
PHP Code:
$GLOBALS['adl_count_params']=true
before the include statement in your plugin. REFERENCE

My question is, would this be the correct code?
PHP Code:
@include_once $GLOBALS['adl_count_params']=true;
$GLOBALS['HTTP_SERVER_VARS']['DOCUMENT_ROOT'].'/twatch_include/logger.php'
Thanks again, and any help from anyone would be appreciated.

***EDIT***

I sort of just answered my Q.....

Found this at the TraceWatch site:

PHP Code:
<?php 
$GLOBALS
['adl_count_params']=true;
@include_once 
$GLOBALS['HTTP_SERVER_VARS']['DOCUMENT_ROOT'].'/twatch_include/logger.php';
?>
HTH!!!
Reply With Quote
Reply

Thread Tools
Display Modes

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 04:50 PM.


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.07616 seconds
  • Memory Usage 2,260KB
  • Queries Executed 13 (?)
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
  • (6)bbcode_php
  • (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_postinfo_query
  • fetch_postinfo
  • 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