Plugin In Module Module

Many plugins can be executed only in the content page, this extension allows the execution of a plugin in a module. You can use it without limit. Remember to support the project.

Now Version 1.8
Solved a little bug, now works also if there isn't a command to insert.

Version 1.7:
Solved the "Call-time pass-by-reference" bug.

Version 1.6:
Added the "Module Class Suffix".

Version 1.5:
Added advanced parameters, in wich you can write additional text(in Html mode) outside the execution of the plugin.

Version 1.4:
Corrected some bugs, added the field "Are there additional parameters?".

Version 1.3:
Added: "Additional Parameters", by which you can execute plugin more complex than normal.

Version 1.2:
You can set the dimension of the module.

Version 1.1:
You can choice the type of plugin to execute:
1st type:{plugin CODE}
2nd type:{plugin}CODE{/plugin}

Mode of use:
if the plugin sting is of the type: {yootooltip title=[Tooltip Link] width=[250] mode=[cursor]}Tooltip Content{/yootooltip} then:
1. Select in "type of plugin" the option {plugin}CODE{/plugin};
2. Write in "Plugin to execute": yootooltip;
3. Write in "Additional Parameter": title=[Tooltip Link] width=[250] mode=[cursor];(or leave it blank in other case)
4. Write in "Command to insert": Tooltip Content;
5. Select custom dimensions if you want;
6 - 7. Set The size of the module (without "px").

if the plugin sting is of the type: {mosmap width='500'|height='400'|lat='52.052312'|lon='4.447141'| zoom='3'|zoomType='Large'|zoomNew='0'|mapType='Satellite'|showMaptype='1'| overview='0'|text='sv DWO'|tooltip='DWO'|marker='1'| align='center'} then:
1. Select in "type of plugin" the option {plugin CODE};
2. Write in "Plugin to execute": mosmap;
3. Write in "Command to insert": width='500'|height='400'|lat='52.052312'|lon='4.447141'| zoom='3'|zoomType='Large'|zoomNew='0'|mapType='Satellite'|showMaptype='1'| overview='0'|text='sv DWO'|tooltip='DWO'|marker='1'| align='center';
4. Select custom dimensions if you want;
5 - 6. Set The size of the module (without "px").

if you want execute a module(which try to executes a plugin inside):
1. install and activate "Modules in content Plugin": http://www.nonumber.nl/modulesincontent
2. create a "plugin in module" of type {plugin CODE}
3. in plugin to execute write: module
4. in command to insert: leave a white space and write the id of the module you want execute.

Report

byheningbyoe on October 26, 2009
Very easy module, had a little problem since I was using a rare plugin, but a fast support from Mario and everything was working!

Thanks alot Mario!

Pura Vida
bycharade539 on October 24, 2009
Looks like exactly what I need, but I can't for the life of me get it to work. Sent an e-mail to the creator over a month ago, no reply. Guess I'll have to find another solution.
byherlitz on October 7, 2009
Works as you can expect, brilliant.

