[KOD] BBClone and phpBB
http://www.foranewliberty.com/blog/a...one-and-phpbb/




Warning…esoteric post!

Ever wondered how to integrate the best stats program BBClone with your PHPbb board? Well, here is the solution.

The main "issue" with BBClone is that it requires a small script on every page that you want counted. On a good forum, there could be hundreds of topics, so stat tracking seems impossible (each would require its own script with specific title). But, alas, it isn't. First, follow the installation instructions for BBClone. Next, to track your PHPbb board, insert the following snippets of code (let's assume you install BBClone in home/public_html/stats/).

In index.php of your PHPbb installation find

include($phpbb_root_path . 'common.'.$phpEx);
after it paste

define("_BBC_PAGE_NAME", "Front Page");
define("_BBCLONE_DIR", "stats/");
define("COUNTER", _BBCLONE_DIR."mark_page.php");
if (is_readable(COUNTER)) include_once(COUNTER);
in viewtopic.php find

$topic_time = $forum_topic_data['topic_time'];
paste this right after it

define("_BBC_PAGE_NAME", $topic_title);
define("_BBCLONE_DIR", "stats/");
define("COUNTER", _BBCLONE_DIR."mark_page.php");
if (is_readable(COUNTER)) include_once(COUNTER);
Finally, in viewforum.php find

include($phpbb_root_path . 'includes/page_header.'.$phpEx);
and paste this right after it

define("_BBC_PAGE_NAME", $page_title);
define("_BBCLONE_DIR", "stats/");
define("COUNTER", _BBCLONE_DIR."mark_page.php");
if (is_readable(COUNTER)) include_once(COUNTER);
Now, if you have a ton of topics, you will want to change $BBC_MAXPAGE to say 50 in your conf/config.php of BBClone. That';s it! You will now have a dynamic list of stats for each forum topic.

-------------------------------------------------------------------------------------------------------------

Alıntı
What a wonderful fix! Works like a charm! Very impressive! I was silly though to not realize at first that I had to change “stats/” to my bbclone root though- I had to put two dots before my root name too to access it through the parent folder. I also tweaked the names it indexed by a bit to my tastes

e.g. in viewtopic I put:

define(”_BBC_PAGE_NAME”, “Forum Topic - “.$topic_title);

But anyhow thankyou so much for posting this! Just thought I’d post what I did in case anyone else has the same issues.