RokZoom in MojoBlog
Not long ago, I changed my Joomla template to one from RocketTheme.com that has their RokZoom feature. RokZoom is a customized version of the popular slimbox javascript tool. It works great and I plan on using to update my site content where I describe what Open Source projects I work on and show samples of past work. However, one place it didn’t work was in my MojoBlog. Now I have it figured out though.
To get it to work in MojoBlog, you have to edit one file so that MojoBlog calls to Joomla’s mambots. The file to edit is -
/components/com_mojo/wp-includes/template-functions-post.php
Go to ‘function the_content’ (Not get_the_content)
Just below the line that begins with ‘$content = str_replace’ add the following lines -
global $_MAMBOTS;
$_MAMBOTS->loadBotGroup( 'content' );
$tmp_row = new stdClass();
$tmp_params = new mosParameters('');
$tmp_row->text = $text_to_process;
$_MAMBOTS->trigger( 'onPrepareContent', array( &$tmp_row, &$tmp_params ), true );
$text_to_process = $tmp_row->text;
That will allow you to now use any content type of Mambot in your MojoBlog. Cool!
Here’s an example of RokZoom -

Hi, I tried your code for RokZoom mambot but I use Simple Image Gallery mambot. Doesn’t seem to work
Only have site on local server so can’t point you to it.
Any ideas?
Tim
What version of mojoBlog are you using? The latest may not require this hack.
Also, are you sure you have the mambot enabled?