wiki:php_bb

How to integrate FireStats with PHPBB

Unofficial instructions:

  • Create a new site in firestats:
    • go to site management, in the "Manage sites" click the + sign to add a new site.
    • type the site name, select "Generic PHP site" if not already selected.
    • Optionally enter baseline hits value (leave empty for 0)
    • When finished click "save" and you will a new line containing your site name in the table.
    • hit the ? sign at end of the line and you'll get a new page contains something like:<?php include('/firestats_install_dir/php/db-hit.php'); fs_add_site_hit(site_number); ?>
    • copy the line, dropping the <?php and ?>
  • Go to your phpbb:
  • Open: index.php
  • find: include($phpbb_root_path . 'common.'.$phpEx);
    • Add the line you copied after it : include('/firestats_install_dir/php/db-hit.php'); fs_add_site_hit(site_number);
  • Open search.php
    • Find last line : $>
    • Add the line you copied before it : include('/firestats_install_dir/php/db-hit.php'); fs_add_site_hit(site_number);

Guy Mizrahi (ZuLL)

Last modified 9 years ago Last modified on Feb 28, 2008, 6:06:43 AM