davfink10
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Twatch include in WPMichael,
Thank you for posting the files. At least I know I was trying the right thing. Unfortunetly it didn’t work for me. The pages don’t fully load. Upon multiple refreshs, sometimes they load, most times they didn’t. I’m using this inlude code below, as it’s the only one that worked to track subdomains. Hopefully you have better luck then me trying to figure it out. Thanks again. Dave
<?php
$GLOBALS[‘adl_alt_docroot’]=’/home/’my site’/public_html/stats’;
$GLOBALS[‘adl_alt_instance’]=’DF’;
$GLOBALS[‘adl_count_params’]=true;
@include_once $GLOBALS[‘adl_alt_docroot’].’/twatch_include/logger.php’;
?>Forum: Fixing WordPress
In reply to: Twatch include in WPOK – well I give up for now. I just can’t seem to get the PHP version working. It doesnt matter where I place it – everytime it destroys my page from fully loading. I think it has something to do with the $GLOBALS call – but I really have no idea. 🙁
Sadly … I’m just going to use the JS version and place it in my theme/footer.php file – that seems to work.
If anyone finds a solution working with WP 2.01 – please post. I know I can’t be the onlyone.
Thanks,
DaveForum: Fixing WordPress
In reply to: Twatch include in WPOK OK – Progress is good:
I got the absolute path working – now it tracks both df.davefink.com and davefink.com/df – woo whoo!!! It turns out that code generator strips the first “/” when creating the path – not good. So instad of /home/public… it was home/public… This is why I couldn’t get it to work. Alas … one problem down.
Now back to WP. Ugh!!! So I have the correct include code, but I still can’t get it to work – in fact when I placed it in the index.php file and the wp-blog-header.php file – it broke my site – noting would show up. 🙁 Damn it – I thought I had it, ah well. I’m still chuggin’ – got any suggestions let me know.
Thanks,
DaveForum: Fixing WordPress
In reply to: Twatch include in WPOk Michael,
Thank you … I think I’m getting closer. 😐 I haven’t gotten it working on my WP directory yet but I think I know what the culprit is. I have my WP directory set up as a subdomain eg. df.davefink.com – I believe this to be the problem. I tried playing around with the code on a blank (non-WP) page. When I browse to it as df.davefink.com/test.php – it doesn’t track – however when I go to davefink.com/df/test.php – it does.
I’m guessing that it has something to do with the “Local root folder” setting. I’ve been trying to setup the “absolute file system path” setting using this http://www.tracewatch.com/doc/code.php but I can’t get it to work. Not even when I browse to davefink.com/df/test.php. I’m wondering if I have my path wrong, should I use an absolute path http://davefink.com/stats or the server path /home/[user]/public_html/stats. I haven’t had luck either way and I couldn’t find any further documentation.
My last resort is to set up WP in the root public_html folder – I’ve just been trying to avoid this b/c I like to keep my directory clean and I have other sites. Anyway I’m givin this one my all before I do that. If you have any suggestions or ideas let me know. Thanks again for all your help. I appreciate it.
Dave
Forum: Fixing WordPress
In reply to: Twatch include in WPMichael,
Thank you for your help. I tried placing it in both files – still with no luck. I’m at my wits end on this one – I’m not sure what else to try. I’m running WP 2.0.1 and TraceWatch V0.234.
Is there any way you can paste your code placement that you have setup – I just want to make sure I’m not doing something wrong. It would be greatly appreciated. Thanks again.
Forum: Fixing WordPress
In reply to: Twatch include in WPStill having problems!!! Can anyone help? This is where I’m placing the code. Am I placing it in the right place? Am I using the right include code? Is anyone aware of plugins, settings or anything that may be conflicting? Please let me know what works for you.
WP index file: ‘WP dir’/index.php
<?php
/* Twatch */
@include_once $GLOBALS['HTTP_SERVER_VARS']['DOCUMENT_ROOT'].'/twatch_include/logger.php';
/* Short and sweet */
define('WP_USE_THEMES', true);
require('./wp-blog-header.php');
?>
Header file: ‘WP dir’/wp-content/themes/‘theme dir’/header.php
...
<body>
<?php /* Twatch */
@include_once $GLOBALS['HTTP_SERVER_VARS']['DOCUMENT_ROOT'].'/twatch_include/logger.php';
?>
...
Forum: Fixing WordPress
In reply to: Twatch include in WPOk – I’m just not getting this. I’ve tried placing the code in the <WP directory>/index.php file on the first line. No luck. I tried placing it everywhere – in the theme/header.php file in the theme/footer.php file. What am I missing? Can you post exactly what code you are using successfully and what file to place it in. I’ve tried the javascript version as well and didn’t have any luck with that either. THe interesting thing is – I made a dummy blank php page, put the reference code in there and then browsed to it – that worked fine. I just can’t figure out how to include it in my WP files. Please help. Thank you.
Forum: Everything else WordPress
In reply to: Paragraph tag being inserted after horizontal ruleJust to add fuel to the fire – I have experienced this exact same thing – I’d second the bug theory.
Another work around is this:
<div class=”hr”><hr /></div>
works fine – plus gives you extra styling capabilities.