RokZoom in MojoBlog

rocket.pngNot 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 -

2 Responses to “RokZoom in MojoBlog”

  1. timtecsa responded:

    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

  2. Drew responded:

    What version of mojoBlog are you using? The latest may not require this hack.

    Also, are you sure you have the mambot enabled?

Add your own comment...

You must be registered to leave a comment.

May 2008
Mo Tu We Th Fr Sa Su
« Apr    
 1234
567891011
12131415161718
19202122232425
262728293031  

Blogroll

Search

Giving Back

We donate a portion of all of our sales to environmental causes.  Learn more about how we give back and use our work for a better world.

Our Clients

View Client List

Testimonials

"Thanks, Drew!!  This is wonderful!!  You did good!! I will let you know if I need the info on making changes....but really, HOW could we improve on YOU??   Thanks again!"

In-Home Assistance

 

Login






Lost Password?
No account yet? Register

Translate

Current Projects

- Improve and update Ghost Ranch's Intranet tools
- Ning.com website for Grassroots Organizer's Conference
- Improvements to Advocacy 2.0
- Building an iCal Export tool for phpCollab's calendar
- Beta testing Joomla 1.5

Site Summary

The Design Mission are web developers specializing in Open Source software, particularly Joomla, osCommerce, phpCollab and Gallery2. We can also create custom solutions upon request.

Other areas of expertise include search engine optimization, newsletter marketing, graphical user interface (GUI) design and information architecture.

The Design Mission's web design and development process will make the Internet work for you.