EDITED TO FIX MISSING OVERLIB:
The goal of this is to use [item]Netherwind Pant[/item] to describe items in mambo content as it does in phpbb.
Mambo Installation
==========================================
1. Configuration
Make sure you complete the instructions in 'config.txt' before doing this part.
2. Copying it over
Copy the 'itemstats' folder to the root of your mambo installation.
3. Mambo 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
================================================
Enjoy
This post has been edited by slain: 27 March 2006 - 04:32 AM


Sign In
Register
Help

Back to top
MultiQuote