<?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>Nukium &#187; module</title>
	<atom:link href="http://nukium.com/tag/module/feed/" rel="self" type="application/rss+xml" />
	<link>http://nukium.com</link>
	<description>Ressources et tutoriaux : Web 2.0 - PHP - CodeIgniter - Webdesign</description>
	<lastBuildDate>Tue, 15 May 2012 15:45:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>CKEditor Helper for CodeIgniter</title>
		<link>http://nukium.com/developpement-php/codeigniter/ckeditor-helper-for-codeigniter/</link>
		<comments>http://nukium.com/developpement-php/codeigniter/ckeditor-helper-for-codeigniter/#comments</comments>
		<pubDate>Sat, 02 Jan 2010 17:36:59 +0000</pubDate>
		<dc:creator>Nukium</dc:creator>
				<category><![CDATA[CodeIgniter]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[module]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[telechargement]]></category>
		<category><![CDATA[tutoriel]]></category>
		<category><![CDATA[xhtml]]></category>

		<guid isPermaLink="false">http://nukium.com/?p=820</guid>
		<description><![CDATA[The CKEditor Helper for CodeIgniter allows to integrate the powerfull WYSIWYG text editor CKEditor into CodeIgniter applications. This helper can currently manage all CKEditor's available configuration options and custom styles definitions.]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_silver" style="float: right;margin-left: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fnukium.com%252Fdeveloppement-php%252Fcodeigniter%252Fckeditor-helper-for-codeigniter%252F%22%2C%20%22style%22%3A%20%22big%22%2C%20%22title%22%3A%20%22CKEditor%20Helper%20for%20CodeIgniter%22%20%7D);"></div>
<div lang="en" xml:lang="en">
<h2>Using CKEditor as a plugin into your CodeIgniter applications</h2>
<p><strong>CKEditor</strong> is a powerfull <strong>WYSIWYG text editor</strong> licensed under the GPL, LGPL and MPL <strong>open source</strong> licenses. CKEditor can easilly be added to any web page, you will find below a simple way to integrate CKeditor to your <strong>CodeIgniter applications</strong>.<br />
<img class="aligncenter size-full wp-image-821" title="CKEditor preview" src="http://www.nukium.com/wordpress/wp-content/uploads/2010/01/ckeditor.png" alt="" width="480" height="164" /></p>
<h2>Downloading CKEditor</h2>
<p>The first step is to download the <a rel="external nofollow" href="http://ckeditor.com/download">CKEditor editor package</a>, note that the helper have only be tested over CKEditor 3.0.2. Once done, you should consider to remove the <em>_samples</em> and <em>_sources</em> directories from the uncompressed files.</p>
<p>Then, place the entire ckeditor directory into a <em>/js/</em> folder. You can place it anywhere but remember to set the correct path when initializing the helper.</p>
<h2>Adding the CKEditor helper for CodeIgniter</h2>
<p>Download and place <a href="http://nukium.com/files/ckeditor_helper.zip">the ckeditor_helper.php</a> file into the CodeIgniter&#8217;s <em>system/application/helpers</em> folder.</p>
<p>This helper can manage all <a rel="external nofollow" href="http://docs.cksource.com/CKEditor_3.x/Developers_Guide/Setting_Configurations">CKEditor&#8217;s available configuration options</a>, <a rel="external nofollow" href="http://docs.cksource.com/CKEditor_3.x/Developers_Guide/Styles">custom styles definitions</a>, <strong>multiple intances of the editor on the same page</strong> and extra config parameters such as <a href="http://docs.cksource.com/CKEditor_3.x/Developers_Guide/Toolbar">toolbar definition</a>.</p>
<h2>Creating the controller</h2>
<p>First of all, we are going to create a controller that will set all the helper&#8217;s configuration options. In this exemple, we are going to instanciate two CKEditors with different configuration values. You are able to set all CKEditor&#8217;s available configuration options inside the config array. We are also going to define custom styles to replace the CKEditor&#8217;s default styles. Note that the id must match the textarea&#8217;s id in the view. Since the 2010-08-28 version, <strong>each styles definitions are applied to the associated CKEditor instance</strong>, allowing you to use different option set by instance. Since this version, you can also <strong>add severals CKEditor instance on the same page</strong> and define custom toolbars (thanks to the ronan&#8217;s patch <img src='http://nukium.com/wordpress/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> ).</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p820code1'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p8201"><td class="code" id="p820code1"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">class</span> Ckeditor <span style="color: #000000; font-weight: bold;">extends</span> Controller <span style="color: #009900;">&#123;</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">// extends CI_Controller for CI 2.x users</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000088;">$data</span> 	<span style="color: #339933;">=</span> 	<a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> __construct<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
		parent<span style="color: #339933;">::</span><span style="color: #004000;">Controller</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #666666; font-style: italic;">// parent::__construct(); for CI 2.x users</span>
&nbsp;
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">load</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">helper</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'url'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//You should autoload this one ;)</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">load</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">helper</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'ckeditor'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
&nbsp;
		<span style="color: #666666; font-style: italic;">//Ckeditor's configuration</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">data</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'ckeditor'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span>
&nbsp;
			<span style="color: #666666; font-style: italic;">//ID of the textarea that will be replaced</span>
			<span style="color: #0000ff;">'id'</span> 	<span style="color: #339933;">=&gt;</span> 	<span style="color: #0000ff;">'content'</span><span style="color: #339933;">,</span>
			<span style="color: #0000ff;">'path'</span>	<span style="color: #339933;">=&gt;</span>	<span style="color: #0000ff;">'js/ckeditor'</span><span style="color: #339933;">,</span>
&nbsp;
			<span style="color: #666666; font-style: italic;">//Optionnal values</span>
			<span style="color: #0000ff;">'config'</span> <span style="color: #339933;">=&gt;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span>
				<span style="color: #0000ff;">'toolbar'</span> 	<span style="color: #339933;">=&gt;</span> 	<span style="color: #0000ff;">&quot;Full&quot;</span><span style="color: #339933;">,</span> 	<span style="color: #666666; font-style: italic;">//Using the Full toolbar</span>
				<span style="color: #0000ff;">'width'</span> 	<span style="color: #339933;">=&gt;</span> 	<span style="color: #0000ff;">&quot;550px&quot;</span><span style="color: #339933;">,</span>	<span style="color: #666666; font-style: italic;">//Setting a custom width</span>
				<span style="color: #0000ff;">'height'</span> 	<span style="color: #339933;">=&gt;</span> 	<span style="color: #0000ff;">'100px'</span><span style="color: #339933;">,</span>	<span style="color: #666666; font-style: italic;">//Setting a custom height</span>
&nbsp;
			<span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
&nbsp;
			<span style="color: #666666; font-style: italic;">//Replacing styles from the &quot;Styles tool&quot;</span>
			<span style="color: #0000ff;">'styles'</span> <span style="color: #339933;">=&gt;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span>
&nbsp;
				<span style="color: #666666; font-style: italic;">//Creating a new style named &quot;style 1&quot;</span>
				<span style="color: #0000ff;">'style 1'</span> <span style="color: #339933;">=&gt;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a> <span style="color: #009900;">&#40;</span>
					<span style="color: #0000ff;">'name'</span> 		<span style="color: #339933;">=&gt;</span> 	<span style="color: #0000ff;">'Blue Title'</span><span style="color: #339933;">,</span>
					<span style="color: #0000ff;">'element'</span> 	<span style="color: #339933;">=&gt;</span> 	<span style="color: #0000ff;">'h2'</span><span style="color: #339933;">,</span>
					<span style="color: #0000ff;">'styles'</span> <span style="color: #339933;">=&gt;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span>
						<span style="color: #0000ff;">'color'</span> 	<span style="color: #339933;">=&gt;</span> 	<span style="color: #0000ff;">'Blue'</span><span style="color: #339933;">,</span>
						<span style="color: #0000ff;">'font-weight'</span> 	<span style="color: #339933;">=&gt;</span> 	<span style="color: #0000ff;">'bold'</span>
					<span style="color: #009900;">&#41;</span>
				<span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
&nbsp;
				<span style="color: #666666; font-style: italic;">//Creating a new style named &quot;style 2&quot;</span>
				<span style="color: #0000ff;">'style 2'</span> <span style="color: #339933;">=&gt;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a> <span style="color: #009900;">&#40;</span>
					<span style="color: #0000ff;">'name'</span> 	<span style="color: #339933;">=&gt;</span> 	<span style="color: #0000ff;">'Red Title'</span><span style="color: #339933;">,</span>
					<span style="color: #0000ff;">'element'</span> 	<span style="color: #339933;">=&gt;</span> 	<span style="color: #0000ff;">'h2'</span><span style="color: #339933;">,</span>
					<span style="color: #0000ff;">'styles'</span> <span style="color: #339933;">=&gt;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span>
						<span style="color: #0000ff;">'color'</span> 		<span style="color: #339933;">=&gt;</span> 	<span style="color: #0000ff;">'Red'</span><span style="color: #339933;">,</span>
						<span style="color: #0000ff;">'font-weight'</span> 		<span style="color: #339933;">=&gt;</span> 	<span style="color: #0000ff;">'bold'</span><span style="color: #339933;">,</span>
						<span style="color: #0000ff;">'text-decoration'</span>	<span style="color: #339933;">=&gt;</span> 	<span style="color: #0000ff;">'underline'</span>
					<span style="color: #009900;">&#41;</span>
				<span style="color: #009900;">&#41;</span>				
			<span style="color: #009900;">&#41;</span>
		<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">data</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'ckeditor_2'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span>
&nbsp;
			<span style="color: #666666; font-style: italic;">//ID of the textarea that will be replaced</span>
			<span style="color: #0000ff;">'id'</span> 	<span style="color: #339933;">=&gt;</span> 	<span style="color: #0000ff;">'content_2'</span><span style="color: #339933;">,</span>
			<span style="color: #0000ff;">'path'</span>	<span style="color: #339933;">=&gt;</span>	<span style="color: #0000ff;">'js/ckeditor'</span><span style="color: #339933;">,</span>
&nbsp;
			<span style="color: #666666; font-style: italic;">//Optionnal values</span>
			<span style="color: #0000ff;">'config'</span> <span style="color: #339933;">=&gt;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span>
				<span style="color: #0000ff;">'width'</span> 	<span style="color: #339933;">=&gt;</span> 	<span style="color: #0000ff;">&quot;550px&quot;</span><span style="color: #339933;">,</span>	<span style="color: #666666; font-style: italic;">//Setting a custom width</span>
				<span style="color: #0000ff;">'height'</span> 	<span style="color: #339933;">=&gt;</span> 	<span style="color: #0000ff;">'100px'</span><span style="color: #339933;">,</span>	<span style="color: #666666; font-style: italic;">//Setting a custom height</span>
				<span style="color: #0000ff;">'toolbar'</span> 	<span style="color: #339933;">=&gt;</span> 	<a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span>	<span style="color: #666666; font-style: italic;">//Setting a custom toolbar</span>
					<a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Bold'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'Italic'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
					<a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Underline'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'Strike'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'FontSize'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
					<a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Smiley'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
					<span style="color: #0000ff;">'/'</span>
				<span style="color: #009900;">&#41;</span>
			<span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
&nbsp;
			<span style="color: #666666; font-style: italic;">//Replacing styles from the &quot;Styles tool&quot;</span>
			<span style="color: #0000ff;">'styles'</span> <span style="color: #339933;">=&gt;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span>
&nbsp;
				<span style="color: #666666; font-style: italic;">//Creating a new style named &quot;style 1&quot;</span>
				<span style="color: #0000ff;">'style 3'</span> <span style="color: #339933;">=&gt;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a> <span style="color: #009900;">&#40;</span>
					<span style="color: #0000ff;">'name'</span> 		<span style="color: #339933;">=&gt;</span> 	<span style="color: #0000ff;">'Green Title'</span><span style="color: #339933;">,</span>
					<span style="color: #0000ff;">'element'</span> 	<span style="color: #339933;">=&gt;</span> 	<span style="color: #0000ff;">'h3'</span><span style="color: #339933;">,</span>
					<span style="color: #0000ff;">'styles'</span> <span style="color: #339933;">=&gt;</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span>
						<span style="color: #0000ff;">'color'</span> 	<span style="color: #339933;">=&gt;</span> 	<span style="color: #0000ff;">'Green'</span><span style="color: #339933;">,</span>
						<span style="color: #0000ff;">'font-weight'</span> 	<span style="color: #339933;">=&gt;</span> 	<span style="color: #0000ff;">'bold'</span>
					<span style="color: #009900;">&#41;</span>
				<span style="color: #009900;">&#41;</span>
&nbsp;
			<span style="color: #009900;">&#41;</span>
		<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>		
&nbsp;
&nbsp;
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> index<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">load</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">view</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'ckeditor'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">data</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<h2>Creating the view</h2>
<p>The <em>ckeditor.php</em> view only has to display two textarea elements with matched ids and call the display_ckeditor() helper&#8217;s function.</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p820code2'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p8202"><td class="code" id="p820code2"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>textarea name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;content&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;content&quot;</span> <span style="color: #339933;">&gt;&lt;</span>p<span style="color: #339933;">&gt;</span>Example data<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;/</span>textarea<span style="color: #339933;">&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> display_ckeditor<span style="color: #009900;">&#40;</span><span style="color: #000088;">$ckeditor</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
<span style="color: #339933;">&lt;</span>textarea name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;content_2&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;content_2&quot;</span> <span style="color: #339933;">&gt;&lt;</span>p<span style="color: #339933;">&gt;</span>Example data<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;&lt;/</span>textarea<span style="color: #339933;">&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> display_ckeditor<span style="color: #009900;">&#40;</span><span style="color: #000088;">$ckeditor_2</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
<span style="color: #339933;">&lt;/</span>textarea<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

<p>That&#8217;s all ! If you&#8217;ve followed all the steps correctly, two CKEditors should shows up in the view. <strong>Please note that I assume that you are loading also a correct header and footer view with all the xHTML required stuff.</strong></p>
<h2>Downloading the tutorial</h2>
<p>Source files of this tutorial (controller, helper, and view) can be <a href="http://nukium.com/files/CKEditor.zip">downloaded here</a>.</p>
<h2>Changelog</h2>
<ul class="charte">
<li><strong>2010-08-28:</strong> Ronan&#8217;s patch for custom toolbar definition added (thanks dude!).</li>
<li><strong>2010-08-28:</strong> Configuration options are now only applied on the associated CKEditor.</li>
<li><strong>2010-08-28:</strong> Several editors can now be displayed on the same page.</li>
<li><strong>2010-01-12:</strong> All the stuff moved out of <em>system/plugins</em>.</li>
<li><strong>2010-01-30:</strong> Fixed <strong>Internet Explorer</strong> compatibility issue.</li>
</ul>
<h2>Troubleshooting</h2>
<ul class="charte">
<li>If you are using the .htaccess file given by the CodeIgniter&#8217;s user guide and have placed the ckeditor&#8217;s folder into <em>system/plugins</em>, be sure to allow the directory system to be called via HTTP in order to allow access to the plugins directory</li>
</ul>
<h2>Licence</h2>
<p><a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/us/"><img style="border-width: 0;" src="http://i.creativecommons.org/l/by-sa/3.0/us/88x31.png" alt="Creative Commons License" /></a><br />
<span>CKEditor plugin for CodeIgniter</span> by <a rel="cc:attributionURL" href="http://www.nukium.com/codeigniter/ckeditor-helper-for-codeigniter">Samuel Sanchez</a> is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/us/">Creative Commons Attribution-Share Alike 3.0 United States License</a>.<br />
Based on a work at <a rel="dc:source" href="http://codeigniter.com/forums/viewthread/127374/">codeigniter.com</a>.<br />
Permissions beyond the scope of this license may be available at <a rel="cc:morePermissions" href="http://www.nukium.com/contact-nukium-developpeur-france/">http://www.nukium.com/contact-nukium-developpeur-france/</a>.</p>
<p>Please note that this helper is based on an original idea discussed in this <a href="http://codeigniter.com/forums/viewthread/127374/">CodeIgniter thread</a>.</p>
</div>

 <p><a href="http://nukium.com/wordpress/?flattrss_redirect&amp;id=820&amp;md5=e45eb59b0f302d8c41d60faaadfc79dc" title="Flattr" target="_blank"><img src="http://nukium.com/wordpress/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://nukium.com/developpement-php/codeigniter/ckeditor-helper-for-codeigniter/feed/</wfw:commentRss>
		<slash:comments>86</slash:comments>
		<atom:link rel="payment" href="https://flattr.com/submit/auto?user_id=Kromack&amp;popout=1&amp;url=http%3A%2F%2Fnukium.com%2Fdeveloppement-php%2Fcodeigniter%2Fckeditor-helper-for-codeigniter%2F&amp;language=fr_FR&amp;category=text&amp;title=CKEditor+Helper+for+CodeIgniter&amp;description=Using+CKEditor+as+a+plugin+into+your+CodeIgniter+applications+CKEditor+is+a+powerfull+WYSIWYG+text+editor+licensed+under+the+GPL%2C+LGPL+and+MPL+open+source+licenses.+CKEditor+can+easilly+be...&amp;tags=CodeIgniter%2Cdownload%2CJavaScript%2Cmodule%2Copen+source%2CPHP%2Cplugin%2Ctelechargement%2Ctutoriel%2Cxhtml%2Cblog" type="text/html" />
	</item>
		<item>
		<title>Tutorial CodeIgniter : Flashdata Highlighting with jQuery and jGrowl</title>
		<link>http://nukium.com/developpement-php/codeigniter/tutorial-codeigniter-flashdata-highlighting-with-jquery-and-jgrowl/</link>
		<comments>http://nukium.com/developpement-php/codeigniter/tutorial-codeigniter-flashdata-highlighting-with-jquery-and-jgrowl/#comments</comments>
		<pubDate>Mon, 14 Dec 2009 22:40:58 +0000</pubDate>
		<dc:creator>Nukium</dc:creator>
				<category><![CDATA[CodeIgniter]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[module]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[tutoriel]]></category>

		<guid isPermaLink="false">http://nukium.com/?p=755</guid>
		<description><![CDATA[Tutorial pour CodeIgniter montrant comment créer facilement un système de notifications basé sur les Flashdata de CodeIgniter ainsi que le plugin jGrowl pour jQuery. Attention, ce tutoriel est en anglais ;)]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_silver" style="float: right;margin-left: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fnukium.com%252Fdeveloppement-php%252Fcodeigniter%252Ftutorial-codeigniter-flashdata-highlighting-with-jquery-and-jgrowl%252F%22%2C%20%22style%22%3A%20%22big%22%2C%20%22title%22%3A%20%22Tutorial%20CodeIgniter%20%3A%20Flashdata%20Highlighting%20with%20jQuery%20and%20jGrowl%22%20%7D);"></div>
<div lang="en" xml:lang="en">
<img src="http://www.nukium.com/wordpress/wp-content/uploads/2009/12/growlicon.png" alt="growl icon" title="growl icon" width="128" height="128" class="alignright size-full wp-image-758" /><br />
This <strong>tutorial</strong> explain how to create a <strong>notification system</strong> based on the <strong>jGrowl plugin for jQuery</strong> and the <strong>CodeIgniter session Flashdata</strong>.</p>
<p>Basically, Flashdata are sessions data only available for the next server request and are then automatically removed. This class can easily be used to build a simple <strong>notification system</strong> for your application.</p>
<h2>Step 1: Create a Flashdata</h2>
<p>In order to use CodeIgniter flashdata, we need to load the session library. Then, the <code>set_flashdata</code> method allows to set a session flashdata. This code has to be placed in your controller.</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p755code5'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p7555"><td class="code" id="p755code5"><pre class="php" style="font-family:monospace;">	<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">load</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">library</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'session'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">session</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">set_flashdata</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'result'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'This is a custom notification using jGrowl and a Flashdata.'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<h2>Step 2: Display the Flashdata</h2>
<p>I assume that you are using a header view file that is loaded in first everywhere in your application. Just add the code below that test if the flashdata var named result is set, then write the jQuery code that lauch the jGrowl notification.</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p755code6'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p7556"><td class="code" id="p755code6"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">session</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">flashdata</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'result'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">!=</span> <span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
	<span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;</span>
	<span style="color: #339933;">&lt;!--</span>
	$<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>ready<span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>	
		$<span style="color: #339933;">.</span>jGrowl<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;&lt;?php echo <span style="color: #006699; font-weight: bold;">$this-&gt;session</span>-&gt;flashdata('result') ?&gt;&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>	
	<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #666666; font-style: italic;">//--&gt;				</span>
	<span style="color: #000000; font-weight: bold;">&lt;/script&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;?</span><span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<h2>Step 3: Install the jGrowl plugin for jQuery</h2>
<p>The code above can&#8217;t work without adding the <strong>JavaScript notification files</strong>. You just have to add the <strong>jQuery library</strong> and the <strong>jGrowl plugin</strong> files into your header, don&#8217;t forget the <strong>jGrowl CSS file</strong> too. These files can be <a href="http://plugins.jquery.com/files/jGrowl-1.2.4.zip">dowloaded here</a> or on the <a href="http://stanlemon.net/projects/jgrowl.html">jGrowl project home page</a>.</p>
<h2>Step 4: View demo!</h2>
<p>The live demo is available on my demos space: <a href="http://demos.nukium.com/codeigniter-jgrowl-notifications-flashdata-jquery">CodeIgniter Flashdata Highlighting with jQuery and jGrowl demonstration</a>.
</div>

 <p><a href="http://nukium.com/wordpress/?flattrss_redirect&amp;id=755&amp;md5=60b4f9354fa440f8e3192d4023b84d40" title="Flattr" target="_blank"><img src="http://nukium.com/wordpress/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://nukium.com/developpement-php/codeigniter/tutorial-codeigniter-flashdata-highlighting-with-jquery-and-jgrowl/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		<atom:link rel="payment" href="https://flattr.com/submit/auto?user_id=Kromack&amp;popout=1&amp;url=http%3A%2F%2Fnukium.com%2Fdeveloppement-php%2Fcodeigniter%2Ftutorial-codeigniter-flashdata-highlighting-with-jquery-and-jgrowl%2F&amp;language=fr_FR&amp;category=text&amp;title=Tutorial+CodeIgniter+%3A+Flashdata+Highlighting+with+jQuery+and+jGrowl&amp;description=This+tutorial+explain+how+to+create+a+notification+system+based+on+the+jGrowl+plugin+for+jQuery+and+the+CodeIgniter+session+Flashdata.+Basically%2C+Flashdata+are+sessions+data+only+available+for+the...&amp;tags=CodeIgniter%2CJavaScript%2CjQuery%2Cmodule%2CPHP%2Cplugin%2Ctutoriel%2Cblog" type="text/html" />
	</item>
		<item>
		<title>Afficher le nombre de lectures des articles sous WordPress</title>
		<link>http://nukium.com/developpement-php/afficher-le-nombre-de-lectures-des-articles-sous-wordpress/</link>
		<comments>http://nukium.com/developpement-php/afficher-le-nombre-de-lectures-des-articles-sous-wordpress/#comments</comments>
		<pubDate>Wed, 18 Nov 2009 23:01:31 +0000</pubDate>
		<dc:creator>Nukium</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[module]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[telechargement]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://nukium.com/?p=683</guid>
		<description><![CDATA[WP-PostViews est un plugin pour WordPress permettant d'afficher le nombres de lectures (vues) pour chaque billet. Le plugin dispose également d'une interface d'administration permettant de le configurer selon ses besoins...]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_silver" style="float: right;margin-left: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fnukium.com%252Fdeveloppement-php%252Fafficher-le-nombre-de-lectures-des-articles-sous-wordpress%252F%22%2C%20%22style%22%3A%20%22big%22%2C%20%22title%22%3A%20%22Afficher%20le%20nombre%20de%20lectures%20des%20articles%20sous%20WordPress%22%20%7D);"></div>
<p><strong>WordPress</strong> ne gère pas nativement de fonctionnalité permettant d&#8217;enregistrer puis d&#8217;afficher le<strong> nombre de vues</strong> (lectures) des billets.</p>
<p>Heureusement, il existe un plugin nommé <a href="http://lesterchan.net/wordpress/readme/wp-postviews.html" target="_blank">WP-PostViews</a> compatible avec les <strong>widgets</strong> de <strong>WordPress</strong> permettant d&#8217;afficher le nombre de lectures de chaque article.</p>
<p>Si vous désirez afficher directement dans votre thème le nombre de vues, vous pouvez utiliser le code ci-dessous :</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p683code9'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p6839"><td class="code" id="p683code9"><pre class="php" style="font-family:monospace;">Ce billet à été lu <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><a href="http://www.php.net/function_exists"><span style="color: #990000;">function_exists</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'the_views'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> the_views<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>Notez que le plugin dispose d&#8217;une interface d&#8217;administration dans laquelle le texte affiché peut être modifié <img src='http://nukium.com/wordpress/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>

 <p><a href="http://nukium.com/wordpress/?flattrss_redirect&amp;id=683&amp;md5=05048fb552f3e2ccd26242c3d3193025" title="Flattr" target="_blank"><img src="http://nukium.com/wordpress/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://nukium.com/developpement-php/afficher-le-nombre-de-lectures-des-articles-sous-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<atom:link rel="payment" href="https://flattr.com/submit/auto?user_id=Kromack&amp;popout=1&amp;url=http%3A%2F%2Fnukium.com%2Fdeveloppement-php%2Fafficher-le-nombre-de-lectures-des-articles-sous-wordpress%2F&amp;language=fr_FR&amp;category=text&amp;title=Afficher+le+nombre+de+lectures+des+articles+sous+WordPress&amp;description=WordPress+ne+g%C3%A8re+pas+nativement+de+fonctionnalit%C3%A9+permettant+d%26%238217%3Benregistrer+puis+d%26%238217%3Bafficher+le+nombre+de+vues+%28lectures%29+des+billets.+Heureusement%2C+il+existe+un+plugin+nomm%C3%A9+WP-PostViews+compatible+avec+les+widgets+de...&amp;tags=module%2Copen+source%2Cplugin%2Ctelechargement%2Cwordpress%2Cblog" type="text/html" />
	</item>
		<item>
		<title>Compteur personnalisé pour FeedBurner avec PHP ou CodeIgniter</title>
		<link>http://nukium.com/developpement-php/compteur-personnalise-pour-feedburner-avec-php-ou-codeigniter/</link>
		<comments>http://nukium.com/developpement-php/compteur-personnalise-pour-feedburner-avec-php-ou-codeigniter/#comments</comments>
		<pubDate>Wed, 12 Aug 2009 13:20:08 +0000</pubDate>
		<dc:creator>Nukium</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[CodeIgniter]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[module]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[telechargement]]></category>
		<category><![CDATA[tutoriel]]></category>
		<category><![CDATA[web 2.0]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://nukium.com/?p=428</guid>
		<description><![CDATA[Saviez-vous qu&#8217;il était possible d&#8217;afficher le nombre des abonnés de votre flux Google FeedBurner dans un compteur personnalisé ? En effet, FeedBurner fournit une API nommée Awareness qui permet de récupérer les informations d&#8217;un compte via une requête XML. Il devient donc facilement possible de récupérer l&#8217;information puis de l&#8217;afficher dans un compteur designé par [...]]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_silver" style="float: right;margin-left: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fnukium.com%252Fdeveloppement-php%252Fcompteur-personnalise-pour-feedburner-avec-php-ou-codeigniter%252F%22%2C%20%22style%22%3A%20%22big%22%2C%20%22title%22%3A%20%22Compteur%20personnalis%C3%A9%20pour%20FeedBurner%20avec%20PHP%20ou%20CodeIgniter%22%20%7D);"></div>
<p><a href="http://www.nukium.com/feedburner-library-for-php-and-codeigniter/"><img class="alignleft size-full wp-image-439" title="feedburner" src="http://www.nukium.com/wordpress/wp-content/uploads/2009/08/feedburner.png" alt="feedburner" width="256" height="256" /></a></p>
<p>Saviez-vous qu&#8217;il était possible d&#8217;afficher le nombre des abonnés de votre flux <strong>Google FeedBurner</strong> dans un compteur personnalisé ?</p>
<p>En effet, <strong>FeedBurner </strong>fournit une <strong>API</strong> nommée <strong>Awareness </strong>qui permet de récupérer les informations d&#8217;un compte via une requête <strong>XML</strong>. Il devient donc facilement possible de récupérer l&#8217;information puis de l&#8217;afficher dans un compteur designé par vos soins.</p>
<p>Le seul bémol est que pour récupérer cette information, une requête HTTP sur le serveur de <strong>FeedBurner</strong> est nécessaire, il est donc nécessaire de mettre en place un système de cache pour ne pas dégrader sensiblement les performances de votre site Internet.</p>
<p>C&#8217;est pourquoi la librairie intègre un système de cache par fichier XML permettant de stocker l&#8217;information pendant une période donnée (configurable). Notez que vous pouvez également choisir de désactiver complètement le système de cache.</p>
<p>Ma librairie est disponible pour <strong>PHP </strong>ainsi que pour le <strong>framework CodeIgniter</strong> sous licence LGPL.</p>
<p><a href="http://www.nukium.com/feedburner-library-for-php-and-codeigniter/"><strong>Pour télécharger la librairie, merci de vous rentre sur la page dédiée.</strong></a></p>

 <p><a href="http://nukium.com/wordpress/?flattrss_redirect&amp;id=428&amp;md5=6c0610faadc38c5434fd7606237dc25d" title="Flattr" target="_blank"><img src="http://nukium.com/wordpress/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://nukium.com/developpement-php/compteur-personnalise-pour-feedburner-avec-php-ou-codeigniter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<atom:link rel="payment" href="https://flattr.com/submit/auto?user_id=Kromack&amp;popout=1&amp;url=http%3A%2F%2Fnukium.com%2Fdeveloppement-php%2Fcompteur-personnalise-pour-feedburner-avec-php-ou-codeigniter%2F&amp;language=fr_FR&amp;category=text&amp;title=Compteur+personnalis%C3%A9+pour+FeedBurner+avec+PHP+ou+CodeIgniter&amp;description=Saviez-vous+qu%26%238217%3Bil+%C3%A9tait+possible+d%26%238217%3Bafficher+le+nombre+des+abonn%C3%A9s+de+votre+flux+Google+FeedBurner+dans+un+compteur+personnalis%C3%A9+%3F+En+effet%2C+FeedBurner+fournit+une+API+nomm%C3%A9e+Awareness+qui+permet+de...&amp;tags=CodeIgniter%2Cdownload%2Cmodule%2CPHP%2Cplugin%2Ctelechargement%2Ctutoriel%2Cweb+2.0%2Cxml%2Cblog" type="text/html" />
	</item>
		<item>
		<title>MooEasyRollover &#8211; The easiest rollover image plugin for Mootools !</title>
		<link>http://nukium.com/javascript/mootools/mooeasyrollover-the-easiest-rollover-image-plugin-for-mootools/</link>
		<comments>http://nukium.com/javascript/mootools/mooeasyrollover-the-easiest-rollover-image-plugin-for-mootools/#comments</comments>
		<pubDate>Wed, 10 Jun 2009 17:25:40 +0000</pubDate>
		<dc:creator>Nukium</dc:creator>
				<category><![CDATA[MooTools]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[module]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[tutoriel]]></category>
		<category><![CDATA[web 2.0]]></category>
		<category><![CDATA[web design]]></category>
		<category><![CDATA[xhtml]]></category>

		<guid isPermaLink="false">http://nukium.com/?p=302</guid>
		<description><![CDATA[MooEasyRollover - The easiest rollover image plugin for Mootools ! Please see this post to know how to get the MooEasyRollover plugin !]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_silver" style="float: right;margin-left: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fnukium.com%252Fjavascript%252Fmootools%252Fmooeasyrollover-the-easiest-rollover-image-plugin-for-mootools%252F%22%2C%20%22style%22%3A%20%22big%22%2C%20%22title%22%3A%20%22MooEasyRollover%20-%20The%20easiest%20rollover%20image%20plugin%20for%20Mootools%20%21%22%20%7D);"></div>
<p><img src="http://demos.nukium.com/images/mooeasyrollover/logo-mooeasyrollover.png" width="500" height="108" alt="MooEasyRollover logo" title="MooEasyRollover logo" /></p>
<h2>What is MooEasyRollover ?</h2>
<p><strong>MooEasyRollover </strong>is a plugin for Mootools that allows you to make a simple rollover image without writing any code line !<br />
The plugin is able to detect all images tagged with a specific class in order to add a rollover image behavior with an image caching.</p>
<h2>Live Demo</h2>
<p>Check out the <a href="http://demos.nukium.com/mooeasyrollover" target="_blank">MooEasyRollover live demo</a> to see it in action !</p>
<h2>Why this Mootools plugin ?</h2>
<p>I was working on an old website that use the Macromedia function mm_swapimage, when I added some Mootools stuff, I thought it can be cool to be able to do the same work than mm_swapimage with a Mootools class <img src='http://nukium.com/wordpress/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<h2>Installation instructions</h2>
<ul class="charte">
<li><a href="http://www.nukium.com/files/MooEasyRollover.zip">Download</a> the <strong>MooEasyRollover</strong> archive.</li>
<li>Then, add mootools to your page, note that the plugin requires the <strong>Assets</strong> class of the <a href="http://mootools.net/more">more builder</a>.</li>
<li>Add the MooEasyRollover class to your page :</li>
</ul>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p302code11'); return false;">View Code</a> HTML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p30211"><td class="code" id="p302code11"><pre class="html" style="font-family:monospace;">&lt;script src=&quot;/js/mooeasyrollover/mootools-1.2.2-core.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;/js/mooeasyrollover/mootools-1.2.2.2-more.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;/js/mooeasyrollover/mooeasyrollover.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;</pre></td></tr></table></div>

<ul class="charte">
<li>Use this code to launch the plugin. Make sure to set options with the correct values according to your server.</li>
</ul>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p302code12'); return false;">View Code</a> JAVASCRIPT</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p30212"><td class="code" id="p302code12"><pre class="javascript" style="font-family:monospace;">window.<span style="color: #660066;">addEvent</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'domready'</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
        <span style="color: #006600; font-style: italic;">//MooEasyRollover launcher</span>
	<span style="color: #003366; font-weight: bold;">var</span> MooEasyRolloverInstance <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> MooEasyRollover<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
		MooEasyRolloverClass <span style="color: #339933;">:</span> <span style="color: #3366CC;">'rollover'</span><span style="color: #339933;">,</span> <span style="color: #006600; font-style: italic;">//Set the class which tags all buttons to rollover</span>
		fullPath <span style="color: #339933;">:</span> <span style="color: #3366CC;">'http://www.domain.com/buttons/'</span><span style="color: #339933;">,</span> <span style="color: #006600; font-style: italic;">//Set the full path to your images folder</span>
		prefix<span style="color: #339933;">:</span> <span style="color: #3366CC;">'-on'</span> <span style="color: #006600; font-style: italic;">//Set the prefix of mouseover images</span>
	<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>	
&nbsp;
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p><strong>MooEasyRolloverClass </strong>is the classname used to identify images to rollover.</p>
<p><strong>Fullpath</strong> is the path to the images folder to use.</p>
<p><strong>Prefix</strong> is used to identify rollover images, for exemple, in order to rollover <strong>button.png</strong> you have to create a <strong>button-on.png</strong> image in the <strong>fullPath folder</strong>.</p>
<h2>Download</h2>
<p><a href="http://www.nukium.com/files/MooEasyRollover.zip">Click here to download MooEasyRollover.</a></p>

 <p><a href="http://nukium.com/wordpress/?flattrss_redirect&amp;id=302&amp;md5=f0444e2983e44f1d28a9cf3a93974dd9" title="Flattr" target="_blank"><img src="http://nukium.com/wordpress/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://nukium.com/javascript/mootools/mooeasyrollover-the-easiest-rollover-image-plugin-for-mootools/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		<atom:link rel="payment" href="https://flattr.com/submit/auto?user_id=Kromack&amp;popout=1&amp;url=http%3A%2F%2Fnukium.com%2Fjavascript%2Fmootools%2Fmooeasyrollover-the-easiest-rollover-image-plugin-for-mootools%2F&amp;language=fr_FR&amp;category=text&amp;title=MooEasyRollover+%26%238211%3B+The+easiest+rollover+image+plugin+for+Mootools+%21&amp;description=What+is+MooEasyRollover+%3F+MooEasyRollover+is+a+plugin+for+Mootools+that+allows+you+to+make+a+simple+rollover+image+without+writing+any+code+line+%21+The+plugin+is+able+to...&amp;tags=ajax%2CJavaScript%2Cmodule%2CMooTools%2Cplugin%2Ctutoriel%2Cweb+2.0%2Cweb+design%2Cxhtml%2Cblog" type="text/html" />
	</item>
		<item>
		<title>Apprendre à utiliser les points d&#8217;arrêt de Firebug</title>
		<link>http://nukium.com/developpement-php/apprendre-a-utiliser-les-points-darret-de-firebug/</link>
		<comments>http://nukium.com/developpement-php/apprendre-a-utiliser-les-points-darret-de-firebug/#comments</comments>
		<pubDate>Wed, 08 Apr 2009 10:58:23 +0000</pubDate>
		<dc:creator>Nukium</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[module]]></category>
		<category><![CDATA[MooTools]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://nukium.com/?p=140</guid>
		<description><![CDATA[Firebug est un module pour Firefox extrêmement complet qui facilite considérablement le développement d'applications web. Par le biais d'un screencast, Jonathan Snook nous propose de d'apprendre à utiliser les points d'arrêt (breakpoints) utiles au développement Javascript.]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_silver" style="float: right;margin-left: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fnukium.com%252Fdeveloppement-php%252Fapprendre-a-utiliser-les-points-darret-de-firebug%252F%22%2C%20%22style%22%3A%20%22big%22%2C%20%22title%22%3A%20%22Apprendre%20%C3%A0%20utiliser%20les%20points%20d%27arr%C3%AAt%20de%20Firebug%22%20%7D);"></div>
<p><img class="aligncenter size-full wp-image-144" title="firebug1" src="http://www.nukium.com/wordpress/wp-content/uploads/2009/04/firebug1.png" alt="firebug1" width="445" height="154" /></p>
<p>Firebug comme tout le monde le sais est un des meilleurs modules de développement pour Firefox. Outre ses fonctionnalités merveilleuses d&#8217;aide à la création de pages XHTML / CSS, les outils Javascript dont il dispose sont également fantastiques.</p>
<p>Parmi les fonctionnalités Javascript de Firebug, les points d&#8217;arrêts (breakpoints) peuvent s&#8217;avérer très utile pour le développement Javascript (et donc Mootools by the way) car ils permettent d&#8217;interrompre l&#8217;exécution du code à la volée, puis de reprendre l&#8217;exécution pas-à-pas.</p>
<p>C&#8217;est clairement le même fonctionnement qu&#8217;un débugueur classique dans n&#8217;importe qu&#8217;elle IDE.</p>
<p>Pour nous aider dans cette tâche, <em>Jonathan Snook </em>de <em>snook.ca</em> a créé un screencast très bien ficelé qui montre par l&#8217;exemple comment utiliser le débugueur Javascript de Firebug.</p>
<p>Je vous invite tous à le consulter, en revanche ce screencast n&#8217;est disponible qu&#8217;en anglais <img src='http://nukium.com/wordpress/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><a href="http://snook.ca/archives/javascript/firebug-breakpoints/">Consulter le screencast de <em>Jonathan Snook</em> sur l&#8217;utilisation des points d&#8217;arrêts de Firebug.</a></p>
<p><a href="http://getfirebug.com/">Pour ceux qui n&#8217;ont pas Firebug (ça existe ?) c&#8217;est par là.</a></p>

 <p><a href="http://nukium.com/wordpress/?flattrss_redirect&amp;id=140&amp;md5=b995b5da82724f0488285653b7252941" title="Flattr" target="_blank"><img src="http://nukium.com/wordpress/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://nukium.com/developpement-php/apprendre-a-utiliser-les-points-darret-de-firebug/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<atom:link rel="payment" href="https://flattr.com/submit/auto?user_id=Kromack&amp;popout=1&amp;url=http%3A%2F%2Fnukium.com%2Fdeveloppement-php%2Fapprendre-a-utiliser-les-points-darret-de-firebug%2F&amp;language=fr_FR&amp;category=text&amp;title=Apprendre+%C3%A0+utiliser+les+points+d%26%238217%3Barr%C3%AAt+de+Firebug&amp;description=Firebug+comme+tout+le+monde+le+sais+est+un+des+meilleurs+modules+de+d%C3%A9veloppement+pour+Firefox.+Outre+ses+fonctionnalit%C3%A9s+merveilleuses+d%26%238217%3Baide+%C3%A0+la+cr%C3%A9ation+de+pages+XHTML+%2F+CSS%2C+les...&amp;tags=ajax%2Cfirefox%2CJavaScript%2Cmodule%2CMooTools%2Cplugin%2Cblog" type="text/html" />
	</item>
		<item>
		<title>Autoriser les fichiers .htaccess en local</title>
		<link>http://nukium.com/developpement-php/autoriser-les-fichiers-htaccess-en-local/</link>
		<comments>http://nukium.com/developpement-php/autoriser-les-fichiers-htaccess-en-local/#comments</comments>
		<pubDate>Sun, 08 Mar 2009 13:30:25 +0000</pubDate>
		<dc:creator>Nukium</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[module]]></category>
		<category><![CDATA[rewrite]]></category>

		<guid isPermaLink="false">http://nukium.com/?p=55</guid>
		<description><![CDATA[Comment autoriser les fichiers .htaccess en local avec les logiciels de type WAMP, MAMP et LAMP.]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_silver" style="float: right;margin-left: 0.75em; background: url(data:,%7B%20%22url%22%3A%20%22http%253A%252F%252Fnukium.com%252Fdeveloppement-php%252Fautoriser-les-fichiers-htaccess-en-local%252F%22%2C%20%22style%22%3A%20%22big%22%2C%20%22title%22%3A%20%22Autoriser%20les%20fichiers%20.htaccess%20en%20local%22%20%7D);"></div>
<p>Lorsque l&#8217;on développe en local avec les logiciels Wampserver sous Windows ou encore MAMP sous Max OS X, les fichiers .htaccess ne fonctionnent pas avec l&#8217;installation par défaut. Le plus souvent, le serveur renvoie un code d&#8217;erreur 500.</p>
<p>La raison est simple, le module <strong>rewrite</strong> d&#8217;Apache n&#8217;est pas activé par défaut, pour l&#8217;activer il suffit d&#8217;éditer le fichier de configuration d&#8217;Apache (httpd.conf).</p>
<p>Sous Wampserver, il se trouve dans : <em>Program Files\wamp\bin\apache\Apache2.2.11\conf</em>.</p>
<p><strong>Pour activer le module rewrite, remplacez la ligne :</strong></p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p55code15'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p5515"><td class="code" id="p55code15"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#LoadModule rewrite_module modules/mod_rewrite.so</span></pre></td></tr></table></div>

<p><strong>Par :</strong></p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p55code16'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p5516"><td class="code" id="p55code16"><pre class="bash" style="font-family:monospace;">LoadModule rewrite_module modules<span style="color: #000000; font-weight: bold;">/</span>mod_rewrite.so</pre></td></tr></table></div>

<p>Redémarrez en suite vos services afin que la modification soit prise en compte <img src='http://nukium.com/wordpress/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>

 <p><a href="http://nukium.com/wordpress/?flattrss_redirect&amp;id=55&amp;md5=ae25a1f74bf17738163296aa17d6ad5a" title="Flattr" target="_blank"><img src="http://nukium.com/wordpress/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://nukium.com/developpement-php/autoriser-les-fichiers-htaccess-en-local/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<atom:link rel="payment" href="https://flattr.com/submit/auto?user_id=Kromack&amp;popout=1&amp;url=http%3A%2F%2Fnukium.com%2Fdeveloppement-php%2Fautoriser-les-fichiers-htaccess-en-local%2F&amp;language=fr_FR&amp;category=text&amp;title=Autoriser+les+fichiers+.htaccess+en+local&amp;description=Lorsque+l%26%238217%3Bon+d%C3%A9veloppe+en+local+avec+les+logiciels+Wampserver+sous+Windows+ou+encore+MAMP+sous+Max+OS+X%2C+les+fichiers+.htaccess+ne+fonctionnent+pas+avec+l%26%238217%3Binstallation+par+d%C3%A9faut.+Le+plus...&amp;tags=apache%2Chtaccess%2Cmodule%2Crewrite%2Cblog" type="text/html" />
	</item>
	</channel>
</rss>