However, version 1.7 and below is not compatible with PHP 5.3.
byP1X3LPU5H3R on September 28, 2009
I really needed this functionality. In my instance I am using this with sexy bookmarks to make my bookmarks in the content-bottom module position. So I chose the {plugin CODE} type. In the box below I have "sexybookmark" (without quotes, and without {s as indicated). However when I tried to load the module all that was displayed was {sexybookmark }. Notice the space before the trailing curly bracket. If I put {sexybookmark} in the "plugin to execute" field it works but then {} are displayed above the module.

I knew it must be a coding error, so with my limited knowledge of php I started to look for extra spaces. I got to helper.php and found the culprit.

if your having the same problem

look around line 17 in helper.php for:

[code]

$miscinfo->text = $params->get('advancedbefore').'{'.$params->get('plugin').' '.$params->get('command').'}'.$params->get('advancedafter');

[/code]

and then delete the exrta space between the '' like so:

[code]

$miscinfo->text = $params->get('advancedbefore').'{'.$params->get('plugin').''.$params->get('command').'}'.$params->get('advancedafter');

[/code]

Everything was cake after that.
Owner's reply

Sorry I was full of work in the last time, I've now solved the little bug!
Thanks!

bymikebosh on June 23, 2009
I had a query getting this to work with "rokbox"
with Mario's help now sorted, parematers are as follows
. Select in "type of plugin" the option {plugin}CODE{/plugin};
2. Write in "Plugin to execute": rockbox;
3. Write for example in "Additional Parameter": title=|videoname|thumb=|images/stories/demo/image2.jpg| size=|500 400|;
4. Write for example in "Command to insert":
http://jimreichlaw.com/plugins/content/jw_allvideos/players/mediaplayer_4.0.46.swf?file=http://jimreichlaw.com/images/stories/videos/aurum.flv;
5. Select custom dimensions if you want;
6 - 7. Set The size of the module (without "px").

Great Module
Many Thanks to Mario
bycorinb on May 12, 2009
Great little module which works for phoca gallery latest pictures plugin. I had a random bit of code displayed on my front end but a quick request for advice solved this.

Recommended
If you don't need it is ok, but if you need to publish a plugin in a module position, then you have to download this module.
It is very simple to use from Backend and the support is amazing, when I used it for a web site, it has an error and I asked for a solution, within a day they give me a new file to upload and it solved the problem!!!
Thank you and keep this nice and helpful work!
bypossebon on April 15, 2009
Very usefull, great component.

And Mario is a great person, help me to figure out an issue in may case.

Thanks Mario, and keep the good working.

Best regards,

Fernando Possebon
bysantille on February 25, 2009
I've the same problem of the brackets with the plugin onepixel-out plaxer. Could you give me the solution to delete them?
Definetly this module solved the issue that i had with Rokbox to make it work in a module, i had some problems with the configuration but i sent an email to the owner and he help me, the only thing is that there is no way to give a class to the text above the module
byjustIT on February 8, 2009
Great module, especially when you don't want to create empty articles with just a plug-ins.

One request: Can you add a module suffix like other modules to evoke custom module template styling?
Owner's reply

Coming Soon. Thanks

I saw this plugin module and thought, who would need that, No one is gonna use this. Well the total opposite just happened! I ended up needing it and works! It actual works and it's completely Native to joomla 1.5.9. Whewp, Now I can keep my legacy boycotting on.

There was one small problem that did occur that I'm not to sure if it's something I'm doing wrong but I was trying to use the
{audio}mp3/filename.mp3{/audio} from onepixelout-player plugin and it leaves a { } at the begining and end of the player. It's weird.
Owner's reply

I think you wrong the syntax. If you want send me by email all the fields.

byjoelseneque on January 22, 2009
I've been looking for a module like this for a while.
this was exactly what i needed to complete my site.
there is nothing else that can display a plugin.

thankyou very much
byLalalandSA on January 19, 2009
Very good little addon, working well with a few of my modules, just still battling to get it to work hand in hand with yootooltip and custom html.
byHakkinen on January 18, 2009
It is a great module. However Could you also leave a text box in the module to let us write description of the module.For example I need to put name of the song right after MP3 player icon.
bymosaic on December 30, 2008
This is a great module for including plugins. I was getting headache of thinking how to include some gallery plugins in other position on the site (for example a slide show in Header).

This module is small, simple to use, and does a great job for the purpose.
byzeevee on December 19, 2008
Excellent Module.

To Answer the question on how to use it on morfeo gallery:
Type of Plugin: Plugin [CODE]
Plugin to execute: morfeo
Command to Insert: 1 (or gallery ID)
Leave everything blank!
A few weeks before I saw this module I was strugling with the impossibillity of the use of plugins in modules.
I wanted to use the YooTooltip plugin in the "left" module postion (in a custom html module).
That did not work.
Bummer!

But hey...
suddenly there seemed to be a solution!
A 1.9kb module that opened possibilities.
A quick test with a simple gallery plugin resulted in a big 'hurray'.
But then...
Bummer!
The module could not deal with the more complexe syntax of the YooToolTip plugin.

I wrote an e-mail to the developper explaining the malfunction.
And within one hour I received a completely redevelopped and expanded module that took care of everything!
It's up and running now!

Five stars and two thumbs up!
byil.nardelli on December 17, 2008
A very useful module for thousand of users. In my opinion it's something that many people was looking for... thanks a lot and a question: is it possible to modify it according to the plugin (like Morfeo) that are "{CODE}" ?
For a long time, people complain that there is no way to run some plugin syntax inside a module. Now we have it!

Two suggestions for improvement: 1. what is the use of first parameter "Plugin to execute" ? If it is not compulsory, just remove it. Because it will produce an EXTRA {something I entered} at frontend. 2. sometimes we need to limit the dimension of this module, for example, when playing a video file. So please add new parameters to control the size.

Thanks to the author!