<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>delusionworld blog &#187; Plugin</title>
	<atom:link href="http://www.delusionworld.com/tag/plugin/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.delusionworld.com</link>
	<description>my MooTools, TYPO3 and FLOW3 experiences</description>
	<lastBuildDate>Sun, 01 Nov 2009 11:57:18 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>MooTools Plugin CanvasOverlay</title>
		<link>http://www.delusionworld.com/mootools/mootools-plugin-canvasoverlay/</link>
		<comments>http://www.delusionworld.com/mootools/mootools-plugin-canvasoverlay/#comments</comments>
		<pubDate>Tue, 21 Apr 2009 11:18:59 +0000</pubDate>
		<dc:creator>daKmoR</dc:creator>
				<category><![CDATA[MooTools]]></category>
		<category><![CDATA[Canvas]]></category>
		<category><![CDATA[Imagemap]]></category>
		<category><![CDATA[MPR]]></category>
		<category><![CDATA[Plugin]]></category>
		<category><![CDATA[Repository]]></category>

		<guid isPermaLink="false">http://www.delusionworld.com/?p=107</guid>
		<description><![CDATA[Uses canvas to dynamically create overlays (with fill, border, glow) for Images with imagemaps
MPR Demo
MPR Docu
it&#8217;s basically a jQuery port from:
http://davidlynch.org/js/maphilight/docs/
it doesn&#8217;t support IE as it doesn&#8217;t have canvas and I didn&#8217;t wanted to hack around with VML&#8230; :p
]]></description>
			<content:encoded><![CDATA[<p>Uses canvas to dynamically create overlays (with fill, border, glow) for Images with imagemaps</p>
<p><a href="http://mpr.mooforum.net/MprAdmin.php?mode=demo&#038;file=./Visual/CanvasOverlays/Demos/CanvasOverlays.html">MPR Demo</a><br />
<a href="http://mpr.mooforum.net/MprAdmin.php?mode=docu&#038;file=./Visual/CanvasOverlays/Docu/CanvasOverlays.md">MPR Docu</a></p>
<p>it&#8217;s basically a jQuery port from:<br />
<a href="http://davidlynch.org/js/maphilight/docs/">http://davidlynch.org/js/maphilight/docs/</a></p>
<p>it doesn&#8217;t support IE as it doesn&#8217;t have canvas and I didn&#8217;t wanted to hack around with VML&#8230; :p</p>
]]></content:encoded>
			<wfw:commentRss>http://www.delusionworld.com/mootools/mootools-plugin-canvasoverlay/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MPR Best Practice &#8211; Plugin MultiOverlays</title>
		<link>http://www.delusionworld.com/mootools/mpr-best-practice-plugin-multioverlays/</link>
		<comments>http://www.delusionworld.com/mootools/mpr-best-practice-plugin-multioverlays/#comments</comments>
		<pubDate>Sun, 19 Apr 2009 13:04:44 +0000</pubDate>
		<dc:creator>daKmoR</dc:creator>
				<category><![CDATA[MooTools]]></category>
		<category><![CDATA[Milkbox]]></category>
		<category><![CDATA[MultiOverlays]]></category>
		<category><![CDATA[Plugin]]></category>
		<category><![CDATA[Repository]]></category>

		<guid isPermaLink="false">http://www.delusionworld.com/?p=93</guid>
		<description><![CDATA[So now we have this local part of MPR to help us using MooTools Plugins. But howto create such Plugins and what should you use&#8230;
(bad) Examples
At first let me show you some examples why it&#8217;s not so easy currently to work with MooTools. I think the main reason is that it&#8217;s pretty hard to use [...]]]></description>
			<content:encoded><![CDATA[<p>So now we have this local part of MPR to help us using MooTools Plugins. But <strong>howto create</strong> such Plugins and what should you use&#8230;</p>
<h2>(bad) Examples</h2>
<p>At first let me show you some examples why it&#8217;s not so easy currently to work with MooTools. I think the main reason is that <strong>it&#8217;s pretty hard to use multiple files</strong> (js, css, img&#8230;) so people <strong>try to do everything in ONE file</strong>.</p>
<h3>Example <a href="http://mpr.mooforum.net/MprAdmin.php?mode=demo&#038;file=./Galleries/Milkbox/Demos/Milkbox.html">Milkbox</a>:</h3>
<p>Whenever you add it you will <strong>automatically add an Event to domready</strong> to create a milkbox with the default params&#8230; But what if I don&#8217;t want to use it on a page, I <strong>can&#8217;t easily disable it</strong> as I would <strong>need to edit the file</strong>.<br />
[don't get me wrong - milkbox is cool, I'm just saying it might be even better this way...]<br />
It would be nicer if separate in more files:</p>
<ul>
<li>Milkbox.js // class Milkbox &#8211; with the milkbox effect</li>
<li>Milkboxes.js // class Milkboxes &#8211; create multiple Milkboxes and has the logic for &#8220;galleries&#8221;</li>
<li>AutoMilkboxes.js // will require Milkboxes and will add it&#8217;s creation to the domready event</li>
</ul>
<p>With that now we can decide what we want to include. For the <strong>&#8220;basic&#8221; user</strong> its just $require( AutoMilkbox ); and people who know can decide if they either want one or multiple milkboxes. However as I said above <strong>using 3 files for one plugin</strong> without MPR is pretty inconvenient so people don&#8217;t do it. [and by inconvenient I mean <strong>it's freaking crazy</strong> to use 3 script tags for one little plugin - no no no; and yeah we all don't want to build our own script.json for each plugin... (little side kick to the devs..) :p]<br />
<strong>Now you can, just use MPR <img src='http://www.delusionworld.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </strong></p>
<h3>Example <a href="http://www.clientcide.com/wiki/cnet-libraries/07-ui/11-waiter">clientcide Waiter</a>:</h3>
<p>[again, the waiter is cool, but it might be better this way]<br />
As you can see in it&#8217;s docs there if you have this &#8221; baseHref: &#8216;&#8230;&#8217; &#8221; which means that if you use the class the <strong>image will be by default loaded</strong> from this location: <a href="http://www.cnet.com/html/rb/assets/global/waiter/waiter.gif">http://www.cnet.com/html/rb/assets/global/waiter/waiter.gif</a> I think this is another &#8220;hack&#8221; around the <strong>MooTools policy</strong> &#8220;<em>don&#8217;t use more than one file in your Plugin</em>&#8221; *<em>hehe</em> offending people here&#8230;*.<br />
I mean what happens if this file gets forgotten? server upgrade &#8211; do we still need this waiter.gif? no, just delete it&#8230; :p ok that might be not the actual process but there is surely the<strong> possibility</strong> that <strong>this file will just vanish</strong> without a notice&#8230; why not deliver the file with the Plugin?<br />
It would gives me again a few benefits</p>
<ul>
<li>I can easily replace the image to my own (no need to change any js/css; just replace the file)</li>
<li>I can define/override the url in my css (if uses as background image) so again no need to change any javascript</li>
<li>What if I have multiple image files? I mean if I have a Plugin that uses some images from the cnet server; some from the plugin server; and some from my own server.. pretty hard to maintain right?</li>
</ul>
<h2>use of MPR within the Plugin <a href="http://mpr.mooforum.net/MprAdmin.php?mode=demo&#038;file=./Visual/MultiOverlays/Demos/MultiOverlays.html">MultiOverlays</a></h2>
<p>So now let&#8217;s take a closer look at a Plugin and a way I think it should be done. </p>
<h3>File MultiOverlay.js</h3>
<pre class="brush: javascript;">
$require(MPR.path + 'Core/Fx.Tween/Fx.Tween.js');
$require(MPR.path + 'More/Class.Occlude/Class.Occlude.js');
var MultiOverlay = new Class({
  ...
});
</pre>
<p>ok, here we define the <strong>requirements and the logic</strong> for one MultiOverlay. now if you want to use it I need to use it with an id and create the Class instance myself. If you know how it&#8217;s easy&#8230;</p>
<pre class="brush: javascript;">var myMultiOverlay = new MultiOverlay( $('imageWithId') );</pre>
<h3>File MultiOverlays.js</h3>
<p>this file is so short I will post it&#8217;s full code here&#8230;</p>
<pre class="brush: javascript;">
$require(MPR.path + 'Visual/MultiOverlays/MultiOverlay.js');
var MultiOverlays = new Class({
	multiOverlays: [],
	initialize: function(elements, options) {
		$$(elements).each( function(el) {
			this.multiOverlays.include( new MultiOverlay(el, options) );
		}, this);
	},
	getMultiOverlays: function() {
		return this.multiOverlays;
	}
});
</pre>
<p>So what do we get here, it just gives you the possibility to create <strong>Multiple MultiOverlay(s)</strong>&#8230; So now you can give the image(s) a class and for each image it will create a MultiOverlay instance which get&#8217;s saved in an array (if you may need it any time later&#8230;)</p>
<h3>File AutoMultiOverlays.js</h3>
<p>again such a short file&#8230; here is it&#8217;s code&#8230;</p>
<pre class="brush: javascript;">
$require(MPR.path + 'Visual/MultiOverlays/MultiOverlays.js');
var Auto = Auto || {};
window.addEvent('domready', function() {
	Auto.MultiOverlays = new MultiOverlays( '.MultiOverlay' );
});
</pre>
<p>basically it just creates a <strong>new MultiOverlays</strong> with a <strong>hard coded &#8220;default&#8221; value</strong>&#8230; so if you require this file you don&#8217;t need to write any javascript code at all, just give the CSS-class to your images and your done! <strong>It&#8217;s the easiest way you can do it&#8230; </strong>[here the value get's saved in the Auto variable as I might still want to use it later... the Auto variable is globally here]</p>
<h3>So why all this files?</h3>
<p>As I said above I think it&#8217;s vital to <strong>separate logic</strong> to where it belongs. And for me that means if I want to have a single MultiOverlay I should be able to. So the logic for Multiple MultiOverlays shouldn&#8217;t be in it, as it&#8217;s just more stuff I don&#8217;t need&#8230; :p<br />
And while we are at it, now that we need a Folder for it let&#8217;s add the <a href="http://mpr.mooforum.net/MprAdmin.php?mode=docu&#038;file=./Visual/MultiOverlays/Docu/MultiOverlays.md">Docu</a>. So now we got <strong>demos, docu, Resources</strong>(css, images) all in a single <a href="http://mpr.mooforum.net/MprAdmin.php?mode=zip&#038;file=Visual/MultiOverlays">Plugin Zip file</a>.<br />
It&#8217;s just <strong>easy to send</strong> it to someone and <strong>he get&#8217;s everything</strong> &#8211; I don&#8217;t need to explain what css image files he has to manually include&#8230; If you have a local MPR you can just <strong>install it in the admin area</strong>&#8230;.  (talking about easy&#8230; <img src='http://www.delusionworld.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  )</p>
<p>What do you want to hear next? more MPR best Pratice?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.delusionworld.com/mootools/mpr-best-practice-plugin-multioverlays/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MPR</title>
		<link>http://www.delusionworld.com/mootools/mpr/</link>
		<comments>http://www.delusionworld.com/mootools/mpr/#comments</comments>
		<pubDate>Wed, 15 Apr 2009 11:25:01 +0000</pubDate>
		<dc:creator>daKmoR</dc:creator>
				<category><![CDATA[MooTools]]></category>
		<category><![CDATA[MPR]]></category>
		<category><![CDATA[Plugin]]></category>
		<category><![CDATA[Repository]]></category>

		<guid isPermaLink="false">http://www.delusionworld.com/?p=87</guid>
		<description><![CDATA[I now finally have finished my first alpha for the local part of MPR. It should help you to use, create and share MooTools Plugins. For that it uses a well defined folder structure with defined filenames.
I guess I will create a screencast in the near feature&#8230;
for now just check out the demo:
http://mpr.mooforum.net/
(make sure to [...]]]></description>
			<content:encoded><![CDATA[<p>I now finally have finished my first alpha for the local part of MPR. It should help you to use, create and share MooTools Plugins. For that it uses a well defined folder structure with defined filenames.<br />
I guess I will create a screencast in the near feature&#8230;</p>
<p>for now just check out the demo:<br />
<a href="http://mpr.mooforum.net/">http://mpr.mooforum.net/</a><br />
(make sure to check out the search at the top right!) [no more missing search for docs... <img src='http://www.delusionworld.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> ]</p>
<p>if you&#8217;re interested check out the git project:<br />
<a href="http://github.com/daKmoR/mpr/tree/master">http://github.com/daKmoR/mpr/tree/master</a></p>
<p>I will try to port quite some plugins to MPR (usually it only means finding out the requirements and probably writing some docs/specs&#8230;). With that I guess it should be much easier to use multiple plugins.</p>
<p>If you have a Plugin you want to be integrated just send me the zip file.<br />
If you want to see your Plugin inside MPR but you don&#8217;t know how &#8211; just let me know and I will try to help&#8230;</p>
<p>If you want to know more about MPR you can see/read stuff here:<br />
<a href="http://www.delusionworld.com/mootools/mpr-preparation-part-1/">http://www.delusionworld.com/mootools/mpr-preparation-part-1/</a><br />
<a href="http://www.delusionworld.com/mootools/mpr-preparation-part-2/">http://www.delusionworld.com/mootools/mpr-preparation-part-2/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.delusionworld.com/mootools/mpr/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MPR Preparation Part 2</title>
		<link>http://www.delusionworld.com/mootools/mpr-preparation-part-2/</link>
		<comments>http://www.delusionworld.com/mootools/mpr-preparation-part-2/#comments</comments>
		<pubDate>Wed, 04 Feb 2009 00:38:13 +0000</pubDate>
		<dc:creator>daKmoR</dc:creator>
				<category><![CDATA[MooTools]]></category>
		<category><![CDATA[Plugin]]></category>
		<category><![CDATA[Repository]]></category>
		<category><![CDATA[Screencast]]></category>

		<guid isPermaLink="false">http://www.delusionworld.com/?p=16</guid>
		<description><![CDATA[As I promised here is the script to use your MooTools Plugin Repository even more sufficient. It&#8217;s all about easy handling. I want to use all the Plugin I have without including a lot of script, css tags in my header. With this php code it&#8217;s really easy to do it.
First pls see the Screencast [...]]]></description>
			<content:encoded><![CDATA[<p>As I promised here is the script to use your MooTools Plugin Repository even more sufficient. It&#8217;s all about easy handling. I want to use all the Plugin I have without including a lot of script, css tags in my header. With this php code it&#8217;s really easy to do it.</p>
<p>First pls see the Screencast <a href="http://screencast.com/t/gNj3SHhW">MPR Preparation Part 2</a>.</p>
<p>Here you can see how I like to work &#8211; never write to much code. So by using autoload and the php file you don&#8217;t need to care about any javascript or css. Once you are done with your work &#8211; you can easily just save the content you get from the php script and upload it, so you don&#8217;t need to autocreate this on your server &#8211; just upload ONE javascript file and ONE css file and you it will contain all your plugins relevant code (except for the images :p).</p>
<p>My next plans:</p>
<ul>
<li>create a demo page where you can just write js/html/css code and don&#8217;t need to worry about file inclusion (a little playground)</li>
<li>include a cache for the php script</li>
<li>include a lot more plugins</li>
<li>some other improvements for the script (find base tag, auto identify if the script is also used for css, &#8230;)</li>
</ul>
<p>If you wanna try the things you have seen in the Screencast just download <a href="http://www.delusionworld.com/wp-content/uploads/2009/02/mprpreperationpart2.zip">MPR.Preparation.Part2</a> extract it to a webserver (with php and curl) and look at the MPR.html.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.delusionworld.com/mootools/mpr-preparation-part-2/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>MPR Preparation Part 1</title>
		<link>http://www.delusionworld.com/mootools/mpr-preparation-part-1/</link>
		<comments>http://www.delusionworld.com/mootools/mpr-preparation-part-1/#comments</comments>
		<pubDate>Tue, 03 Feb 2009 10:54:27 +0000</pubDate>
		<dc:creator>daKmoR</dc:creator>
				<category><![CDATA[MooTools]]></category>
		<category><![CDATA[Plugin]]></category>
		<category><![CDATA[Repository]]></category>
		<category><![CDATA[Screencast]]></category>

		<guid isPermaLink="false">http://www.delusionworld.com/?p=9</guid>
		<description><![CDATA[Some Time ago I had an idea on how to make using MooTools evan easier. Basically it&#8217;s about using a &#8220;convention&#8221; for Plugins (directory structur) and intraducing an function to autoload Code that&#8217;s mandatory.
This is about developing locally and not using it on the public server. For general use I will provide a Script that [...]]]></description>
			<content:encoded><![CDATA[<p>Some Time ago I had an idea on how to make using MooTools evan easier. Basically it&#8217;s about using a &#8220;convention&#8221; for Plugins (directory structur) and intraducing an function to autoload Code that&#8217;s mandatory.</p>
<p>This is about developing locally and not using it on the public server. For general use I will provide a Script that automatically generates ONE MooTools File to be included within you page.</p>
<p>To see how a local MooTools Plugin Repository could help you while developing you can see a short <a href="http://www.screencast.com/users/daKmoR/folders/Jing/media/0653e165-c2ef-4b0b-a176-c04891df8227">screencast</a>.</p>
<p>For more Information you can see the original Post on <a href="http://www.mooforum.net/general12/idea-easy-plugin-respository-t1085.html">MooForum</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.delusionworld.com/mootools/mpr-preparation-part-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
