<?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>&#38; pourquoi j’n’écrirais pas ça ? &#187; b2evolution</title>
	<atom:link href="http://blogs.wittwer.fr/whiler/tag/b2evolution/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.wittwer.fr/whiler</link>
	<description>Pour partager des choses que j&#039;ai envie d&#039;écrire...</description>
	<lastBuildDate>Fri, 20 Jan 2012 19:07:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Migration du blog</title>
		<link>http://blogs.wittwer.fr/whiler/2009/10/05/blog-migration-b2evolution-wordpress/</link>
		<comments>http://blogs.wittwer.fr/whiler/2009/10/05/blog-migration-b2evolution-wordpress/#comments</comments>
		<pubDate>Mon, 05 Oct 2009 19:30:55 +0000</pubDate>
		<dc:creator>Whiler</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[b2evolution]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[mise à jour]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://blogs.wittwer.fr/whiler/?p=336</guid>
		<description><![CDATA[J'ai migré mon blog de b2evolution à WordPress...]]></description>
			<content:encoded><![CDATA[<p>J&#8217;ai migré mon <a href="http://fr.wikipedia.org/wiki/blog" rel="glossary" target="_blank" title="Wikipedia, D&eacute;finition de&nbsp;: blog" style="" >blog</a><sup style="font-family: Georgia, Times New Roman, Serif; font-weight: bold; color: #AAAAAA" ><em>W</em></sup> de <a href="http://b2evolution.net/" target="_blank">b2evolution</a> à <a href="http://www.wordpress-fr.net/" target="_blank">WordPress</a>&#8230;</p>
<p>Mais pour quelles raisons <img src='http://blogs.wittwer.fr/whiler/wp-includes/images/smilies/why.gif' alt=':??:' class='wp-smiley' /><br />
Pour les suivantes :</p>
<ul>
<li>Après avoir mis à jour ma version de <a href="http://fr.wikipedia.org/wiki/b2evolution" rel="glossary" target="_blank" title="Wikipedia, D&eacute;finition de&nbsp;: b2evolution" style="" >b2evolution</a><sup style="font-family: Georgia, Times New Roman, Serif; font-weight: bold; color: #AAAAAA" ><em>W</em></sup>, j&#8217;ai rencontré des erreurs <a href="http://fr.wikipedia.org/wiki/JavaScript" rel="glossary" target="_blank" title="Wikipedia, D&eacute;finition de&nbsp;: JavaScript" style="" >JavaScript</a><sup style="font-family: Georgia, Times New Roman, Serif; font-weight: bold; color: #AAAAAA" ><em>W</em></sup> bloquantes :
<ul>
<li>Incompatibilité entre la barre d&#8217;outil et le plugin Lightbox&#8230;</li>
<li>J&#8217;ai essayé de trouver la cause du problème, mais en vain&#8230;</li>
</ul>
</li>
<li>J&#8217;avais envie de tester un des concurrents
<ul>
<li>Installation sans problème</li>
<li>Ajout d&#8217;extensions directement à partir de l&#8217;interface d&#8217;administration</li>
<li>Tests de plusieurs habillages, puis traduction et adaptation de celui qui m&#8217;a le plus plu parmi ceux que j&#8217;ai testés</li>
<li>J&#8217;ai perdu mes répertoires pour mes fichiers uploadés, les mélangeant tous ensemble pour une journée, mais cela n&#8217;est pas bloquant</li>
<li>L&#8217;interface est simple et conviviale</li>
</ul>
</li>
<li>Celui-ci répond également à mes besoins&#8230; un seul blog au lieu de plusieurs, mais pour ce dont je m&#8217;en sers, ce sera largement suffisant&#8230;</li>
</ul>
<p>Actuellement, l&#8217;interface ressemble à ceci :</p>
<div id="attachment_337" class="wp-caption aligncenter" style="width: 310px"><img class="size-full wp-image-337" title="Thème Blog Whiler" src="http://blogs.wittwer.fr/whiler/wp-content/uploads/2009/10/screenshot.png" alt="Thème Blog Whiler 5-10-2009" width="300" height="196" /><p class="wp-caption-text">Thème Blog Whiler</p></div>
<p>Pour &laquo;&nbsp;migrer&nbsp;&raquo;, j&#8217;ai procédé ainsi :</p>
<p><span id="more-336"></span></p>
<ul>
<li>Mon blog était géré par b2evolution à l&#8217;adresse suivante : <a title="Blog de Whiler" href="http://blogs.wittwer.fr/whiler/">http://blogs.wittwer.fr/whiler/</a></li>
<li>J&#8217;ai installé WordPress dans un autre répertoire de ce sous-domaine : <a title="404" href="http://blogs.wittwer.fr/test/">http://blogs.wittwer.fr/test/</a>
<ul>
<li>J&#8217;ai testé différentes fonctionnalités de celui-ci pour voir s&#8217;il répondait à mes besoins.</li>
<li>J&#8217;ai également recopié quelques articles dans celui-ci pour avoir un jeu de test conforme.</li>
</ul>
</li>
<li>Lorsque j&#8217;ai décidé de passer de l&#8217;un à l&#8217;autre, j&#8217;ai tout d&#8217;abord recréer chaque article existant dans b2evolution dans <a href="http://fr.wikipedia.org/wiki/WordPress" rel="glossary" target="_blank" title="Wikipedia, D&eacute;finition de&nbsp;: WordPress" style="" >WordPress</a><sup style="font-family: Georgia, Times New Roman, Serif; font-weight: bold; color: #AAAAAA" ><em>W</em></sup>, &laquo;&nbsp;recréer&nbsp;&raquo; car :
<ul>
<li>Je n&#8217;avais pas envie de paramétrer un <a href="http://fr.wikipedia.org/wiki/ETL" rel="glossary" target="_blank" title="Wikipedia, D&eacute;finition de&nbsp;: ETL" style="" >ETL</a><sup style="font-family: Georgia, Times New Roman, Serif; font-weight: bold; color: #AAAAAA" ><em>W</em></sup> pour effectuer cette migration car cela aurait été super fastidieux pour qu&#8217;ils sachent tout faire&#8230; dans tout, j&#8217;inclue :
<ul>
<li>les articles&#8230; j&#8217;ai pas trop de doute sur ça&#8230;</li>
<li>les métadonnées des articles&#8230; pas de doute non plus&#8230;</li>
<li>la mise en forme&#8230; aïe&#8230;</li>
<li>les différents mots-clés précédemment utilisés pour, des smileys, du code source, &#8230;</li>
</ul>
</li>
<li>Création des articles à la main et mise à jour du thème associé pour que cela fonctionne tant sous <a href="http://fr.wikipedia.org/wiki/Firefox" rel="glossary" target="_blank" title="Wikipedia, D&eacute;finition de&nbsp;: Firefox" style="" >Firefox</a><sup style="font-family: Georgia, Times New Roman, Serif; font-weight: bold; color: #AAAAAA" ><em>W</em></sup> qu&#8217;<a href="http://fr.wikipedia.org/wiki/Internet_Explorer" rel="glossary" target="_blank" title="Wikipedia, D&eacute;finition de&nbsp;: IE" style="" >IE</a><sup style="font-family: Georgia, Times New Roman, Serif; font-weight: bold; color: #AAAAAA" ><em>W</em></sup>.</li>
</ul>
</li>
<li>Une fois avec mes deux blogs similaires par les articles qu&#8217;ils contenaient, et il ne restait plus qu&#8217;à passer de &laquo;&nbsp;<a title="404" href="http://blogs.wittwer.fr/test/">test</a>&nbsp;&raquo; à &laquo;&nbsp;<a title="Blog de Whiler" href="http://blogs.wittwer.fr/whiler/">whiler</a>&nbsp;&raquo; :
<ul>
<li>Une fois la connexion FTP disponible chez <a title="OVH" href="http://www.ovh.com/" target="_blank">OVH</a>, suppression du répertoire &laquo;&nbsp;whiler&nbsp;&raquo; et renommage de &laquo;&nbsp;test&nbsp;&raquo; en &laquo;&nbsp;whiler&nbsp;&raquo;</li>
<li>Modification du fichier <a href="http://fr.wikipedia.org/wiki/Htaccess" rel="glossary" target="_blank" title="Wikipedia, D&eacute;finition de&nbsp;: .htaccess" style="" >.htaccess</a><sup style="font-family: Georgia, Times New Roman, Serif; font-weight: bold; color: #AAAAAA" ><em>W</em></sup> pour remplacer les &laquo;&nbsp;test&nbsp;&raquo; par &laquo;&nbsp;whiler&nbsp;&raquo; également</li>
<li>Mise à jour des données des tables utilisées par WordPress pour remplacer tous les <a title="404" href="../../test/">http://blogs.wittwer.fr/test/</a> en <a title="Blog de Whiler" href="http://blogs.wittwer.fr/whiler/">http://blogs.wittwer.fr/whiler/</a></li>
</ul>
</li>
<li>Et le tour était joué&#8230; <img src='http://blogs.wittwer.fr/whiler/wp-includes/images/smilies/biggthumpup.gif' alt=':ok2:' class='wp-smiley' /> </li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blogs.wittwer.fr/whiler/2009/10/05/blog-migration-b2evolution-wordpress/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Mises à jour</title>
		<link>http://blogs.wittwer.fr/whiler/2009/10/03/update-sites/</link>
		<comments>http://blogs.wittwer.fr/whiler/2009/10/03/update-sites/#comments</comments>
		<pubDate>Sat, 03 Oct 2009 21:30:57 +0000</pubDate>
		<dc:creator>Whiler</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[b2evolution]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[mise à jour]]></category>
		<category><![CDATA[Piwigo]]></category>
		<category><![CDATA[unicode]]></category>

		<guid isPermaLink="false">http://blogs.wittwer.fr/whiler/?p=208</guid>
		<description><![CDATA[Histoire de garder une trace de la date...J'ai effectué aujourd'hui quelques mises à jour&#8230;]]></description>
			<content:encoded><![CDATA[<p>Histoire de garder une trace de la date&#8230;</p>
<ul>
<li>J&#8217;ai effectué aujourd&#8217;hui la mise à jour de la <a target="_blank" href="http://wittwer.fr/photos/">galerie photos</a> en la passant en version 2.0.4. J&#8217;en ai profité pour remettre d&#8217;aplomb les divers <a href="http://fr.wikipedia.org/wiki/Encodage_de_caractères" rel="glossary" target="_blank" title="Wikipedia, D&eacute;finition de&nbsp;: encodages" style="" >encodages</a><sup style="font-family: Georgia, Times New Roman, Serif; font-weight: bold; color: #AAAAAA" ><em>W</em></sup> en uniformisant le tout en <a href="http://fr.wikipedia.org/wiki/UTF-8" rel="glossary" target="_blank" title="Wikipedia, D&eacute;finition de&nbsp;: UTF-8" style="" >UTF-8</a><sup style="font-family: Georgia, Times New Roman, Serif; font-weight: bold; color: #AAAAAA" ><em>W</em></sup>, tant les pages web que les tables et les données de la base.
</li>
<li>J&#8217;ai également changé la version de ce <a target="_blank" href="http://blogs.wittwer.fr/whiler/">blog</a>, en passant en version 3.3.1&#8230; Celle-ci est assez fastidieuse et j&#8217;ai complètement changé le thème&#8230; Je rencontre toujours des problèmes de compatibilité entre le plugin Lightbox et la barre d&#8217;outils de b2evolution&#8230; <a href="http://fr.wikipedia.org/wiki/Firebug" rel="glossary" target="_blank" title="Wikipedia, D&eacute;finition de&nbsp;: Firebug" style="" >Firebug</a><sup style="font-family: Georgia, Times New Roman, Serif; font-weight: bold; color: #AAAAAA" ><em>W</em></sup> m&#8217;aide mais je galère tout de même&#8230;
</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blogs.wittwer.fr/whiler/2009/10/03/update-sites/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mise en place de la coloration syntaxique avec GeSHi sur mon blog</title>
		<link>http://blogs.wittwer.fr/whiler/2009/06/03/mise-en-place-de-la-coloration-syntaxique/</link>
		<comments>http://blogs.wittwer.fr/whiler/2009/06/03/mise-en-place-de-la-coloration-syntaxique/#comments</comments>
		<pubDate>Wed, 03 Jun 2009 20:30:55 +0000</pubDate>
		<dc:creator>Whiler</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[b2evolution]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[coloration syntaxique]]></category>
		<category><![CDATA[GeSHi]]></category>

		<guid isPermaLink="false">http://blogs.wittwer.fr/whiler/?p=129</guid>
		<description><![CDATA[Remplacement du plugin livré en standard avec b2evolution pour la coloration syntaxique par une version qui implémente GeSHi et donc beaucoup plus de langages, dont le SQL...]]></description>
			<content:encoded><![CDATA[<p>Remplacement du <a href="http://b2evo.astonishme.co.uk/display-code-plugin">plugin livré en standard</a> avec b2evolution pour la coloration syntaxique par une version qui implémente GeSHi et donc beaucoup plus de langages, dont le <a href="http://blogs.wittwer.fr/whiler/category/computer/dev/sql/">SQL</a>&#8230;</p>
<p>L&#8217;utilisation et la modification d&#8217;une feuille de style n&#8217;a pas été une mince affaire <img src='http://blogs.wittwer.fr/whiler/wp-includes/images/smilies/rolleyes.gif' alt=':rollup:' class='wp-smiley' />  </p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.wittwer.fr/whiler/2009/06/03/mise-en-place-de-la-coloration-syntaxique/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Plugin pour inclure Piwik dans b2evolution</title>
		<link>http://blogs.wittwer.fr/whiler/2009/06/02/plugin-piwik-b2evolution/</link>
		<comments>http://blogs.wittwer.fr/whiler/2009/06/02/plugin-piwik-b2evolution/#comments</comments>
		<pubDate>Tue, 02 Jun 2009 07:00:45 +0000</pubDate>
		<dc:creator>Whiler</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[b2evolution]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[coloration syntaxique]]></category>
		<category><![CDATA[phpMyVisit]]></category>
		<category><![CDATA[Piwik]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://blogs.wittwer.fr/whiler/?p=124</guid>
		<description><![CDATA[Plugin permettant d'inclure le tracker Piwik dans b2evolution]]></description>
			<content:encoded><![CDATA[<p>Après avoir installé le b2evolution pour gérer les blogs de la famille, j&#8217;essaye de les personnaliser&#8230;</p>
<p>M&#8217;inspirant fortement d&#8217;un <a href="http://fr.wikipedia.org/wiki/plugin" rel="glossary" target="_blank" title="Wikipedia, D&eacute;finition de&nbsp;: plugin" style="" >plugin</a><sup style="font-family: Georgia, Times New Roman, Serif; font-weight: bold; color: #AAAAAA" ><em>W</em></sup> existant pour <a title="Google Analytics code plugin" href="http://www.blog.hemminga.net/index.php/2008/04/30/google-analytics-code-plugin?blog=8" target="_blank">Google Analytics</a>, je l&#8217;ai modifié pour écrire celui-ci :<br />
<span id="more-124"></span></p>
<div class="codecolorer-container php dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:480px;height:300px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br />37<br />38<br />39<br />40<br />41<br />42<br />43<br />44<br />45<br />46<br />47<br />48<br />49<br />50<br />51<br />52<br />53<br />54<br />55<br />56<br />57<br />58<br />59<br />60<br />61<br />62<br />63<br />64<br />65<br />66<br />67<br />68<br />69<br />70<br />71<br />72<br />73<br />74<br />75<br />76<br />77<br />78<br />79<br />80<br />81<br />82<br />83<br />84<br />85<br />86<br />87<br />88<br />89<br />90<br />91<br />92<br />93<br />94<br />95<br />96<br />97<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">&lt;?php</span><br />
<span style="color: #009933; font-style: italic;">/**<br />
*<br />
* This file implements the Piwik code plugin for {@link http://b2evolution.net/}.<br />
*<br />
* @copyright (c)2009 by Whiler - {@link http://blogs.wittwer.fr/whiler/}.<br />
*<br />
* @license GNU General Public License 2 (GPL) - http://www.opensource.org/licenses/gpl-license.php<br />
*<br />
* @package plugins<br />
*<br />
* @author Whiler<br />
*<br />
* Inherit from:<br />
* Google Analytics code plugin for {@link http://b2evolution.net/}.<br />
* copyright (c)2008 by Foppe HEMMINGA - {@link http://www.blog.hemminga.net/}.<br />
* license GNU General Public License 2 (GPL) - http://www.opensource.org/licenses/gpl-license.php<br />
* package plugins<br />
* author Foppe Hemminga<br />
*<br />
*/</span><br />
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span><a href="http://www.php.net/defined"><span style="color: #990000;">defined</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'EVO_MAIN_INIT'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <a href="http://www.php.net/die"><span style="color: #990000;">die</span></a><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'Please, do not access this page directly.'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #000000; font-weight: bold;">class</span> piwik_plugin <span style="color: #000000; font-weight: bold;">extends</span> Plugin<br />
<span style="color: #009900;">&#123;</span><br />
<span style="color: #000000; font-weight: bold;">var</span> <span style="color: #000088;">$name</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'Piwik code'</span><span style="color: #339933;">;</span><br />
<span style="color: #000000; font-weight: bold;">var</span> <span style="color: #000088;">$code</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'ADPiwik'</span><span style="color: #339933;">;</span><br />
<span style="color: #000000; font-weight: bold;">var</span> <span style="color: #000088;">$priority</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">50</span><span style="color: #339933;">;</span><br />
<span style="color: #000000; font-weight: bold;">var</span> <span style="color: #000088;">$version</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'0.2'</span><span style="color: #339933;">;</span><br />
<span style="color: #000000; font-weight: bold;">var</span> <span style="color: #000088;">$author</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'Whiler'</span><span style="color: #339933;">;</span><br />
<span style="color: #000000; font-weight: bold;">var</span> <span style="color: #000088;">$help_url</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'http://blogs.wittwer.fr/whiler/index.php/misc/'</span><span style="color: #339933;">;</span><br />
<span style="color: #000000; font-weight: bold;">var</span> <span style="color: #000088;">$group</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'Amazing Discoveries'</span><span style="color: #339933;">;</span><br />
<span style="color: #000000; font-weight: bold;">var</span> <span style="color: #000088;">$apply_rendering</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'never'</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #000000; font-weight: bold;">function</span> PluginInit<span style="color: #009900;">&#40;</span> <span style="color: #339933;">&amp;</span>amp<span style="color: #339933;">;</span> <span style="color: #000088;">$params</span> <span style="color: #009900;">&#41;</span><br />
<span style="color: #009900;">&#123;</span><br />
<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">short_desc</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">T_</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'This plugin puts your Piwik code on every page.'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">long_desc</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">T_</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'This plugin puts your Piwik code on every page allowing to track visits...'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
<br />
<span style="color: #000000; font-weight: bold;">function</span> GetDefaultSettings<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><br />
<span style="color: #009900;">&#123;</span><br />
<span style="color: #b1b100;">return</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><br />
<span style="color: #0000ff;">'piwik_code'</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><br />
<span style="color: #0000ff;">'label'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">T_</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Code to insert'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
<span style="color: #0000ff;">'type'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'html_textarea'</span><span style="color: #339933;">,</span><br />
<span style="color: #0000ff;">'note'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">T_</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Enter the code you obtained from Piwik. The code begins with &amp;amp;lt;!-- Piwik --&amp;amp;gt; and ends with &amp;amp;lt;!-- End Piwik Tag --&amp;amp;gt;'</span><span style="color: #009900;">&#41;</span><br />
<span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
<span style="color: #0000ff;">'add_admin'</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><br />
<span style="color: #0000ff;">'label'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">T_</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'Add script to admin pages'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
<span style="color: #0000ff;">'type'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'checkbox'</span><span style="color: #339933;">,</span><br />
<span style="color: #0000ff;">'defaultvalue'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span><br />
<span style="color: #666666; font-style: italic;">// 'note' =&gt; this-&gt;T_( ''),</span><br />
<span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
<br />
<span style="color: #000000; font-weight: bold;">function</span> GetDefaultUserSettings<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><br />
<span style="color: #009900;">&#123;</span><br />
<span style="color: #b1b100;">return</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><br />
<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
<br />
<span style="color: #009933; font-style: italic;">/**<br />
* Puts the Piwik code in the footer of every blog page<br />
*<br />
*/</span><br />
<span style="color: #000000; font-weight: bold;">function</span> SkinEndHtmlBody<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><br />
<span style="color: #009900;">&#123;</span><br />
<span style="color: #666666; font-style: italic;">// Get the DefaultSetting we created earlier</span><br />
<span style="color: #000088;">$piwikCode</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Settings</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">get</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'piwik_code'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// Retrieve the user setting</span><br />
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$piwikCode</span> <span style="color: #339933;">!=</span> <span style="color: #0000ff;">''</span> <span style="color: #009900;">&#41;</span> <span style="color: #666666; font-style: italic;">// Skip if the variable is empty. You could do some basic checks on how the code is entered.</span><br />
<span style="color: #009900;">&#123;</span><br />
<span style="color: #b1b100;">print</span> <span style="color: #000088;">$piwikCode</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span> <span style="color: #666666; font-style: italic;">// End if</span><br />
<span style="color: #009900;">&#125;</span> <span style="color: #666666; font-style: italic;">// End function</span><br />
<br />
<span style="color: #000000; font-weight: bold;">function</span> AdminAfterPageFooter<span style="color: #009900;">&#40;</span> <span style="color: #339933;">&amp;</span>amp<span style="color: #339933;">;</span><span style="color: #000088;">$params</span> <span style="color: #009900;">&#41;</span><br />
<span style="color: #009900;">&#123;</span><br />
<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;">Settings</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">get</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'add_admin'</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><br />
<span style="color: #009900;">&#123;</span><br />
<span style="color: #666666; font-style: italic;">// Get the DefaultSetting we created earlier</span><br />
<span style="color: #000088;">$piwikCode</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Settings</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">get</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'piwik_code'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// Retreive the user setting</span><br />
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$piwikCode</span> <span style="color: #339933;">!=</span> <span style="color: #0000ff;">''</span> <span style="color: #009900;">&#41;</span> <span style="color: #666666; font-style: italic;">// Skip if the variable is empty. You could do some basic checks on how the code is entered.</span><br />
<span style="color: #009900;">&#123;</span><br />
<span style="color: #b1b100;">print</span> <span style="color: #000088;">$piwikCode</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span> <span style="color: #666666; font-style: italic;">// End if</span><br />
<span style="color: #009900;">&#125;</span> <span style="color: #666666; font-style: italic;">// End if</span><br />
<span style="color: #009900;">&#125;</span> <span style="color: #666666; font-style: italic;">// End function</span><br />
<br />
<span style="color: #009933; font-style: italic;">/**<br />
* @version 0.2<br />
* @date 2009-06-02<br />
* @author Whiler<br />
*/</span><br />
<span style="color: #009900;">&#125;</span><br />
<span style="color: #000000; font-weight: bold;">?&gt;</span></div></td></tr></tbody></table></div>
<p>Bien sûr, ce plugin peut également être utilisé pour insérer tout autre bout de code en fonction de ce qui a été mis dans le champ code de l&#8217;administration de celui-ci depuis le back office&#8230;</p>
<p>Vous pouvez télécharger ce fichier à l&#8217;adresse suivante : <a href="http://blogs.wittwer.fr/whiler/wp-content/uploads/2009/10/piwik.plugin.zip">_piwik.plugin</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.wittwer.fr/whiler/2009/06/02/plugin-piwik-b2evolution/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

