it only tracks my static pages that have my header when I put the code in my header. I suggest the path to the server.
Hi, can anyone help me. I want to install bbclone in my wordpress 1.5. I have copy the bbclone dir, change the chmod off var dir, changed the “” to 1 in the config.php but now what?
I have already put this:
<?php
define(“_BBC_PAGE_NAM”, “index.php”);
define(“_BBCLONE_DIR”, “bbclone/”);
define(“COUNTER”, _BBCLONE_DIR.”mark_page.php”);
if (is_readable(COUNTER)) include_once(COUNTER);
?>
… in the index.php of my theme in many places but no result. My website structure is like http://www.subdomain.domain.net/wordpress and i have instaled bbclone @ http://www.subdomain.domain.net/wordpress/bbclone.
I tried in many places of the index but when i open bbclone/index.php its all blank. Help me please..
You guys should check out:
http://www.basketti.net/weblog/archives/2005/02/22/bbclone-en-wordpress-15/
I did what was mentioned in the article and it worked for me. Also if you create any page specific templates (e.g. about.php) it will work as well.
Why does everyone keep spelling name wrong in
define(“_BBC_PAGE_NAM”, “index.php”);
That is more than likely why is is taking me forever to get this to work… Where is everyone putting the bbclone dir?
My sites tree is like this:
tylersmalley.com/wordpress
tylersmalley.com/stats <– Renamed from bbclone
Please post what worked for you when it works… It helps out a lot.
Thank you everyone!
I think that part of the problem is that this line:
‘ define(“_BBC_PAGE_NAME”, get_bloginfo(“name”) . wp_title(“/”, false));’
works for posts, but not for static pages.
Ok… here’s the deal — when I am viewing a POST, then the counter increments. However, when I view a PAGE, the counter doesn’t seem to ever parse the code from above. Which file calls pages? It’s not the index.php that is in the theme’s folder?
That code works, but when i active the permalinks, don´t work, i try with the complete path, but is the same. Another solution?
I simply put this into, index.php, single.php, and page.php, those are the ones that seem to need it.
<?php
define(“_BBC_PAGE_NAME”, get_bloginfo(“name”) . wp_title(“/”, false));
define(“_BBCLONE_DIR”, “/full/path/to/bbclone/”);
define(“COUNTER”, _BBCLONE_DIR.”mark_page.php”);
if (is_readable(COUNTER)) include_once(COUNTER);
?>
mine works fine, even is working with the permalinks
thanks bradyb, that did it… i find it helpful to use $_SERVER[‘REQUEST_URI’] as the title. it makes it look more like my apache logs:
<?php
define(“_BBC_PAGE_NAME”, $_SERVER[‘REQUEST_URI’]);
define(“_BBCLONE_DIR”, “/path/to/bbclone/”);
define(“COUNTER”, _BBCLONE_DIR.”mark_page.php”);
if (is_readable(COUNTER)) include_once(COUNTER);
?>