rendered paste bodyMambo modifications
Follow the instructions below to modify the mambo files with data specific to your environment. This can vary from version to version. The goal is to inject a call to 'itemstats_parse()' in the location where the content generation is handled. In my installation, the main entry point for this is the components/com_content/content.php module, so I added the call in this component.
OPEN
{mambo_root}/components/com_content/content.php
FIND
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
ADD-AFTER
include('itemstats/phpbb_itemstats.php');
[Note you may need to try '../itemstats/phpbb_itemstats.php' or '../../itemstats/phpbb_itemstats.php' etc depending on your installation]
FIND
if ( $params->get( 'introtext' ) ) {
ADD-BEFORE
$row->fulltext = itemstats_parse($row->fulltext);
ADD-AFTER
// Parse text for ItemStats mod
$row->introtext = itemstats_parse($row->introtext);
SAVE AND CLOSE
{mambo_root}/components/com_content/content.php
OPEN
{mambo_root}/templates/[your template]/index.php
FIND
</head>
<body....>
ADD-AFTER:
<link rel="stylesheet" href="/itemstats/templates/itemstats.css" type="text/css">
<script type="text/javascript" src="/itemstats/overlib/overlib.js"><!-- overLIB © Erik Bosrup --></script>
[Note you may need to try '../itemstats/phpbb_itemstats.php' or '../../itemstats/phpbb_itemstats.php' etc depending on your installation]
SAVE AND CLOSE
{mambo_root}/templates/[your template]/index.php
DONE