The normal Text widget allows you to insert arbitrary Text and/or HTML code. This allows that too, but also parses any inserted PHP code and executes it. This makes it easier to migrate to a widget-based theme but the fun part is, together with the Mobypicture plugin it enables you to include multiple Mobypicture streams in your sidebars. Just like I included the public stream.
Install both widgets and then include the same Mobypicture php code you would use to include the a Moby stream in a post or page.
]]>Please do not hesitate to report bugs or submit your feature requests either via a comment or Twitter (@Chillez73).
]]>Note that I decided to change the image class name in the final version 1.2.1 so those of you who installed v1.2.1 beta and upgrade to 1.2.1 will have to make a small change to their style.css
v1.2.1 beta used class ‘img.mobypic’ while v1.2.1 uses class ‘img.mobypicture_raw’. This is more logical as now the PHP string and image class have the same name. (BTW this also counts for the images displayed by the widget and non-raw code, these images have a class=”mobypicture”.) See also plugin installation notes.
]]>Note: v1.2 is not compatible with v1.2 beta code, please replace with new code (see plugin installation notes)
Rewriting the plugin including support for multiple widget instances appeared to be more difficult than anticipated. Therefore I decided to release this version prior version 2.0
Next step will be figuring out to use the API instead of the RSS feed and, of course, add support for multiple widget instances.
]]>
Today I received the request from Mathys whether I could include support for Mobypicture groups in the plugin. I have been toying around in the code and got a working version. I am not yet satisfied about the way I achieved this but hey it is a start. Check it out here.
]]>Demo new code:
< ?php mobypic_pics($username = chillez73, $num = 6, $width = 70, $height = 100, $padding = 3, $linked = true); ?>