News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Joomla 1.5 equivalent to Mambo commands

Started by JoeP, March 13, 2008, 02:26:46 PM

Previous topic - Next topic

JoeP

Does anyone have any idea what the Joomla 1.5 equivalent is to these mambo commands?

            $mambothandler =& mosMambotHandler::getInstance();
            $mambothandler->loadBotGroup('system');
            $mambothandler->trigger('afterTemplate', array($configuration));

Asking here because this command sequence is found in the mambo bridge and I don't have access to the Joomla bridge (too late to the table).
Thanks,
joe

Kindred

I don't think that Joomla HAS event mambots
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

JoeP

Quote from: Kindred on March 13, 2008, 02:33:20 PM
I don't think that Joomla HAS event mambots
No, but you can trigger system events such as:
$mainframe->triggerEvent('afterTemplate');

Except there's no such thing as the afterTemplate event for Joomla 1.5.
joe

Orstio

There will be quite a few of those missing in Joomla.  They were incorporated in Mambo 4.6.x at my request, which did not happen in Joomla. 

JoeP

Quote from: Orstio on March 13, 2008, 03:09:32 PM
There will be quite a few of those missing in Joomla.  They were incorporated in Mambo 4.6.x at my request, which did not happen in Joomla. 

Well, Drat!  I feel like I'm getting soooo close, and yet so far away.  I think I've pretty much got the unwrapped version working, at least it renders a page.  I guess I need to poke around elsewhere to figure out how to do the wrapping in J! 1.5.
I'd just go with Mambo if I hadn't already invested so much time in this.

Thanks very much for the response!
joe

Eliana Tamerin

Joomla 1.5 has plugins instead of mambots.
Do NOT PM me for support.

SimplePortal 2.3.6 is OUT!
SimplePortal Project Manager
Download | Docs
SimplePortal: Power of Simplicity!

Orstio

QuoteI think I've pretty much got the unwrapped version working, at least it renders a page.  I guess I need to poke around elsewhere to figure out how to do the wrapping in J! 1.5.

I found the trick in Joomla 1.5 was to set up the component as MVC, and "hijack" Joomla's model and view.  It's important in a multiple-database environment to remember to switch back to the Joomla database before the module renderer is invoked.

The afterTemplate event in Mambo is just used to switch back to the SMF database to end the SMF session.  If you remember older Joomla 1.0.x bridges, people had to add a small piece of code at the end of their templates if they had SMF and Joomla in separate databases.  That is not required in Mambo 4.6.x

Advertisement: