Elxis CMS Forum

Extensions => Bots and plugins => Topic started by: kyomar on May 12, 2013, 08:15:03

Title: Accuweather module as a plugin
Post by: kyomar on May 12, 2013, 08:15:03
Hi, Is it possible to have the accuweather module as a plugin? I would like to show the weather in a tab (tab plugin) and as far as I know it is not possible to run a module within a module.

Thank you for considering my suggestion!
Title: Re: Accuweather module as a plugin
Post by: datahell on May 12, 2013, 20:14:37
Loading modules within plugins can be done but you need a special plugin to do so.
An other solution is to modify the tab plugin to load directly the module from there but you need to handle specially the load of the module (save into buffer instead of echo).
What you want to do is too messy. It can be done but whatever solution you think of (there are many) there will be always issues you will have to take care.
The orthodox way is to load plugins inside modules (which is supported), not modules inside plugins.
Title: Re: Accuweather module as a plugin
Post by: kyomar on May 15, 2013, 06:44:05
thank you datahell for you quick reply. In this case I will have to use the code from accuweather's website although I like the elxis module better and it's also loading much faster. I didn't expect it to be that difficult, thought could load the module like the loadposition function in joomla (sorry, I am an old joomla user).
Title: Re: Accuweather module as a plugin
Post by: CREATIVE Options on May 15, 2013, 12:34:06
I didn't expect it to be that difficult, thought could load the module like the loadposition function in joomla (sorry, I am an old joomla user).
kyomar, the loadposition is basically an OLD option from Mambo !!