T_Clauss
New Member
- Messages
- 31
- Reaction score
- 0
- Points
- 0
Anyone have experience, with joomla mambots?
I need to convert one to 1.5
This is supposed to pick up [bbcode] (well the gwbbcode) for use in joomla content.
In 1.5 it will install in legacy mode, but it doesnt pick up the gwbbcode in content like it does in 1.0.3.
Any suggestions?
I need to convert one to 1.5
Code:
<?php
/**
* @version $Id: gwBBCode.php 2999 2007-02-16 21:45:00Z $
* @license [URL]http://www.gnu.org/copyleft/gpl.html[/URL] GNU/GPL
*/
// no direct access
defined( '_VALID_MOS' ) or die( 'Restricted access' );
$_MAMBOTS->registerFunction( 'onPrepareContent', 'botgwBBCode' );
/**
* gwBBCode Mambot
*
* <code>{moscode}...some code...{/moscode}</code>
*/
function botgwBBCode( $published, &$row, &$params, $page=0 ) {
//define('SMF', 1);
require_once( $GLOBALS['mosConfig_absolute_path'] . '/gwbbcode/gwbbcode.php' );
// simple performance check to determine whether bot should process further
if ( strpos( $row->text, '[' ) === false ) {
return true;
}
// perform the replacement
$row->text = parse_gwbbcode( $row->text );
return true;
}
?>
This is supposed to pick up [bbcode] (well the gwbbcode) for use in joomla content.
In 1.5 it will install in legacy mode, but it doesnt pick up the gwbbcode in content like it does in 1.0.3.
Any suggestions?