hat schon einer eine BBclone Extension geschrieben?
Den Code so einbinden möchte ich nicht da das immer wieder bei updates zu Problemen führen kann.
Kann einer das von euch machen oder geht das garnicht per extension?http://forum.bbclone.de/index.php/mv/msg/1573/5627#msg_num_5 hat geschrieben:Getting BBClone to Count phpBB3 Pages
Please note that the instructions below were implemented on PHPBB3 RC7. Thanks to Andrew for posting the alternative method for integrating BBClone with PHPBB2, above. However, the file includes/page_header.php doesn't exist in PHPBB3 so here's my method as posted above, modified for PHPBB3. (Andrew, if you figure out a simpler way, please post it!)
This method counts only web browsing of the forum homepage, forum indexes and forum articles. (I.e. not bother counting when people view the MemberList, etc.)
viewtopic.php (counting topic views)
At the end of the file, before
page_footer();
put this:
// BBClone MOD
$label_for_bbclone = 'Forum topic: '.$topic_data['topic_title'];
define("_BBC_PAGE_NAME", $label_for_bbclone);
define("_BBCLONE_DIR", "../bbclone/");
define("COUNTER", _BBCLONE_DIR."mark_page.php");
if (is_readable(COUNTER)) include_once(COUNTER);
// END BBClone MOD
Make sure the relative path to your BBClone installation directory (in blue) is correct. The red text you can alter to suit your taste.
viewforum.php (counting forum topic menu views)
At the end of the file, before
page_footer();
put this:
// BBClone MOD
$label_for_bbclone = 'Forum: '.$forum_data['forum_name'];
define("_BBC_PAGE_NAME", $label_for_bbclone);
define("_BBCLONE_DIR", "../bbclone/");
define("COUNTER", _BBCLONE_DIR."mark_page.php");
if (is_readable(COUNTER)) include_once(COUNTER);
// END BBClone MOD
index.php (counting forum homepage views)
At the end of the file, before
page_footer();
put this:
// BBClone MOD
define("_BBC_PAGE_NAME", 'Forums List');
define("_BBCLONE_DIR", "../bbclone/");
define("COUNTER", _BBCLONE_DIR."mark_page.php");
if (is_readable(COUNTER)) include_once(COUNTER);
// END BBClone MOD
Dave
Gruß Timo