friesengeist wrote:
$_MAMBOTS->registerFunction( 'onAfterStart', 'botSomething' );
function botSomething() {
[INSERT HERE]
[OLD MAMBOT CODE HERE]
}
this simply isn't working for me. i'm having this issue with the ijoomla magazine component mambot: mos_magazine.php
its replacing text inside newsflash modules. i followed your directions and inserted "if (@$row->content){ return;}" at the beginning of the function that is called out in registerFunction as well as tried it in other functions inside the bot, but with absolutely no effect whatsoever.
here's the beginning of the bot:
"$_MAMBOTS->registerFunction( 'onPrepareContent', 'botMagQuotes' );"
and here's the function being called out with Phil's conditional statement inserted:
"function botMagQuotes( $published, &$row, &$params, $page=0 ) {
if (@$row->content){
return;
}
global $_MAMBOTS, $my, $mosConfig_absolute_path,$mainframe,$database,$mosConfig_lang, $mosConfig_live_site;
global $css_article_quote1,$css_article_quote2,$css_article_quote3,$Itemid,$_CONFIG;"
i should mention that i'm using Joomla 1.0.11. i don't see any parameter options in the newsflash module to disable bots....i see the option for custom modules, but isn't newsflash a core module? shouldn't it be set to disable bots by default??
anyone have any other ideas? can i hack the newsflash module to ignore this specific bot?