<?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>Darklg Blog &#187; wordpress</title>
	<atom:link href="http://darklg.me/tag/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://darklg.me</link>
	<description>Intégration, développement web, SEO, caféine</description>
	<lastBuildDate>Sat, 04 Feb 2012 12:09:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Attention aux Custom Post Types !</title>
		<link>http://darklg.me/2011/10/attention-aux-custom-post-types/</link>
		<comments>http://darklg.me/2011/10/attention-aux-custom-post-types/#comments</comments>
		<pubDate>Tue, 25 Oct 2011 15:10:06 +0000</pubDate>
		<dc:creator>Darklg</dc:creator>
				<category><![CDATA[Développement PHP / MySQL]]></category>
		<category><![CDATA[Wordpress & CMS]]></category>
		<category><![CDATA[custom post types]]></category>
		<category><![CDATA[securite]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://darklg.me/?p=662</guid>
		<description><![CDATA[Vous utilisez WordPress 3, et avez monté des sites plus merveilleux les uns que les autres en utilisant les Custom Post Type dans votre administration ? Attention, si certains de vos post-types ne doivent pas être affichés en front, plusieurs choses à retenir : ]]></description>
			<content:encoded><![CDATA[<p>Vous utilisez WordPress 3, et avez monté des sites plus merveilleux les uns que les autres en utilisant les Custom Post Type dans votre administration ?</p>
<p>Attention, si certains de vos post-types ne doivent pas être affichés en front, plusieurs choses à retenir, à la génération du post type :</p>
<p>Si le post type ne doit pas du tout apparaître en front, comme me l&#8217;a rappelé <a href="http://twitter.com/Raherian/status/128856910916108288">Raherian sur Twitter</a>, on peut le désactiver à sa génération dans le code (<a lang="en" href="http://codex.wordpress.org/Function_Reference/register_post_type">register_post_type</a>) en paramètrant <strong>public</strong>, <strong>has_archive</strong> et éventuellement <strong>rewrite</strong> à <strong>FALSE</strong>.<br />
On peut également fournir un array à <strong>rewrite</strong>, avec le paramètre <strong>feeds</strong> à <strong>false</strong> pour éviter la génération de flux !</p>
<p>Edit : La méthode sale est toujours en dessous au cas où vous n&#8217;auriez pas la main sur la création du post type (Plugin mal fichu ou autre).</p>
<h3>Un template single vide</h3>
<p>Creez simplement un fichier de template du nom de single-[moncustomposttype].php, et ne mettez rien dedans. Le template single.php prendrait le relais dans l&#8217;absence de ce dernier, et afficherait votre post_content.</p>
<h3>Un Flux RSS désactivé pour les Custom Post Types</del></h3>
<p>Collez simplement le bout de code suivant dans votre fichier functions.php :</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// N'active le RSS que pour le post-type post</span>
<span style="color: #000000; font-weight: bold;">function</span> dk_rss_disable_feed<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$post</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #990000;">is_object</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">||</span> <span style="color: #339933;">!</span><span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">post_type</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">||</span> <span style="color: #339933;">!</span><span style="color: #990000;">in_array</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">post_type</span><span style="color: #339933;">,</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'post'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        wp_die<span style="color: #009900;">&#40;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'No feed available, please visit our &lt;a href=&quot;'</span> <span style="color: #339933;">.</span> get_bloginfo<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: #0000ff;">'&quot;&gt;homepage&lt;/a&gt;!'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
add_action<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'do_feed'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'dk_rss_disable_feed'</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
add_action<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'do_feed_rdf'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'dk_rss_disable_feed'</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
add_action<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'do_feed_rss'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'dk_rss_disable_feed'</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
add_action<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'do_feed_rss2'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'dk_rss_disable_feed'</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
add_action<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'do_feed_atom'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'dk_rss_disable_feed'</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Basé sur le script de <a href="http://wpengineer.com/287/disable-wordpress-feed/">WP-Engineer</a></p>

<hr />
<p style="font-size : 10px;">
	Un article publi&eacute; sur <a href="http://darklg.me">Darklg Blog</a> &copy; 2012<br />
	Lien vers l'article original : <a href="http://darklg.me/2011/10/attention-aux-custom-post-types/">Attention aux Custom Post Types !</a><br />
	<a rel="external nofollow" href="http://minurl.fr/?twitter&amp;titrelien=Darklg+Blog+%3A+Attention+aux+Custom+Post+Types+%21&amp;url=http://darklg.me/2011/10/attention-aux-custom-post-types/" title="Envoyer vers Twitter, avec MinURL !">Partager cet article sur Twitter</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://darklg.me/2011/10/attention-aux-custom-post-types/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Un Widget WordPress pour présenter un projet sur GitHub</title>
		<link>http://darklg.me/2011/09/un-widget-wordpress-pour-presenter-un-projet-sur-github/</link>
		<comments>http://darklg.me/2011/09/un-widget-wordpress-pour-presenter-un-projet-sur-github/#comments</comments>
		<pubDate>Sun, 11 Sep 2011 14:18:06 +0000</pubDate>
		<dc:creator>Darklg</dc:creator>
				<category><![CDATA[Wordpress & CMS]]></category>
		<category><![CDATA[github]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[widget]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://darklg.me/?p=653</guid>
		<description><![CDATA[Je viens de publier sur Github un plugin pour WordPress, créant un simple Widget pour présenter un de vos projets sur GitHub : DK Github Project Widget.
]]></description>
			<content:encoded><![CDATA[<p>Je viens de publier sur Github un plugin pour WordPress, créant un simple Widget pour présenter un de vos projets sur GitHub : <a href="https://github.com/Darklg/DK-Github-Project-Widget">DK Github Project Widget</a>.</p>
<p>Il est sans prétention, et le code est à votre disposition, j&#8217;avais juste besoin d&#8217;un petit exercice du dimanche <img src='http://darklg.me/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Pour l&#8217;utiliser, c&#8217;est simple : </p>
<ul>
<li>Téléchargez le fichier &laquo;&nbsp;dk_github_project_widget.php&nbsp;&raquo;</li>
<li>Glissez le dans votre dossier wp-content/plugins/</li>
<li>Activez le plugin :3</li>
<li>Glissez le Widget dans la Sidebar</li>
<li>N&#8217;oubliez pas de remplir les champs, sans quoi vous ferez de la pub pour un de mes projets :&#8217;)</li>
</ul>
<p>C&#8217;est un widget dit &laquo;&nbsp;à instances&nbsp;&raquo;, c&#8217;est à dire que vous pouvez le glisser plusieurs fois dans vos sidebars, pour présenter un projet différent à chaque fois.</p>
<p>Découvrez vite <a href="https://github.com/Darklg/DK-Github-Project-Widget">DK Github Project Widget</a> !</p>

<hr />
<p style="font-size : 10px;">
	Un article publi&eacute; sur <a href="http://darklg.me">Darklg Blog</a> &copy; 2012<br />
	Lien vers l'article original : <a href="http://darklg.me/2011/09/un-widget-wordpress-pour-presenter-un-projet-sur-github/">Un Widget WordPress pour présenter un projet sur GitHub</a><br />
	<a rel="external nofollow" href="http://minurl.fr/?twitter&amp;titrelien=Darklg+Blog+%3A+Un+Widget+WordPress+pour+pr%C3%A9senter+un+projet+sur+GitHub&amp;url=http://darklg.me/2011/09/un-widget-wordpress-pour-presenter-un-projet-sur-github/" title="Envoyer vers Twitter, avec MinURL !">Partager cet article sur Twitter</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://darklg.me/2011/09/un-widget-wordpress-pour-presenter-un-projet-sur-github/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Récupérer un compte utilisateur sur WordPress</title>
		<link>http://darklg.me/2011/08/recuperer-compte-utilisateur-wordpress/</link>
		<comments>http://darklg.me/2011/08/recuperer-compte-utilisateur-wordpress/#comments</comments>
		<pubDate>Mon, 22 Aug 2011 12:55:57 +0000</pubDate>
		<dc:creator>Darklg</dc:creator>
				<category><![CDATA[Développement PHP / MySQL]]></category>
		<category><![CDATA[Wordpress & CMS]]></category>
		<category><![CDATA[admin]]></category>
		<category><![CDATA[compte administrateur]]></category>
		<category><![CDATA[perdu]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://darklg.me/?p=651</guid>
		<description><![CDATA[Si vous avez déjà travaillé sur un projet WordPress sur lequel vous n&#8217;aviez pas de compte administrateur, ou sur lequel le client a perdu ses accès, ce bout de code est pour vous. Collez le simplement dans un fichier uzer.php (ou autre nom unique) à la racine de votre installation WordPress (à côté de wp-config.php), [...]]]></description>
			<content:encoded><![CDATA[<p>Si vous avez déjà travaillé sur un projet WordPress sur lequel vous n&#8217;aviez pas de compte administrateur, ou sur lequel le client a perdu ses accès, ce bout de code est pour vous.</p>
<p>Collez le simplement dans un fichier uzer.php (ou autre nom unique) à la racine de votre installation WordPress (à côté de wp-config.php), configurez le, et accédez-y depuis un navigateur.</p>
<p>Il créera un accès administrateur à votre nom, duquel vous pourrez aisément reprendre en main votre projet.</p>
<p>Attention : N&#8217;oubliez pas de supprimer ce fichier après avoir créé ces paramètres !</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #000088;">$new_uzer_username</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'darklg'</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$new_uzer_password</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'isecretlylove50cent'</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$new_uzer_email</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'darklg.blog@gmail.com'</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// On ne touche à rien d'autre ;)</span>
&nbsp;
<span style="color: #b1b100;">include</span> <span style="color: #990000;">dirname</span><span style="color: #009900;">&#40;</span><span style="color: #009900; font-weight: bold;">__FILE__</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'/wp-load.php'</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">require_once</span><span style="color: #009900;">&#40;</span> ABSPATH <span style="color: #339933;">.</span> WPINC <span style="color: #339933;">.</span> <span style="color: #0000ff;">'/registration.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span>username_exists<span style="color: #009900;">&#40;</span><span style="color: #000088;">$new_uzer_username</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'Cet utilisateur existe deja.'</span><span style="color: #339933;">;</span>
    <span style="color: #990000;">exit</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000088;">$id_user</span> <span style="color: #339933;">=</span> wp_create_user<span style="color: #009900;">&#40;</span><span style="color: #000088;">$new_uzer_username</span><span style="color: #339933;">,</span> <span style="color: #000088;">$new_uzer_password</span><span style="color: #339933;">,</span> <span style="color: #000088;">$new_uzer_email</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">is_object</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$id_user</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'Echec de la creation d\'utilisateur'</span><span style="color: #339933;">;</span>
    <span style="color: #990000;">exit</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$wpdb</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$wpdb</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">update</span><span style="color: #009900;">&#40;</span>
    <span style="color: #0000ff;">'wp_usermeta'</span><span style="color: #339933;">,</span>
    <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'meta_value'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'a:1:{s:13:&quot;administrator&quot;;s:1:&quot;1&quot;;}'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
    <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'user_id'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$id_user</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'meta_key'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'wp_capabilities'</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$wpdb</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">update</span><span style="color: #009900;">&#40;</span>
    <span style="color: #0000ff;">'wp_usermeta'</span><span style="color: #339933;">,</span>
    <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'meta_value'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'10'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
    <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'user_id'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$id_user</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'meta_key'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'wp_user_level'</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'Succes de la creation d\'utilisateur. N\'oubliez pas de supprimer ce fichier.'</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>


<hr />
<p style="font-size : 10px;">
	Un article publi&eacute; sur <a href="http://darklg.me">Darklg Blog</a> &copy; 2012<br />
	Lien vers l'article original : <a href="http://darklg.me/2011/08/recuperer-compte-utilisateur-wordpress/">Récupérer un compte utilisateur sur WordPress</a><br />
	<a rel="external nofollow" href="http://minurl.fr/?twitter&amp;titrelien=Darklg+Blog+%3A+R%C3%A9cup%C3%A9rer+un+compte+utilisateur+sur+WordPress&amp;url=http://darklg.me/2011/08/recuperer-compte-utilisateur-wordpress/" title="Envoyer vers Twitter, avec MinURL !">Partager cet article sur Twitter</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://darklg.me/2011/08/recuperer-compte-utilisateur-wordpress/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Compte-rendu du Wordcamp Paris 2011</title>
		<link>http://darklg.me/2011/05/compte-rendu-du-wordcamp-paris-2011/</link>
		<comments>http://darklg.me/2011/05/compte-rendu-du-wordcamp-paris-2011/#comments</comments>
		<pubDate>Sat, 14 May 2011 20:57:54 +0000</pubDate>
		<dc:creator>Darklg</dc:creator>
				<category><![CDATA[Sorties dans le monde reel]]></category>
		<category><![CDATA[Wordpress & CMS]]></category>
		<category><![CDATA[blogs]]></category>
		<category><![CDATA[wordcampparis]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://darklg.me/?p=477</guid>
		<description><![CDATA[Je reviens tout juste de la 4ème édition du WordCamp Paris, une édition particulière pour moi, puisque mon poste chez Colorz m&#8217;a apporté de bonnes connaissances concernant le code de WordPress, les plugins, thèmes, etc. 9h30-10h30 &#8211; Conférence du Staff WordPress FR Ce barcamp a débuté par une présentation de la beta de WordPress 3.2, [...]]]></description>
			<content:encoded><![CDATA[<p>Je reviens tout juste de la 4ème édition du WordCamp Paris, une édition particulière pour moi, puisque mon poste chez <a href="http://www.colorz.fr">Colorz</a> m&#8217;a apporté de bonnes connaissances concernant le code de WordPress, les plugins, thèmes, etc.</p>
<h3>9h30-10h30 &#8211; Conférence du Staff WordPress FR</h3>
<p>Ce barcamp a débuté par une présentation de la beta de WordPress 3.2, avec une mise en avant des évolutions les plus marquantes: </p>
<ul>
<li>Un code plus propre ( min Php 5.2 )</li>
<li>Une interface d&#8217;admin relookée<br />
<a href="http://darklg.me/wp-content/uploads/2011/05/interface-admin-refondue.png"><img src="http://darklg.me/wp-content/uploads/2011/05/interface-admin-refondue-500x292.png" alt="" title="interface-admin-refondue" width="500" height="292" class="alignnone size-large wp-image-479" /></a></li>
<li>Un éditeur de posts avec un mode minimaliste.<br />
<a href="http://darklg.me/wp-content/uploads/2011/05/editeur-minimaliste.png"><img src="http://darklg.me/wp-content/uploads/2011/05/editeur-minimaliste-500x292.png" alt="" title="editeur minimaliste" width="500" height="292" class="alignnone size-large wp-image-478" /></a></li>
<li>Un nouveau thème annuel : TwentyEleven<br />
<a href="http://darklg.me/wp-content/uploads/2011/05/nouveau-theme-twentyeleven.png"><img src="http://darklg.me/wp-content/uploads/2011/05/nouveau-theme-twentyeleven-500x302.png" alt="" title="nouveau-theme-twentyeleven" width="500" height="302" class="alignnone size-large wp-image-480" /></a></li>
</ul>
<h3>11h-12h &#8211; Atelier &#8211; Optimisation et perfomances de WordPress</h3>
<p>Un atelier tellement riche qu&#8217;il a mérité son propre article : [permalink id=481 title=1]</p>
<h3>12h-13h30 &#8211; Pause Repas</h3>
<p>Je vous épargne le désormais traditionnel passage au fast-food, frites, tout ça tout ça. Mais c&#8217;était très bien.</p>
<h3>13h30-14h30 &#8211; Atelier &#8211; Développement de plugins</h3>
<p>Un atelier tellement riche qu&#8217;il a mérité son propre article :  [permalink id=482 title=1]</p>
<h3>14h30-15h30 &#8211; Atelier &#8211; SEO &#038; WordPress</h3>
<p>Entre quelques bases du SEO réexpliquées par <a href="http://blog.c-krylatov.com/">Cyril</a>, <a href="http://touchcream.com/">Arthur/Touchcream</a> nous a exposé l&#8217;intérêt d&#8217;avoir des pages de <strong>catégories riches</strong>, avec une description remplie et exploitée dans le thème. Nous avons également évoqué le bien-fondé des <strong>Related Posts</strong> pour le maillage interne, et le trafic potentiel généré par l&#8217;utilisation des balises <a href="https://developers.facebook.com/docs/opengraph/">Open Graph</a>.</p>
<h3>15h30-16h30 &#8211; Atelier &#8211; Child themes</h3>
<p>Cet atelier a fait rapidement un tour des avantages d&#8217;un thème enfant : Déployer un site enfant avec un thème très légèrement différent de son parent, rajouter les quelques lignes de codes à modifier, et garder le code original, simplifiant ainsi la maintenance. Un <a href="http://codex.wordpress.org/Function_Reference/add_action">add_action()</a> dans le thème parent pourra ainsi être annulé dans le thème enfant par un <a href="http://codex.wordpress.org/Function_Reference/remove_action">remove_action()</a> dans le thème enfant.  L&#8217;atelier a vite dérivé vers les avantages des thèmes de base et frameworks WordPress. Quelques noms cités dont <a href="http://www.zy.sg/the-buffet-framework/">The Buffet Framework</a>, <a href="http://basics.css4design.com/">Basics WordPress</a>, <a href="http://www.studiopress.com/themes/genesis">Genesis</a> ou encore <a href="http://wordpress.org/extend/themes/sandbox">SandBox</a> et <a href="http://www.rootstheme.com/">Roots</a>.</p>
<p>J&#8217;ai craqué durant la journée pour le livre <a href="http://amzn.to/j85Rts" title="Acheter ce livre sur Amazon. Lien affilié, poil au nez.">&laquo;&nbsp;Professional WordPress Plugin Development&nbsp;&raquo; par Brad Williams,  Richard Ozh et Justin Tadlock</a> qui semble être une référence du développement de plugins.</p>
<p>Le WordCamp n&#8217;a pas failli à sa réputation : des échanges avec des passionnés, doués et ouverts à la discussion, et une sortie la tête bien plus pleine d&#8217;idées et de pistes de travail qu&#8217;à l&#8217;arrivée. Un énième remerciement au staff de<a href="http://www.wordpress-fr.net/2011/05/13/le-wordcamp-paris-2011-cest-demain/"> WordPress France</a> qui organisait, et à des <a href="http://paris14mai2011.wordcamp.fr/sponsors/">sponsors</a> tout sauf envahissants.</p>

<hr />
<p style="font-size : 10px;">
	Un article publi&eacute; sur <a href="http://darklg.me">Darklg Blog</a> &copy; 2012<br />
	Lien vers l'article original : <a href="http://darklg.me/2011/05/compte-rendu-du-wordcamp-paris-2011/">Compte-rendu du Wordcamp Paris 2011</a><br />
	<a rel="external nofollow" href="http://minurl.fr/?twitter&amp;titrelien=Darklg+Blog+%3A+Compte-rendu+du+Wordcamp+Paris+2011&amp;url=http://darklg.me/2011/05/compte-rendu-du-wordcamp-paris-2011/" title="Envoyer vers Twitter, avec MinURL !">Partager cet article sur Twitter</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://darklg.me/2011/05/compte-rendu-du-wordcamp-paris-2011/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>[WordCampParis 4] Conseils pour le développement de plugins WordPress</title>
		<link>http://darklg.me/2011/05/conseils-developpement-plugins-wordpress/</link>
		<comments>http://darklg.me/2011/05/conseils-developpement-plugins-wordpress/#comments</comments>
		<pubDate>Sat, 14 May 2011 20:57:42 +0000</pubDate>
		<dc:creator>Darklg</dc:creator>
				<category><![CDATA[Développement PHP / MySQL]]></category>
		<category><![CDATA[Wordpress & CMS]]></category>
		<category><![CDATA[conseils]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://darklg.me/?p=482</guid>
		<description><![CDATA[Au cours du WordCamp Paris #4, j&#8217;ai pu assister à un atelier de conseils et retours d&#8217;expérience pour le développement de plugins WordPress. Voici donc mes notes, et pistes de réflexion, en vrac : L&#8217;utilisation du répertoire mu-plugins/ peut être intéressant : les plugins fichiers ( aucun dossier n&#8217;est crawlé ) sont activés automatiquement, et [...]]]></description>
			<content:encoded><![CDATA[<p>Au cours du <a href="[permalink id=477]">WordCamp Paris #4</a>, j&#8217;ai pu assister à un atelier de conseils et retours d&#8217;expérience pour le développement de plugins WordPress.</p>
<p>Voici donc mes notes, et pistes de réflexion, en vrac :</p>
<ul>
<li>L&#8217;utilisation du répertoire mu-plugins/ peut être intéressant : les plugins fichiers ( aucun dossier n&#8217;est crawlé ) sont activés automatiquement, et n&#8217;apparaissent pas dans l&#8217;administration. Un reliquat de WordPress MU, qui peut rendre quelques services.</li>
<li>Les parties de vos plugins utilisées uniquement en admin doivent être isolées avec une condition <a href="http://codex.wordpress.org/Function_Reference/is_admin">is_admin()</a>. Performances, toussa.</li>
<li>à la désactivation du plugin, il faut faire du ménage dans les fichiers créés par ce dernier, à l&#8217;aide du hook <a href="http://codex.wordpress.org/Function_Reference/register_deactivation_hook">register_deactivation_hook</a>.</li>
<li>Aucune solution n&#8217;est incluse dans WordPress pour permettre la mise à jour automatique de plugins non présents dans le <a href="http://wordpress.org/extend/plugins/">repository WordPress.org</a>. à coder ou rendre publique son extension.</li>
<li>Il a été rappelé que la publication de plugins sur le repository peut apporter une notoriété d&#8217;expert, mais que le prix à payer en temps pour faire le support client est important, p</li>
<li>L&#8217;idée d&#8217;un repository de plugins en licence <a href="http://sam.zoy.org/wtfpl/">WTFPL</a> a été lancée.</li>
<li>Pour l&#8217;instant, aucun plugin n&#8217;est prévu pour accompagner par défaut Hello Dolly et Akismet avec l&#8217;installation de WordPress.</li>
<li>Il est nécessaire de fouiller le code de WordPress pour trouver les conventions de nommage.</li>
<li>Un plugin devrait idéalement avoir un code structuré, commenté, réutilisable, documenté, internationalisé, optimisé (cache, bonne gestion de la mémoire), sécurisé (utilisation des <a href="http://codex.wordpress.org/Roles_and_Capabilities">roles</a> et de <a href="http://codex.wordpress.org/Wordpress_Nonce_Implementation">wp_nonce</a>)</li>
<li>Les <a href="http://scribu.net/">Plugins créés par Scribu</a> sont de bons exemples.</li>
<li>La <a href="http://codex.wordpress.org/Function_Reference/wpdb_Class">classe wpdb</a> doit être maîtrisée pour bien gérer les échanges avec la base de données.</li>
</ul>

<hr />
<p style="font-size : 10px;">
	Un article publi&eacute; sur <a href="http://darklg.me">Darklg Blog</a> &copy; 2012<br />
	Lien vers l'article original : <a href="http://darklg.me/2011/05/conseils-developpement-plugins-wordpress/">[WordCampParis 4] Conseils pour le développement de plugins WordPress</a><br />
	<a rel="external nofollow" href="http://minurl.fr/?twitter&amp;titrelien=Darklg+Blog+%3A+%5BWordCampParis+4%5D+Conseils+pour+le+d%C3%A9veloppement+de+plugins+WordPress&amp;url=http://darklg.me/2011/05/conseils-developpement-plugins-wordpress/" title="Envoyer vers Twitter, avec MinURL !">Partager cet article sur Twitter</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://darklg.me/2011/05/conseils-developpement-plugins-wordpress/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>[WordCampParis 4] – Optimisation et performances de WordPress</title>
		<link>http://darklg.me/2011/05/optimisation-performances-wordpress/</link>
		<comments>http://darklg.me/2011/05/optimisation-performances-wordpress/#comments</comments>
		<pubDate>Sat, 14 May 2011 20:22:17 +0000</pubDate>
		<dc:creator>Darklg</dc:creator>
				<category><![CDATA[Développement PHP / MySQL]]></category>
		<category><![CDATA[Wordpress & CMS]]></category>
		<category><![CDATA[cache]]></category>
		<category><![CDATA[optimisation]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://darklg.me/?p=481</guid>
		<description><![CDATA[Au cours du WordCamp Paris #4, le premier atelier auquel j&#8217;ai assisté était consacré à l&#8217;optimisation de WordPress. Voici donc mes notes, et pistes de réflexion, en vrac : Toujours commencer par afficher le nombre de requêtes en bas de vos thèmes. Pour ça, deux fonctions très simples : get_num_queries(); et timer_stop(1); De manière plus [...]]]></description>
			<content:encoded><![CDATA[<p>Au cours du <a href="[permalink id=477]">WordCamp Paris #4</a>, le premier atelier auquel j&#8217;ai assisté était consacré à l&#8217;optimisation de WordPress.</p>
<p>Voici donc mes notes, et pistes de réflexion, en vrac :</p>
<ul>
<li>Toujours commencer par afficher le nombre de requêtes en bas de vos thèmes. Pour ça, deux fonctions très simples : <a href="http://codex.wordpress.org/Function_Reference/get_num_queries">get_num_queries();</a> et <a href="http://codex.wordpress.org/Function_Reference/timer_stop">timer_stop(1);</a></li>
<li>De manière plus poussée, Vous pouvez également afficher <a href="http://codex.wordpress.org/Editing_wp-config.php#Save_queries_for_analysis">les requêtes SQL dans votre footer</a>.</li>
<li><a href="http://www.cyruss.com/">Cyril Pierre de Geyer</a>, qui n&#8217;est pas expert WordPress mais expert PHP (sic) a d&#8217;ailleurs rappelé que MySQL avait des outils internes pour <a href="http://dev.mysql.com/doc/refman/5.0/fr/slow-query-log.html">logger les requêtes lentes</a>.</li>
<li>Il est important de développer vos thèmes avec <a href="http://codex.wordpress.org/Editing_wp-config.php#Debug">WP_DEBUG</a> activé.</li>
<li>Encore mieux, vous pouvez même avoir un <a href="http://codex.wordpress.org/Editing_wp-config.php#Configure_Error_Log">log d&#8217;erreurs géré par WordPress</a> en éditant votre /wp-config.php.</li>
<li>Pour les développeurs, il est extrêmement important de connaître le core WordPress, afin de ne pas réinventer des fonctions déjà existantes.</li>
<li><a href="http://codex.wordpress.org/Function_Reference/WP_Cache">La méthode de cache interne</a> et les <a href="http://codex.wordpress.org/Transients_API">Transients</a> sont très intéressants pour optimiser vos sites à peu de frais.</li>
<li>Toujours sur l&#8217;idée de cache, <a href="http://wordpress.org/extend/plugins/wp-super-cache/">WP Super Cache</a> et consors ont été à nouveaux plébiscités</li>
<li>Il a été rappelé que pour un site qui a besoin de faire du temps réel, un cache très court ( 10sec ou moins ) donne une impression de temps réel à vos utilisateurs en allégeant réellement la charge sur de gros trafics.</li>
<li>Les cache de parties de page -ou cacheblocks- consistant à ne mettre en cache statique que le footer, et éventuellement à recharger le contenu interne via AJAX peut se révéler utile si le cache n&#8217;est pas possible</li>
<li>Les <a href="http://fr.wikipedia.org/wiki/Reverse_proxy">Reverse-Proxies</a> tels que <a href="http://www.varnish-cache.org/">Varnish</a> ou <a href="http://www.cloudflare.com/">CloudFlare</a> (<a href="http://gonzague.me/cloudflare-dns-reverse-proxy-cdn">Vu chez Gonzague</a>) peuvent également être d&#8217;une grande aide. </li>
<li>Optimiser dès le départ est une règle clef. Penser son site pour qu&#8217;il tienne la charge.</li>
<li>Tester et Monitorer son site : Apache Bench, Siege pour tester, Jmeter ou Pingdom pour monitorer.</li>
</ul>

<hr />
<p style="font-size : 10px;">
	Un article publi&eacute; sur <a href="http://darklg.me">Darklg Blog</a> &copy; 2012<br />
	Lien vers l'article original : <a href="http://darklg.me/2011/05/optimisation-performances-wordpress/">[WordCampParis 4] – Optimisation et performances de WordPress</a><br />
	<a rel="external nofollow" href="http://minurl.fr/?twitter&amp;titrelien=Darklg+Blog+%3A+%5BWordCampParis+4%5D+%E2%80%93+Optimisation+et+performances+de+WordPress&amp;url=http://darklg.me/2011/05/optimisation-performances-wordpress/" title="Envoyer vers Twitter, avec MinURL !">Partager cet article sur Twitter</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://darklg.me/2011/05/optimisation-performances-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Direction : Wordcamp Paris #4</title>
		<link>http://darklg.me/2011/03/direction-wordcamp-paris-4/</link>
		<comments>http://darklg.me/2011/03/direction-wordcamp-paris-4/#comments</comments>
		<pubDate>Mon, 21 Mar 2011 11:24:40 +0000</pubDate>
		<dc:creator>Darklg</dc:creator>
				<category><![CDATA[Sorties dans le monde reel]]></category>
		<category><![CDATA[Wordpress & CMS]]></category>
		<category><![CDATA[wordcamp]]></category>
		<category><![CDATA[wordcampparis]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://darklg.me/?p=461</guid>
		<description><![CDATA[Après m&#8217;être rendu aux deux dernières éditions du Wordcamp Paris, je me rendrais le 14 mai prochain à la quatrième édition de cette rencontre autour de WordPress. Une édition particulière pour moi, puisque mes derniers mois en tant que Développeur Front-End chez Colorz m&#8217;ont permis de mieux maîtriser ce CMS qu&#8217;est devenu WordPress. Je compte [...]]]></description>
			<content:encoded><![CDATA[<p>Après m&#8217;être rendu aux deux dernières éditions du <a href="http://darklg.me/346/wordcamp-3-paris-8-mai-2010/">Wordcamp Paris</a>, je me rendrais le <strong>14 mai</strong> prochain à la quatrième édition de cette rencontre autour de WordPress.</p>
<p>Une édition particulière pour moi, puisque mes derniers mois en tant que <em>Développeur Front-End</em> chez <a href="http://www.colorz.fr">Colorz</a> m&#8217;ont permis de mieux maîtriser ce CMS qu&#8217;est devenu WordPress.</p>
<p>Je compte m&#8217;y rendre afin d&#8217;aborder les thèmes suivants :</p>
<ul>
<li><strong>Optimisation de WordPress</strong> : Les bonnes pratiques à adopter lors de la création du thèmes, les points à vérifier lors de l&#8217;utilisation de plugins.</li>
<li><strong>SEO</strong> : L&#8217;optimisation du SEO via le back office : Plugins, Custom Fields &#8230; </li>
<li><strong>La création de plugins</strong> : bonnes pratiques , astuces &#8230;</li>
<li>La gestion d&#8217;un blog/CMS WordPress avancé depuis un mobile</li>
</ul>
<p><strong>Vous souhaitez y être</strong> ? C&#8217;est ici : <a href="http://paris14mai2011.wordcamp.fr/inscription/">Inscription au WordCamp Paris &#8211; 14 mai 2011</a></p>
<p>Ce sera toujours à <a href="http://lacantine.org/">La Cantine</a>, tous les détails sur le <a href="http://barcamp.org/w/page/37632405/WordCampParis4">wiki associé à l&#8217;évènement</a>, sur le site officiel des <a href="http://wordcamp.fr/">Wordcamp francophones</a> et sur <a href="http://www.wordpress-fr.net/blog/blog/wordcamp-paris-2011-samedi-14-mai-a-la-cantine">WordPress-FR</a>.</p>

<hr />
<p style="font-size : 10px;">
	Un article publi&eacute; sur <a href="http://darklg.me">Darklg Blog</a> &copy; 2012<br />
	Lien vers l'article original : <a href="http://darklg.me/2011/03/direction-wordcamp-paris-4/">Direction : Wordcamp Paris #4</a><br />
	<a rel="external nofollow" href="http://minurl.fr/?twitter&amp;titrelien=Darklg+Blog+%3A+Direction+%3A+Wordcamp+Paris+%234&amp;url=http://darklg.me/2011/03/direction-wordcamp-paris-4/" title="Envoyer vers Twitter, avec MinURL !">Partager cet article sur Twitter</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://darklg.me/2011/03/direction-wordcamp-paris-4/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Migration de mon blog WordPress</title>
		<link>http://darklg.me/2010/12/migration-blog-wordpress/</link>
		<comments>http://darklg.me/2010/12/migration-blog-wordpress/#comments</comments>
		<pubDate>Wed, 15 Dec 2010 22:12:21 +0000</pubDate>
		<dc:creator>Darklg</dc:creator>
				<category><![CDATA[Référencement]]></category>
		<category><![CDATA[Wordpress & CMS]]></category>
		<category><![CDATA[domaine]]></category>
		<category><![CDATA[seo]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://darklg.me/?p=448</guid>
		<description><![CDATA[L&#8217;hébergement de ce blog a changé ! D&#8217;un mutualisé chez 1&#038;1, il est désormais au chaud sur un serveur Gandi AI, avec un serveur MySQL séparé pour plus de tranquilité. Du coup, Gandi ne permettant que l&#8217;utilisation d&#8217;un domaine tenu par leur service de NDD pour leur service d&#8217;hébergement, j&#8217;en ai profité pour migrer vers [...]]]></description>
			<content:encoded><![CDATA[<p>L&#8217;hébergement de ce blog a changé ! </p>
<p>D&#8217;un mutualisé chez 1&#038;1, il est désormais au chaud sur un serveur <a href="http://www.gandi.net/">Gandi AI</a>, avec un serveur MySQL séparé pour plus de tranquilité.</p>
<p>Du coup, Gandi ne permettant que l&#8217;utilisation d&#8217;un domaine tenu par leur service de NDD pour leur service d&#8217;hébergement, j&#8217;en ai profité pour migrer vers une nouvelle URL, plus courte et plus simple : <a href="http://darklg.me">http://darklg.me</a>.</p>
<p>Quant à la procédure de migration d&#8217;hébergement sur WordPress, elle est assez longue : </p>
<h3>1 &#8211; Préparation du transfert</h3>
<ul>
<li>Activez un mode maintenance ou équivalent.</li>
<li>Videz le cache de votre plugin de cache préféré, puis désactivez vos plugins.</li>
</ul>
<h3>2 &#8211; Déplacement de la base de données</h3>
<ul>
<li>Exportez votre base MySQL depuis l&#8217;ancien hébergement (PHPMyAdmin, etc)</li>
<li>Installez la sur le nouvel hébergement</li>
<li>Modifiez votre WP-Config pour qu&#8217;il pointe sur la base du nouvel hébergement.</li>
</ul>
<h3>2b &#8211; Attribution du nouveau nom de domaine</h3>
<ul>
<li>Afin de changer la structure des permalinks, il va vous falloir effectuer quelques commandes MySQL trouvées sur <a href="http://pbjbreaktime.com/2010/08/move-wordpress-domain-and-permalinks/" lang="en">PBJ Breaktime</a> :<br />
( blog.darklg.fr est l&#8217;<strong>ancien domaine</strong>, darklg.me le <strong>nouveau domaine</strong> &#8211;  Attention, au prefixe de vos tables, j&#8217;ai mis wp_ par défaut )</p>

<div class="wp_syntax"><div class="code"><pre class="mysql" style="font-family:monospace;"><span style="color: #808000; font-style: italic;">/* Mise à jour des options */</span>
<span style="color: #990099; font-weight: bold;">UPDATE</span> wp_options <span style="color: #990099; font-weight: bold;">SET</span> 
option_value <span style="color: #CC0099;">=</span> <span style="color: #000099;">REPLACE</span><span style="color: #FF00FF;">&#40;</span>option_value<span style="color: #000033;">,</span> <span style="color: #008000;">'http://blog.darklg.fr'</span><span style="color: #000033;">,</span> <span style="color: #008000;">'http://darklg.me'</span><span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">;</span> 
<span style="color: #808000; font-style: italic;">/* Mise à jour des permalinks */</span>
<span style="color: #990099; font-weight: bold;">UPDATE</span> wp_posts <span style="color: #990099; font-weight: bold;">SET</span> 
guid <span style="color: #CC0099;">=</span> <span style="color: #000099;">REPLACE</span><span style="color: #FF00FF;">&#40;</span>guid<span style="color: #000033;">,</span> <span style="color: #008000;">'http://blog.darklg.fr'</span><span style="color: #000033;">,</span> <span style="color: #008000;">'http://darklg.me'</span><span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">;</span> 
<span style="color: #808000; font-style: italic;">/* Mise à jour des medias insérés et liens internes */</span>
<span style="color: #990099; font-weight: bold;">UPDATE</span> wp_posts  <span style="color: #990099; font-weight: bold;">SET</span> 
post_content <span style="color: #CC0099;">=</span> <span style="color: #000099;">REPLACE</span><span style="color: #FF00FF;">&#40;</span>post_content<span style="color: #000033;">,</span> <span style="color: #008000;">'http://blog.darklg.fr'</span><span style="color: #000033;">,</span> <span style="color: #008000;">'http://darklg.me'</span><span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">;</span>
<span style="color: #808000; font-style: italic;">/* Mise à jour des trackbacks et commentaires */</span>
<span style="color: #990099; font-weight: bold;">UPDATE</span> wp_comments <span style="color: #990099; font-weight: bold;">SET</span> 
comment_author_url <span style="color: #CC0099;">=</span> <span style="color: #000099;">REPLACE</span><span style="color: #FF00FF;">&#40;</span>comment_author_url<span style="color: #000033;">,</span> <span style="color: #008000;">'http://blog.darklg.fr'</span><span style="color: #000033;">,</span> <span style="color: #008000;">'http://darklg.me'</span><span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">,</span>
comment_content <span style="color: #CC0099;">=</span> <span style="color: #000099;">REPLACE</span><span style="color: #FF00FF;">&#40;</span>comment_content<span style="color: #000033;">,</span> <span style="color: #008000;">'http://blog.darklg.fr'</span><span style="color: #000033;">,</span> <span style="color: #008000;">'http://darklg.me'</span><span style="color: #FF00FF;">&#41;</span>
<span style="color: #990099; font-weight: bold;">WHERE</span> comment_type <span style="color: #CC0099;">&lt;&gt;</span> <span style="color: #008000;">&quot;&quot;</span><span style="color: #000033;">;</span></pre></div></div>

</li>
</ul>
<h3>3 &#8211; Transfert des fichiers</h3>
<ul>
<li>Exportez vos fichiers via FTP depuis l&#8217;ancien hébergement vers le nouveau.</li>
<li>Par sécurité, gardez une copie des fichiers et de la base sur votre ordinateur.</li>
</ul>
<h3>4 &#8211; Réactivation</h3>
<ul>
<li>Re-validez la structure des permalinks, cela aura pour effet de recréer le fichier .htaccess.</li>
<li>Réactivez vos plugins un par un, le plugin de cache en dernier.</li>
<li>Mettez à jour vos paramètres WP Stats, Akismet et autres plugins liés à votre domaine.</li>
<li>Naviguez sur votre nouveau site, faites quelques tests basiques : Affichage des pages, vitesse de téléchargement, navigation interne, liens, images correctes, post d&#8217;un commentaire, edition d&#8217;un article, etc.</li>
<li>Si tout va bien, désactivez le mode maintenance.</li>
</ul>
<h3>5 &#8211; Référencement</h3>
<ul>
<li>Sur votre ancien hébergement, videz le fichier .htaccess à la racine, et ajoutez cette ligne :
<pre>RedirectPermanent / http://darklg.me/</pre>
<p>Remplacez bien le domaine par le votre, et faites très attention aux espaces et au slash à la fin de l&#8217;url. Si votre hébergeur ne permet pas cette fonctionnalité, voyez du côté de votre gestionnaire de noms de domaine afin d&#8217;effectuer une redirection permanente (301).
</li>
<li>Mettez à jour vos paramètres <strong>Google Analytics</strong> et <strong>Google Webmaster Tools</strong>, et générez une sitemap neuve.</li>
<li>Réglez les Feedburner, TwitterFeed et autre outils réutilisant votre flux RSS.</li>
<li>Modifiez vos liens dans vos profils Twitter, Facebook, etc.</li>
<li>Une recherche dans la source HTML de votre blog (CTRL+U ou CMD+U dans Firefox) peut vous indiquer des liens non migrés.</li>
<li>Si vous utilisez une application XML-RPC ( WordPress pour iPhone, MarsEdit, Windows Live Blog ), mettez vos paramètres à jour.</li>
<li>Suppliez vos contacts de mettre à jour leurs backlinks, et n&#8217;oubliez pas de faire un lien vers cet article <img src='http://darklg.me/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </li>
</ul>

<hr />
<p style="font-size : 10px;">
	Un article publi&eacute; sur <a href="http://darklg.me">Darklg Blog</a> &copy; 2012<br />
	Lien vers l'article original : <a href="http://darklg.me/2010/12/migration-blog-wordpress/">Migration de mon blog WordPress</a><br />
	<a rel="external nofollow" href="http://minurl.fr/?twitter&amp;titrelien=Darklg+Blog+%3A+Migration+de+mon+blog+WordPress&amp;url=http://darklg.me/2010/12/migration-blog-wordpress/" title="Envoyer vers Twitter, avec MinURL !">Partager cet article sur Twitter</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://darklg.me/2010/12/migration-blog-wordpress/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Mettre à jour WordPress manuellement</title>
		<link>http://darklg.me/2010/12/mettre-a-jour-wordpress-manuellement/</link>
		<comments>http://darklg.me/2010/12/mettre-a-jour-wordpress-manuellement/#comments</comments>
		<pubDate>Sun, 12 Dec 2010 18:48:12 +0000</pubDate>
		<dc:creator>Darklg</dc:creator>
				<category><![CDATA[Développement PHP / MySQL]]></category>
		<category><![CDATA[Wordpress & CMS]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://darklg.me/?p=442</guid>
		<description><![CDATA[Une astuce méconnue, bien qu&#8217;évoquée sur l&#8217;excellent WordPress FR : Il est possible de mettre à jour son installation de WordPress uniquement en remplaçant quelques fichiers, plutôt que toute l&#8217;installation. La procédure est aisée : Il suffit de se rendre sur le trac WordPress, puis, en bas de page, de faire un différentiel entre votre [...]]]></description>
			<content:encoded><![CDATA[<p>Une astuce méconnue, bien qu&#8217;évoquée sur l&#8217;excellent <a href="http://www.wordpress-fr.net/blog/wordpress/sortie-de-wordpress-3-0-3">WordPress FR</a> : Il est possible de <strong>mettre à jour</strong> son installation de WordPress uniquement en remplaçant quelques fichiers, plutôt que toute l&#8217;installation.</p>
<p>La procédure est aisée : Il suffit de se rendre sur <a href="http://core.trac.wordpress.org/browser/tags">le trac WordPress</a>, puis, en bas de page, de faire un différentiel entre votre version, et la version actuelle de <strong>WordPress</strong>. Vous pourrez alors télécharger un fichier zip contenant seulement les fichiers à remplacer via FTP.</p>
<p>Soit une quinzaine de fichiers, pour mettre à jour <strong>WordPress</strong> depuis la version 3.0.1 à la 3.0.3 dans mon cas. Pratique, non ? : )</p>
<p>Attention toutefois :<br />
- il faudra parfois <strong>mettre à jour votre base de données</strong> depuis la page adéquate dans votre administration.<br />
- Pour passer à une <strong>version majeure</strong>, il est conseillé de <strong>recopier</strong> _tous_ les <strong>nouveaux fichiers</strong>.</p>

<hr />
<p style="font-size : 10px;">
	Un article publi&eacute; sur <a href="http://darklg.me">Darklg Blog</a> &copy; 2012<br />
	Lien vers l'article original : <a href="http://darklg.me/2010/12/mettre-a-jour-wordpress-manuellement/">Mettre à jour WordPress manuellement</a><br />
	<a rel="external nofollow" href="http://minurl.fr/?twitter&amp;titrelien=Darklg+Blog+%3A+Mettre+%C3%A0+jour+WordPress+manuellement&amp;url=http://darklg.me/2010/12/mettre-a-jour-wordpress-manuellement/" title="Envoyer vers Twitter, avec MinURL !">Partager cet article sur Twitter</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://darklg.me/2010/12/mettre-a-jour-wordpress-manuellement/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Firefox et le prefetch des link rel next</title>
		<link>http://darklg.me/2010/09/firefox-et-le-prefetch-des-link-rel-next/</link>
		<comments>http://darklg.me/2010/09/firefox-et-le-prefetch-des-link-rel-next/#comments</comments>
		<pubDate>Wed, 29 Sep 2010 17:42:19 +0000</pubDate>
		<dc:creator>Darklg</dc:creator>
				<category><![CDATA[Développement PHP / MySQL]]></category>
		<category><![CDATA[Intégration HTML / CSS]]></category>
		<category><![CDATA[Mozilla firefox]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[prefetch]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://darklg.me/?p=416</guid>
		<description><![CDATA[Sous ce titre cryptique se cache un problème méconnu : Le navigateur Mozilla Firefox pré-charge certaines pages avant leur affichage, pour accélérer la navigation, comme les liens relatifs : &#60;link rel=&#34;next&#34; href=&#34;http://www.monsite.com/page2.html&#34; /&#62; Cette initiative est louable, sauf dans certains cas précis où la page appelle une fonction &#171;&#160;en dur&#160;&#187; : Mise en session d&#8217;une [...]]]></description>
			<content:encoded><![CDATA[<p>Sous ce titre cryptique se cache un problème méconnu : Le navigateur Mozilla Firefox pré-charge certaines pages avant leur affichage, pour accélérer la navigation, comme les liens relatifs :</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;link rel=&quot;next&quot; href=&quot;http://www.monsite.com/page2.html&quot; /&gt;</pre></div></div>

<p>Cette initiative est louable, sauf dans certains cas précis où la page appelle une fonction &laquo;&nbsp;en dur&nbsp;&raquo; : Mise en session d&#8217;une variable, statistiques, etc. Le problème est que <strong>la fonction sera également appelée</strong> par la page suivante, peu pratique dans le cas d&#8217;un historique de navigation, d&#8217;un compteur de pages vues, ou de statistiques sur des navigateurs ne chargeant ni images ni javascript.</p>
<p>Heureusement, une solution simple existe :<br />
Mozilla envoit une <a href="https://developer.mozilla.org/en/Link_prefetching_FAQ">entete http x-moz</a>, qu&#8217;il est possible de récupérer en PHP via l&#8217;appel à la variable <strong>$_SERVER['HTTP_X_MOZ']</strong>. Si elle vaut &laquo;&nbsp;prefetch&nbsp;&raquo;, la page est appelée en mode pré-chargement, donc n&#8217;est pas &laquo;&nbsp;vue&nbsp;&raquo; par le visiteur.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'HTTP_X_MOZ'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'HTTP_X_MOZ'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">'prefetch'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
<span style="color: #666666; font-style: italic;">// Le prefetch est activé</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
<span style="color: #666666; font-style: italic;">// Le prefetch est désactivé, on peut lancer le script</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>A noter qu&#8217;il est également possible de prendre le problème à l&#8217;inverse, en enlevant la fonctionnalité de liens adjacents, au risque de perdre une fonctionnalité utile, comme sur WordPress :</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">//Ajouter dans functions.php</span>
remove_action<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'wp_head'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'adjacent_posts_rel_link_wp_head'</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">10</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>


<hr />
<p style="font-size : 10px;">
	Un article publi&eacute; sur <a href="http://darklg.me">Darklg Blog</a> &copy; 2012<br />
	Lien vers l'article original : <a href="http://darklg.me/2010/09/firefox-et-le-prefetch-des-link-rel-next/">Firefox et le prefetch des link rel next</a><br />
	<a rel="external nofollow" href="http://minurl.fr/?twitter&amp;titrelien=Darklg+Blog+%3A+Firefox+et+le+prefetch+des+link+rel+next&amp;url=http://darklg.me/2010/09/firefox-et-le-prefetch-des-link-rel-next/" title="Envoyer vers Twitter, avec MinURL !">Partager cet article sur Twitter</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://darklg.me/2010/09/firefox-et-le-prefetch-des-link-rel-next/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

