<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet title="XSL formatting" type="text/xsl" href="http://blog.guillaumebizet.fr/feed/rss2/xslt" ?><rss version="2.0"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xmlns:wfw="http://wellformedweb.org/CommentAPI/"
  xmlns:content="http://purl.org/rss/1.0/modules/content/"
  xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
  <title>Le blog de Guillaume Bizet - Dotclear et astuces</title>
  <link>http://blog.guillaumebizet.fr/</link>
  <atom:link href="http://blog.guillaumebizet.fr/feed/category/Dotclear-et-astuces/rss2" rel="self" type="application/rss+xml"/>
  <description>Le blog de Guillaume BIZET : Blogging, iPhone, Webdesign, XHTML, CSS, Web2.0, Dotclear et Dotclear2,  ...</description>
  <language>fr</language>
  <pubDate>Sat, 12 May 2012 18:30:11 +0200</pubDate>
  <copyright>Sous licence &lt;a href=&quot;http://creativecommons.org/licenses/by-nc-sa/2.0/fr&quot;&gt;Creative Commons BY-NC-SA&lt;/a&gt;</copyright>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Dotclear</generator>
  
    
  <item>
    <title>Dotclear 1 et 2 : un espace de présentation des plugins</title>
    <link>http://blog.guillaumebizet.fr/post/2007/12/21/Dotclear-1-et-2-%3A-un-espace-de-presentation-des-plugins</link>
    <guid isPermaLink="false">urn:md5:37a3b52538fe1d668e3183a2c91876bc</guid>
    <pubDate>Fri, 21 Dec 2007 16:56:00 +0100</pubDate>
    <dc:creator>Guillaume BIZET</dc:creator>
        <category>Dotclear et astuces</category>
        <category>Dotclear</category><category>Dotclear2</category><category>Plugins</category>    
    <description>    &lt;p&gt;Encore une bonne nouvelle&lt;/p&gt;


&lt;p&gt;Après avoir créé, un espace pour &lt;a href=&quot;http://www.guillaumebizet.fr/post/2007/10/30/Dotclear-inaugure-un-espace-de-test-pour-les-themes-DC1-et-DC2&quot;&gt;présenter et tester&lt;/a&gt; les thèmes ou dotclear 1.2.x et Dotclear 2, l'équipe de Dotclear vient de mettre en place son petit frère pour les &lt;a href=&quot;http://plugins.dotaddict.org&quot;&gt;plugins&lt;/a&gt;&lt;/p&gt;


&lt;p&gt;&lt;a href=&quot;http://www.guillaumebizet.fr/fichiers_blog/public/images/billets/2007/12_decembre/PluginsDotclear_screenshot.png&quot;&gt;&lt;img src=&quot;http://www.guillaumebizet.fr/fichiers_blog/public/images/billets/2007/12_decembre/.PluginsDotclear_screenshot_s.jpg&quot; alt=&quot;Plugins Dotclear&amp;nbsp;: screenshot&quot; style=&quot;display:block; margin:0 auto;&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p class=&quot;center-text italic&quot;&gt;Cliquez sur l'image pour la voir en grand&lt;/p&gt;




&lt;p&gt;Sur cet espace on peut trouver&amp;nbsp;:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;les &lt;a href=&quot;http://plugins.dotaddict.org&quot;&gt;derniers plugins&lt;/a&gt; proposés et mis à jour par la communauté&lt;/li&gt;
&lt;li&gt;de quoi &lt;a href=&quot;http://plugins.dotaddict.org/infos/Deposer-un-plugin&quot;&gt;proposer les siens&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;plein de &lt;a href=&quot;http://plugins.dotaddict.org/category/Ressources&quot;&gt;ressources&lt;/a&gt; supplémentaires&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Pour choisir son plugin, rien de plus simple naviguez ou triez selon les différents critères ...&lt;/p&gt;


&lt;p&gt;Détail d'une fiche de plugin&amp;nbsp;:
&lt;a href=&quot;http://www.guillaumebizet.fr/fichiers_blog/public/images/billets/2007/12_decembre/PluginsDotclear_screenshot2.png&quot;&gt;&lt;img src=&quot;http://www.guillaumebizet.fr/fichiers_blog/public/images/billets/2007/12_decembre/.PluginsDotclear_screenshot2_s.jpg&quot; alt=&quot;Plugins Dotclear&amp;nbsp;: fiche&quot; style=&quot;display:block; margin:0 auto;&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p class=&quot;center-text italic&quot;&gt;Cliquez sur l'image pour la voir en grand&lt;/p&gt;



&lt;p&gt;Ma prédiction faite sur &lt;a href=&quot;http://blog.guillaumebizet.fr/post/2007/12/21/&quot;&gt;le billet&lt;/a&gt; qui présentait l'espace de thème&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;Je note aussi l'url de la chose http://themes.dotaddict.org, cela veux peut être dire aussi qu'il y aura une déclinaison pour les plugins et pour d'autres choses encore. A suivre ...&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;s'est donc vérifiée &lt;img src=&quot;http://www.guillaumebizet.fr/fichiers_communs/themes/default/smilies/smile.png&quot; alt=&quot;:)&quot; class=&quot;smiley&quot; /&gt;&lt;/p&gt;


&lt;p&gt;Je trouve qu'enfin Dotclear se structure de plus en plus et c'est un très bon point.&lt;br /&gt;
Super, Merci à l'équipe !!!&lt;/p&gt;


&lt;p&gt;Vous en pensez quoi de ces espaces spécifiques&amp;nbsp;?&lt;/p&gt;</description>
    
    
    
          <comments>http://blog.guillaumebizet.fr/post/2007/12/21/Dotclear-1-et-2-%3A-un-espace-de-presentation-des-plugins#comment-form</comments>
      <wfw:comment>http://blog.guillaumebizet.fr/post/2007/12/21/Dotclear-1-et-2-%3A-un-espace-de-presentation-des-plugins#comment-form</wfw:comment>
      <wfw:commentRss>http://feeds2.feedburner.com/BizetsFamilyBlog/comments/713</wfw:commentRss>
      </item>
    
  <item>
    <title>Dotclear inaugure un espace de test pour les thèmes DC1 et DC2</title>
    <link>http://blog.guillaumebizet.fr/post/2007/10/30/Dotclear-inaugure-un-espace-de-test-pour-les-themes-DC1-et-DC2</link>
    <guid isPermaLink="false">urn:md5:bece8f35a1f12d38c4c943fc1a1df879</guid>
    <pubDate>Tue, 30 Oct 2007 15:54:00 +0100</pubDate>
    <dc:creator>Guillaume BIZET</dc:creator>
        <category>Dotclear et astuces</category>
        <category>Blogs</category><category>Dotclear</category><category>Dotclear2</category><category>Démonstration</category><category>Thèmes</category><category>Webdesign</category>    
    <description>    &lt;p&gt;Quelle bonne nouvelle !!!&lt;br /&gt;
Dotclear inaugure aujourd'hui un &lt;a href=&quot;http://themes.dotaddict.org/&quot; hreflang=&quot;fr&quot;&gt;espace&lt;/a&gt; d'hébergement et de test commun au thèmes de la branche 1.2.x et ceux de la branche 2.&lt;/p&gt;


&lt;p&gt;&lt;img src=&quot;http://www.guillaumebizet.fr/fichiers_blog/public/images/billets/2007/10_octobre/.dotaddict_accueil_s.jpg&quot; alt=&quot;Dotaddict&amp;nbsp;: Accueil&quot; style=&quot;display:block; margin:0 auto;&quot; /&gt;&lt;/p&gt;


&lt;p&gt;Sur cet espace on peut trouver&amp;nbsp;:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;les &lt;a href=&quot;http://themes.dotaddict.org/&quot;&gt;derniers thèmes&lt;/a&gt; proposés et mis à jour par la communauté&lt;/li&gt;
&lt;li&gt;de quoi &lt;a href=&quot;http://themes.dotaddict.org/infos/Deposer-un-theme&quot;&gt;proposer les siens&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;des galeries avec la possibilité de les tester sur un blog de démo
&lt;ul&gt;
&lt;li&gt;pour la &lt;a href=&quot;http://themes.dotaddict.org/galerie-dc1&quot;&gt;branche 1.2.x&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;pour la &lt;a href=&quot;http://themes.dotaddict.org/galerie-dc2/&quot;&gt;branche 2&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;li&gt;les kits de Kozlika avec toutes les explications qui conviennent&amp;nbsp;:
&lt;ul&gt;
&lt;li&gt;pour la &lt;a href=&quot;http://themes.dotaddict.org/kit1&quot;&gt;branche 1.2.x&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;pour la &lt;a href=&quot;http://themes.dotaddict.org/kit2&quot;&gt;branche 2&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;li&gt;plein de &lt;a href=&quot;http://themes.dotaddict.org/category/Ressources&quot;&gt;ressources&lt;/a&gt; supplémentaires&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;L'espace est bien sûr motorisé par dotclear et tout est triable et accessible via des tags&lt;/p&gt;


&lt;p&gt;Screenshots :&lt;br /&gt;
&lt;a href=&quot;http://www.guillaumebizet.fr/fichiers_blog/public/images/billets/2007/10_octobre/dotaddict_accueil.png&quot;&gt;&lt;img src=&quot;http://www.guillaumebizet.fr/fichiers_blog/public/images/billets/2007/10_octobre/.dotaddict_accueil_t.jpg&quot; alt=&quot;Dotaddict&amp;nbsp;: Accueil&quot; /&gt;&lt;/a&gt;
&lt;a href=&quot;http://www.guillaumebizet.fr/fichiers_blog/public/images/billets/2007/10_octobre/dotaddict_galerieDC1.png&quot;&gt;&lt;img src=&quot;http://www.guillaumebizet.fr/fichiers_blog/public/images/billets/2007/10_octobre/.dotaddict_galerieDC1_t.jpg&quot; alt=&quot;Dotaddict&amp;nbsp;: galerie DC1&quot; /&gt;&lt;/a&gt;
&lt;a href=&quot;http://www.guillaumebizet.fr/fichiers_blog/public/images/billets/2007/10_octobre/dotaddict_galerieDC2.png&quot;&gt;&lt;img src=&quot;http://www.guillaumebizet.fr/fichiers_blog/public/images/billets/2007/10_octobre/.dotaddict_galerieDC2_t.jpg&quot; alt=&quot;Dotaddict&amp;nbsp;: galerie DC2&quot; /&gt;&lt;/a&gt;
&lt;a href=&quot;http://www.guillaumebizet.fr/fichiers_blog/public/images/billets/2007/10_octobre/dotaddict_ThemeDC2_1.png&quot;&gt;&lt;img src=&quot;http://www.guillaumebizet.fr/fichiers_blog/public/images/billets/2007/10_octobre/.dotaddict_ThemeDC2_1_t.jpg&quot; alt=&quot;Dotaddict&amp;nbsp;: Détail d&amp;#039;un thème partie 1&quot; /&gt;&lt;/a&gt;
&lt;a href=&quot;http://www.guillaumebizet.fr/fichiers_blog/public/images/billets/2007/10_octobre/dotaddict_ThemeDC2_2.png&quot;&gt;&lt;img src=&quot;http://www.guillaumebizet.fr/fichiers_blog/public/images/billets/2007/10_octobre/.dotaddict_ThemeDC2_2_t.jpg&quot; alt=&quot;Dotaddict&amp;nbsp;: Détail d&amp;#039;un thème partie 2&quot; /&gt;&lt;/a&gt;&lt;/p&gt;


&lt;p&gt;Je suis content de cette initiative car je trouvais que face à Wordpress, Dotclear ne ne structurait pas vraiment sur ce point et là c'est chose faite &lt;img src=&quot;http://www.guillaumebizet.fr/fichiers_communs/themes/default/smilies/wink.png&quot; alt=&quot;;)&quot; class=&quot;smiley&quot; /&gt;&lt;br /&gt;
Pour fêter l'évènement l'équipe organise un &lt;a href=&quot;http://themes.dotaddict.org/post/2007/10/30/Concours-Favori-de-lhiver&quot;&gt;concours de thèmes&lt;/a&gt;&lt;/p&gt;


&lt;p&gt;Je note aussi l'url de la chose http://themes.dotaddict.org, cela veux peut être dire aussi qu'il y aura une déclinaison pour les plugins et pour d'autres choses encore. A suivre ...&lt;/p&gt;


&lt;p&gt;Bon il me reste plus qu'à retrousser mes manches et ainsi aller inscrire tous les thèmes que j'ai réalisé&lt;/p&gt;</description>
    
    
    
          <comments>http://blog.guillaumebizet.fr/post/2007/10/30/Dotclear-inaugure-un-espace-de-test-pour-les-themes-DC1-et-DC2#comment-form</comments>
      <wfw:comment>http://blog.guillaumebizet.fr/post/2007/10/30/Dotclear-inaugure-un-espace-de-test-pour-les-themes-DC1-et-DC2#comment-form</wfw:comment>
      <wfw:commentRss>http://feeds2.feedburner.com/BizetsFamilyBlog/comments/582</wfw:commentRss>
      </item>
    
  <item>
    <title>Sauvegardez automatiquement votre base de donnée sous Dotclear 2</title>
    <link>http://blog.guillaumebizet.fr/post/2007/08/08/Sauvegardez-automatiquement-votre-base-de-donnee-sous-Dotclear-2</link>
    <guid isPermaLink="false">urn:md5:f2c5f43b4952143ee9c6688f99897776</guid>
    <pubDate>Thu, 09 Aug 2007 09:19:00 +0200</pubDate>
    <dc:creator>Guillaume BIZET</dc:creator>
        <category>Dotclear et astuces</category>
        <category>Blogs</category><category>Dotclear2</category><category>PHP</category><category>SQL</category><category>Sécurité</category>    
    <description>    &lt;p&gt;Quand j'ai commencé avec dotclear 2, j'ai utilisé le système de back up automatique avec le greffon de K-net &lt;a href=&quot;http://www.k-netweb.net/blog/?post/2007/03/25/Plugin-DotClear-2-%3A-Auto-Backup&quot; hreflang=&quot;fr&quot; title=&quot;Post de présnetation du plugin sur le blog de K-net&quot;&gt;AutoBackUp&lt;/a&gt; mais malheureusement j'étais pas tout à fait satisfait et ce pour plusieurs raisons&amp;nbsp;:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;on ne pouvait pas régler l'heure de sauvegarde&lt;/li&gt;
&lt;li&gt;parfois je recevais des mails avec la pièce jointe de sauvegarde vide&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Avec Dotclear 1.2.6 j'utilisais un code en stock de Pep qui fonctionnait à merveille alors je me suis dis que ce serait bien de l'adapter pour Dotclear 2 mais mes connaissances en php ne me permettais pas de le faire, du coup j'avais un peu laissé tombé après plusieurs tentatives infructueuses quand je suis tombé sur le post de &lt;a href=&quot;http://mudry.org/blog/post/2007/04/14/Sauvegarde-automatique-de-DotClear2&quot; hreflang=&quot;fr&quot; title=&quot;Billet sur la sauvegarde automatique de Dc2 avec un maildump sur le blog de Zeiram&quot;&gt;Zeiram&lt;/a&gt; qui avait fais justement cette adaptation&lt;/p&gt;


&lt;p&gt;Je vous renvoie à &lt;a href=&quot;http://blog.guillaumebizet.fr/index.php/post/2006/05/24/124-sauvegarde-automatique-de-la-base-sql&quot; title=&quot;Billet&amp;nbsp;: Sauvegarde automatique de la base SQL&quot;&gt;mon billet pour dotclear 1&lt;/a&gt; pour ce qui est de la partie installation de se script puisque rien n'a changé.&lt;br /&gt;
Pour le script, vous le trouverez en annexe de ce billet !!!&lt;/p&gt;


&lt;p&gt;Du coup tout marche comme je veux maintenant. &lt;br /&gt;
Qu'est-ce qu'on dis .... Merci Zeiram &lt;img src=&quot;http://www.guillaumebizet.fr/fichiers_communs/themes/default/smilies/wink.png&quot; alt=&quot;;)&quot; class=&quot;smiley&quot; /&gt;&lt;/p&gt;


&lt;p&gt;&lt;strong&gt;Edit du 23 Juillet 2008&amp;nbsp;: comme julien nous le dis en commentaire, le passage en DC2 RC2 l'a amené à modifier ce script. Le nouveau fichier en donc en annexe&lt;/strong&gt;&lt;/p&gt;</description>
    
    
    
          <comments>http://blog.guillaumebizet.fr/post/2007/08/08/Sauvegardez-automatiquement-votre-base-de-donnee-sous-Dotclear-2#comment-form</comments>
      <wfw:comment>http://blog.guillaumebizet.fr/post/2007/08/08/Sauvegardez-automatiquement-votre-base-de-donnee-sous-Dotclear-2#comment-form</wfw:comment>
      <wfw:commentRss>http://feeds2.feedburner.com/BizetsFamilyBlog/comments/454</wfw:commentRss>
      </item>
    
  <item>
    <title>Migrer et rediriger son flux RSS vers Feedburner</title>
    <link>http://blog.guillaumebizet.fr/post/2007/04/09/353-migrer-et-rediriger-son-flux-rss-vers-feedburner</link>
    <guid isPermaLink="false">urn:md5:3a7e22a37523f0819e724283a131f4ce</guid>
    <pubDate>Mon, 09 Apr 2007 16:53:30 +0000</pubDate>
    <dc:creator>Guillaume BIZET</dc:creator>
        <category>Dotclear et astuces</category>
        <category>Blogs</category><category>Dotclear</category><category>RSS</category>    
    <description>&lt;p&gt;Tout blogueur qui se respecte connait forcément &lt;a href=&quot;http://www.feedburner.com/&quot; hreflang=&quot;en&quot;&gt;Feedburner&lt;/a&gt; &lt;sup&gt;[&lt;a href=&quot;http://blog.guillaumebizet.fr/post/2007/04/09/353-migrer-et-rediriger-son-flux-rss-vers-feedburner#pnote-353-1&quot; id=&quot;rev-pnote-353-1&quot;&gt;1&lt;/a&gt;]&lt;/sup&gt;. Je trouve même que Feedburner devient un service presque indispensable pour un blog.&lt;/p&gt;


&lt;p&gt;&lt;img src=&quot;http://www.guillaumebizet.fr/fichiers_blog/public/images/billets/2007/04_avril/logo-feedburner.gif&quot; alt=&quot;Logo Feedburner&quot; style=&quot;display:block; margin:0 auto;&quot; /&gt;&lt;/p&gt;
&lt;div class=&quot;footnotes&quot;&gt;&lt;h4&gt;Notes&lt;/h4&gt;
&lt;p&gt;[&lt;a href=&quot;http://blog.guillaumebizet.fr/post/2007/04/09/353-migrer-et-rediriger-son-flux-rss-vers-feedburner#rev-pnote-353-1&quot; id=&quot;pnote-353-1&quot;&gt;1&lt;/a&gt;] Feedburner est un service d’hébergement et de mesure d’audience des flux RSS&lt;/p&gt;&lt;/div&gt;
    &lt;p&gt;Feedburner vous permets gratuitement l'utilisation de services tels que&amp;nbsp;:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;suivi du nombre d'abonnés&lt;/li&gt;
&lt;li&gt;formatage du flux rss, ainsi il devient visualisable par tout type d'application on et offline&lt;/li&gt;
&lt;li&gt;statistiques de fréquentation du site&lt;/li&gt;
&lt;li&gt;mise en place de publicités (seulement si vous remplissez certaines conditions)&lt;/li&gt;
&lt;li&gt;etc ...&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;mais surtout on peut personnaliser son flux RSS grâce au système de FeedFlares, il faut d'ailleurs que j'en regarde le fonctionnement plus en détail. Les personnalisations réalisables seront ainsi placées en fin d'article dans le flux:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;nombre de commentaires&lt;/li&gt;
&lt;li&gt;faire suivre un article par email&lt;/li&gt;
&lt;li&gt;bookmarker l'article&lt;/li&gt;
&lt;li&gt;etc...&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Au vu de tout ces plus, je suis passé il y a quelques temps par ce service pour les flux rss des articles et des commentaires de ce blog, mais je ne savais pas comment faire pour rediriger les abonnés avec l'ancienne adresse de flux vers celle de feedburner.&lt;br /&gt;
J'ai enfin trouvé la solution via un htaccess à placer dans le dossier contenant les fichiers de ces fluxs. En voici le contenu&amp;nbsp;:&lt;/p&gt;
&lt;pre&gt;RewriteEngine on
RewriteCond %&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;HTTP_USER_AGENT&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt; !FeedBurner
RewriteRule ^rss.php$ http:&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;//feeds.feedburner.com/VotreNomDeFlux [R=301,L]&lt;/span&gt;&lt;/pre&gt;


&lt;p&gt;Explications :&lt;br /&gt;&lt;/p&gt;
&lt;pre&gt;RewriteEngine on&lt;/pre&gt;

&lt;p&gt;Activation du mode rewrite&lt;/p&gt;

&lt;pre&gt;RewriteRule ^rss.php$ http:&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;//feeds.feedburner.com/VotreNomDeFlux [R=301,L]&lt;/span&gt;&lt;/pre&gt;

&lt;p&gt;Redirection permanente de l'ancien flux vers celui de feedburner. En faisant un test on peut voir que cela fonctionne parfaitement hors le problème qu'il reste à régler
est celui du robot d'indexation Feedburner. En effet il a besoin de l'adresse du flux initial pour construire le sien et pour le moment c'est le serpent qui se mords la queue !!!&lt;br /&gt;
Rajoutons donc juste avant chaque commande de redirection, la condition suivante&amp;nbsp;:&lt;/p&gt;
&lt;pre&gt;RewriteCond %&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;HTTP_USER_AGENT&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt; !FeedBurner&lt;/pre&gt;

&lt;p&gt;Cela permet d'exclure le robot d'indexation de cette redirection&amp;nbsp;: ouf, tout est bien qui fini bien ...&lt;/p&gt;</description>
    
    
    
          <comments>http://blog.guillaumebizet.fr/post/2007/04/09/353-migrer-et-rediriger-son-flux-rss-vers-feedburner#comment-form</comments>
      <wfw:comment>http://blog.guillaumebizet.fr/post/2007/04/09/353-migrer-et-rediriger-son-flux-rss-vers-feedburner#comment-form</wfw:comment>
      <wfw:commentRss>http://feeds2.feedburner.com/BizetsFamilyBlog/comments/332</wfw:commentRss>
      </item>
    
  <item>
    <title>Vague de migration de Dotclear vers Wordpress : pourquoi ?</title>
    <link>http://blog.guillaumebizet.fr/post/2007/03/28/318-vague-de-migration-de-dotclear-vers-wordpress-pourquoi</link>
    <guid isPermaLink="false">urn:md5:e92aeb82ae8bf85a5b822b8b4000e084</guid>
    <pubDate>Wed, 28 Mar 2007 18:34:31 +0000</pubDate>
    <dc:creator>Guillaume BIZET</dc:creator>
        <category>Dotclear et astuces</category>
        <category>Blogs</category><category>Dotclear</category><category>Dotclear2</category><category>Wordpress</category>    
    <description>&lt;p&gt;Un vent de panique souffle depuis un petit moment dans la blogosphère, et pas mal de blogueurs font une migration de &lt;a href=&quot;http://www.dotclear.net&quot; hreflang=&quot;fr&quot;&gt;Dotclear&lt;/a&gt; vers &lt;a href=&quot;http://fr.wordpress.com/&quot; hreflang=&quot;fr&quot;&gt;Wordpress&lt;/a&gt;.&lt;br /&gt;&lt;/p&gt;


&lt;p&gt;Certains blogs connus ont déjà sauté le pas&amp;nbsp;:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Soph et Ced de &lt;a href=&quot;http://64k.be/2007/02/25/passer-de-dotclear-12-a-wordpress-21/&quot; hreflang=&quot;fr&quot;&gt;64.be&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Vinch de &lt;a href=&quot;http://www.vinch.be/blog/2007/03/20/les-outils-de-blogging/&quot; hreflang=&quot;fr&quot;&gt;Vinch.be&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;et d'autres y réfléchissent, ou y ont réfléchi&amp;nbsp;:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Eric de &lt;a href=&quot;http://www.presse-citron.net/?2007/02/02/1739-votre-avis-votre-experience-passer-de-dotclear-a-wordpress-c-est-jouable&quot; hreflang=&quot;fr&quot;&gt;Presse Citron&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Philippe d'&lt;a href=&quot;http://blog.accessoweb.info/post/2007/03/19/Les-outils-de-Blogging&quot; hreflang=&quot;fr&quot;&gt;Accessoweb&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;François Goube de &lt;a href=&quot;http://www.goube.org/voxinablog/index.php?2006/09/25/628-qui-a-reussi-une-migration-de-dotclear-vers-wordpress&quot; hreflang=&quot;fr&quot;&gt;voxinablog&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;David Latapie de &lt;a href=&quot;http://blog.empyree.org/post/1490&quot; hreflang=&quot;fr&quot;&gt;blog Empyrée&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Et j'en oublie puisque je ne cite ci-dessus que les cas des &quot;connus/influents&quot; dont j'ai croisé les billets traitant de ce sujet.&lt;/p&gt;


&lt;p&gt;Toujours est il que j'ai voulu connaitre les raisons de ces migrations&amp;nbsp;?&lt;/p&gt;    &lt;p&gt;Du coup je me suis amusé à faire deux petites requêtes&amp;nbsp;:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;une dans technorati en combinant les mots dotclear et wordpress (&lt;a href=&quot;http://technorati.com/search/dotclear+wordpress?authority=n&amp;amp;start=1&quot; hreflang=&quot;fr&quot;&gt;voir ici les résultats&lt;/a&gt;)&lt;/li&gt;
&lt;li&gt;une dans google (&lt;a href=&quot;http://www.google.fr/search?sourceid=navclient-ff&amp;amp;ie=UTF-8&amp;amp;rls=GGGL,GGGL:2006-19,GGGL:fr&amp;amp;q=migration+dotclear+wordpress&quot; hreflang=&quot;fr&quot;&gt;voir ici les résultats&lt;/a&gt;)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Alors voilà les résultats des principales raisons de migration de Dotclear vers Wordpress&amp;nbsp;:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Développement&lt;/strong&gt;
&lt;ul&gt;
&lt;li&gt;Dotclear 2 est toujours en béta et est bien trop long à sortir&lt;/li&gt;
&lt;li&gt;Dotclear a pris du retard dans son développement&lt;/li&gt;
&lt;li&gt;Evolutivité du programme en faveur de wordpress&lt;/li&gt;
&lt;li&gt;Plus de possibilités que dotclear&lt;/li&gt;
&lt;li&gt;Effet plus pro, plus fiable de wordpress&lt;/li&gt;
&lt;li&gt;Bugs persistants sur la beta de Dotclear 2 (enfin je dirais que c'est normal c'est encore une beta !!!)&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Hébergement&lt;/strong&gt;
&lt;ul&gt;
&lt;li&gt;pour dotclear 2, les hébergeurs compatibles PHP5 et MySQL5 ne sont pas très nombreux&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Communauté&lt;/strong&gt;
&lt;ul&gt;
&lt;li&gt;la communauté de dotclear est trop francophone&lt;/li&gt;
&lt;li&gt;la communauté de wordpress est plus étendue et internationale donc très réactive et un meilleur support sur les forums&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Outils&lt;/strong&gt;
&lt;ul&gt;
&lt;li&gt;la quantité de thèmes et de plugins chez wordpress sont un véritable atout&lt;/li&gt;
&lt;li&gt;catgéories doubles par défaut chez worpress alors qu'il faut un plugin pour dotclear&lt;/li&gt;
&lt;li&gt;existence de sous-catégories sur wordpress&lt;/li&gt;
&lt;li&gt;API de services toujours disponibles pour wordpress mais pas pour dotclear&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Voici donc tous les liens qui m'ont permis de faire cette petite analyse&amp;nbsp;:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;http://64k.be/2007/02/25/passer-de-dotclear-12-a-wordpress-21/&lt;/li&gt;
&lt;li&gt;http://www.vinch.be/blog/2007/01/11/visite-guidee-du-nouveau-site-et-du-nouveau-blog/&lt;/li&gt;
&lt;li&gt;http://blog.e-lam.net/2007/03/le-site/bonjour-tout-le-monde/&lt;/li&gt;
&lt;li&gt;http://www.newgeekontheblogs.be/index.php/2007/03/24/88-bye-bye-dotclear&lt;/li&gt;
&lt;li&gt;http://yangban.free.fr/blog/?p=21&lt;/li&gt;
&lt;li&gt;http://ballmeyer.free.fr/blog/?p=7&lt;/li&gt;
&lt;li&gt;http://www.slimati.com/2006/12/12/doctclear-wordpress-la-galere/&lt;/li&gt;
&lt;li&gt;http://www.kloryd.com/?p=3&lt;/li&gt;
&lt;li&gt;http://www.juliencarnelos.com/2007/03/20/wwwjuliencarneloscom/&lt;/li&gt;
&lt;li&gt;http://www.woueb.net/2007/03/12/et-si-je-passais-a-wordpress-vs-dotclear/&lt;/li&gt;
&lt;li&gt;http://samblogv2.free.fr/?p=3&lt;/li&gt;
&lt;li&gt;http://www.jankari.org/rachid/?p=5&lt;/li&gt;
&lt;li&gt;http://blog.lecacheur.com/2007/03/12/passer-de-dotclear-a-wordpress/&lt;/li&gt;
&lt;li&gt;http://leskimo.free.fr/blog/?p=1&lt;/li&gt;
&lt;li&gt;http://gluglu38.free.fr/monantre/?p=158&lt;/li&gt;
&lt;li&gt;http://www.business-academy.fr/2007/03/02/61-bienvenue-sur-la-nouvelle-version-de-business-academy/&lt;/li&gt;
&lt;li&gt;http://www.balencourt.com/blog/2007/02/27/bye-bye-dotclear&lt;/li&gt;
&lt;li&gt;http://blog.empyree.org/post/1490&lt;/li&gt;
&lt;li&gt;http://www.digiboy.fr/2007/01/13/bienvenue-chez-moi/&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;Mes conclusions&lt;/h3&gt;

&lt;p&gt;Au niveau du &lt;strong&gt;développement&lt;/strong&gt; de dotclear 2&amp;nbsp;: effectivement c'est long mais ré-écrire complètement le code en partant d'une feuille blanche et en améliorant autant que possible le résultat final n'est pas aisé mais je pense que le jeu en vaut la chandelle.&lt;br /&gt;
Pour la partie &lt;strong&gt;hébergement&lt;/strong&gt;&amp;nbsp;: il y a une liste complète d'&lt;a href=&quot;http://www.dotclear.net/forum/viewforum.php?id=12&quot; hreflang=&quot;fr&quot;&gt;hébergeurs&lt;/a&gt; sur le forum de dotclear (gratuits et payants) qui sont sous php5 et le Mysql qui va bien.&lt;br /&gt;Pour ce qui est de la &lt;strong&gt;communauté&lt;/strong&gt;&amp;nbsp;: ce n'est pas en partant que la communauté aura &quot;l'étendue&quot; de celle de wordpress, je pense qu'il vaut mieux essayer de participer en s'investissant un peu pour que le support soit encre meilleur sur les forums;&lt;br /&gt;
Et enfin pour les &lt;strong&gt;outils&lt;/strong&gt;&amp;nbsp;: pareil si vous ne trouvez pas ce que vous souhaitez, développez. Vous allez me dire faut il encore en avoir les connaissances&amp;nbsp;? Oui d'accord, mais au moins essayez, ou lancez l'idée sur le forum peut être qu'un développer se prendra de passion pour le plugin que vous souhaitez proposer ...&lt;/p&gt;


&lt;p&gt;Pour moi la question ne se pose pas&amp;nbsp;: je reste sur dotclear et ce pour plusieurs raisons principales&amp;nbsp;:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;dotclear c'est top et c'est français. C'est assez rare pour être souligné.&lt;/li&gt;
&lt;li&gt;l'équipe de développement fait un énorme boulot et c'est aussi en leur faisant confiance que le projet évoluera&lt;/li&gt;
&lt;li&gt;il y a déjà pas mal de thèmes et de plugins et à nous d'en sortir d'autres&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;J'attends avec impatience la RC et la finale qui sera j'en suis sûr de grande qualité&lt;br /&gt;
J'ai quand même installé un blog  de test sous wordpress pour pouvoir comparer mais à première vue je ne suis pas tenté&lt;/p&gt;</description>
    
    
    
          <comments>http://blog.guillaumebizet.fr/post/2007/03/28/318-vague-de-migration-de-dotclear-vers-wordpress-pourquoi#comment-form</comments>
      <wfw:comment>http://blog.guillaumebizet.fr/post/2007/03/28/318-vague-de-migration-de-dotclear-vers-wordpress-pourquoi#comment-form</wfw:comment>
      <wfw:commentRss>http://feeds2.feedburner.com/BizetsFamilyBlog/comments/297</wfw:commentRss>
      </item>
    
  <item>
    <title>Mettre en place un fil d'ariane</title>
    <link>http://blog.guillaumebizet.fr/post/2007/02/09/285-mettre-en-place-un-fil-d-ariane</link>
    <guid isPermaLink="false">urn:md5:085481a9f085a1a14bf4e47ee0afeb09</guid>
    <pubDate>Fri, 09 Feb 2007 22:18:00 +0000</pubDate>
    <dc:creator>Guillaume BIZET</dc:creator>
        <category>Dotclear et astuces</category>
        <category>Astuces</category><category>Blogs</category><category>Dotclear</category><category>PHP</category>    
    <description>&lt;p&gt;Suite au commentaire de &lt;a href=&quot;http://www.guillaumebizet.fr/index.php/2007/02/05/283-theme-rounded#c7789&quot; hreflang=&quot;fr&quot;&gt;Jean-Michel&lt;/a&gt; et à de nombreuses demandes par mail auxquelles j'avais répondu ... par mail, je me suis dis que le plus simple était encore d'expliquer comment j'avais mis en place ce fil d'ariane si pratique pour se retrouver dans les méandres d'un blog.&lt;/p&gt;    &lt;p&gt;Alors voilà, tout est parti d'un code en stock que &lt;a href=&quot;http://callmepep.org/blog/&quot; hreflang=&quot;fr&quot;&gt;Pep&lt;/a&gt; avait publié sur son blog. N'arrivant pas à le retrouver dans ses archives, je me permets de le publier ici.&lt;br /&gt;
Ce code est à copier/coller dans votre &lt;strong&gt;prepend.php&lt;/strong&gt;&lt;/p&gt;

&lt;pre&gt;[php]
    function dcQuickNavbar(
        $block = '&amp;lt;div id=&amp;quot;quicknav&amp;quot; class=&amp;quot;little&amp;quot;&amp;gt;&amp;lt;p&amp;gt;%s&amp;lt;/p&amp;gt;&amp;lt;/div&amp;gt;',
        $item = ' &amp;amp;gt; %s',
        $nav_str = 'Vous &amp;amp;ecirc;tes ici : &amp;lt;a href=&amp;quot;%s&amp;quot; title=&amp;quot;retour &amp;amp;agrave; la page de garde&amp;quot;&amp;gt;Accueil&amp;lt;/a&amp;gt;')
    {
        global $blog, $news;
       
        $mode = ($GLOBALS['mode'] ==
    'pagination')?$GLOBALS['dc_orig_mode']:$GLOBALS['mode'];
       
        $comp_cat_url = '';
        $nav_str = sprintf($nav_str, dc_blog_url);
       
        if ($mode == 'cat') {
            $nav_str .= sprintf($item,$news-&amp;gt;f('cat_libelle'));
        } elseif ($mode == 'related') {
            $nav_str .= sprintf($item,$GLOBALS['related_title']);
        } elseif ($mode == 'month') {
            if ($GLOBALS['cat_id'] != '') {
                $cat_link =
                    '&amp;lt;a href=&amp;quot;'.
                   
    sprintf($blog-&amp;gt;front_url['cat'],$comp_cat_url.$news-&amp;gt;f('cat_libelle_url')).
                    '&amp;quot; '.
                    sprintf('title=&amp;quot;%s&amp;quot;',$news-&amp;gt;f('cat_libelle')).
                    '&amp;gt;'.$news-&amp;gt;f('cat_libelle').'&amp;lt;/a&amp;gt;';
                   
                $nav_str .= sprintf($item, $cat_link);
            }
            $ts = strtotime($GLOBALS['year'].'-'.$GLOBALS['month'].'-01
    00:00');
            $nav_str .= sprintf($item,dt::str('%B %Y',$ts));
        } elseif ($mode == 'post') {
            $cat_link =
                '&amp;lt;a href=&amp;quot;'.
               
    sprintf($news-&amp;gt;blog-&amp;gt;front_url['cat'],$comp_cat_url.$news-&amp;gt;f('cat_libelle_url')).
                '&amp;quot; '.
                sprintf('title=&amp;quot;%s&amp;quot;',$news-&amp;gt;f('cat_libelle')).
                '&amp;gt;'.$news-&amp;gt;f('cat_libelle').'&amp;lt;/a&amp;gt;';
               
            $nav_str .=
                sprintf($item, $cat_link).
                sprintf($item, $news-&amp;gt;f('post_titre'));
        } elseif ($mode == 'toc') {
            $nav_str .= sprintf($item,&amp;quot;Archives&amp;quot;);
}
       
        printf($block,$nav_str);
    }
&lt;/pre&gt;


&lt;p&gt;Mais je ne le trouvait pas assez complet par rapport aux différents mode de Dotclear que j'utilisais, donc avec l'aide d'un auter dotclearien on a étendu le code de Pep pour qu'il soit utilisable aussi pour la partie galerie photo (Plugin &lt;a href=&quot;http://www.dotclear.net/trac/wiki/DotClear/Plugins#Gallery0.9&quot;&gt;Gallery 0.9&lt;/a&gt; de &lt;a href=&quot;http://dsls.fribotte.org/dotclear/index.php&quot; hreflang=&quot;fr&quot;&gt;Dsls&lt;/a&gt;.&lt;br /&gt;
Il faut l'insérer juste avant&lt;/p&gt;
&lt;pre&gt;[php]
}
       
        printf($block,$nav_str);
    }
&lt;/pre&gt;


&lt;p&gt;Voici donc l'ajout effectué&lt;/p&gt;
&lt;pre&gt;[php]
} elseif ($mode == 'galleryCat') {
           
            ob_start();
            dcGallery::catTitle();
            $catTitle=ob_get_contents();
            ob_end_clean();
           
            ob_start();
            dcGallery::homeURL();
            $homeURL=ob_get_contents();
            ob_end_clean();
           
            ob_start();
            dcGallery::catURL();
            $catURL=ob_get_contents();
            ob_end_clean();
           
            $nav_str .= sprintf($item,&amp;quot;&amp;lt;a href=\&amp;quot;$homeURL\&amp;quot;&amp;gt;Galeries&amp;lt;/a&amp;gt;&amp;quot;);
           
        } elseif ($mode == 'galleryGal') {
           
            ob_start();
            dcGallery::catTitle();
            $catTitle=ob_get_contents();
            ob_end_clean();
           
            ob_start();
            dcGallery::homeURL();
            $homeURL=ob_get_contents();
            ob_end_clean();
           
            ob_start();
            dcGallery::catURL();
            $catURL=ob_get_contents();
            ob_end_clean();
            
            ob_start();
            dcGallery::galTitle();
            $galTitle=ob_get_contents();
            ob_end_clean();
           
            ob_start();
            dcGallery::galURL();
            $galURL=ob_get_contents();
            ob_end_clean();
           
            $nav_str .= sprintf($item,&amp;quot;&amp;lt;a href=\&amp;quot;$homeURL\&amp;quot;&amp;gt;Galeries&amp;lt;/a&amp;gt;&amp;quot;);
            $nav_str .= sprintf($item, &amp;quot;&amp;lt;a href=\&amp;quot;$catURL\&amp;quot;&amp;gt;$catTitle&amp;lt;/a&amp;gt;&amp;quot; );
            $nav_str .= sprintf($item, &amp;quot;&amp;lt;a href=\&amp;quot;$galURL\&amp;quot;&amp;gt;$galTitle&amp;lt;/a&amp;gt;&amp;quot; );
           
        } elseif ($mode == 'galleryImage') {
           
            ob_start();
            dcGallery::homeURL();
            $homeURL=ob_get_contents();
            ob_end_clean();
           
            ob_start();
            dcGallery::catURL();
            $catURL=ob_get_contents();
            ob_end_clean();
            
            ob_start();
            dcGallery::catTitle();
            $catTitle=ob_get_contents();
            ob_end_clean();
           
            ob_start();
            dcGallery::galTitle();
            $galTitle=ob_get_contents();
            ob_end_clean();
           
            ob_start();
            dcGallery::galURL();
            $galURL=ob_get_contents();
            ob_end_clean();
           
            ob_start();
            dcGallery::imageURL();
            $imageURL=ob_get_contents();
            ob_end_clean();
           
            ob_start();
            dcGallery::imageName();
            $imageName=ob_get_contents();
            ob_end_clean();
           
            $nav_str .= sprintf($item,&amp;quot;&amp;lt;a href=\&amp;quot;$homeURL\&amp;quot;&amp;gt;Galeries&amp;lt;/a&amp;gt;&amp;quot;);
            $nav_str .= sprintf($item, &amp;quot;&amp;lt;a href=\&amp;quot;$catURL\&amp;quot;&amp;gt;$catTitle&amp;lt;/a&amp;gt;&amp;quot; );
            $nav_str .= sprintf($item, &amp;quot;&amp;lt;a href=\&amp;quot;$galURL\&amp;quot;&amp;gt;$galTitle&amp;lt;/a&amp;gt;&amp;quot; );
&lt;/pre&gt;


&lt;p&gt;et enfin la partie spécifique au &lt;a href=&quot;http://www.dotclear.net/trac/wiki/DotClear/Plugins#Tabledesmati%C3%A8res1.19&quot; hreflang=&quot;fr&quot;&gt;plugin toc&lt;/a&gt; de &lt;a href=&quot;http://franck.paul.free.fr/dotclear/&quot; hreflang=&quot;fr&quot;&gt;Franck Paul&lt;/a&gt;&lt;br /&gt;
Il faut là encore l'insérer juste avant
Il faut l'insérer juste avant&lt;/p&gt;
&lt;pre&gt;[php]
}
       
        printf($block,$nav_str);
    }
&lt;/pre&gt;

&lt;pre&gt;[php]
            } elseif ($mode == 'tocHome')	{
			         
            $nav_str .= sprintf($item,&amp;quot;&amp;lt;a href=\&amp;quot;$homeURL\&amp;quot;&amp;gt;Plan du site&amp;lt;/a&amp;gt;&amp;quot;);
        }
&lt;/pre&gt;

&lt;p&gt;Vous pourrez retrouver ce code complet en fichier attaché à ce billet (voir en bas de post)&lt;/p&gt;


&lt;p&gt;Pour que ce fil d'ariane apparaisse sur votre blog, il ne vous manque plus qu'à insérer le code ci-dessous dans votre &lt;strong&gt;template.php&lt;/strong&gt;&lt;/p&gt;

&lt;pre&gt;[php]
&amp;lt;?php dcQuickNavbar(); ?&amp;gt;
&lt;/pre&gt;


&lt;p&gt;Voilà vous avez donc un fil d'ariane complet pour votre blog.&lt;/p&gt;


&lt;p&gt;Comme vous avez pu le constater, il prends en charge différents modes de dotclear&amp;nbsp;:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;cat&lt;/li&gt;
&lt;li&gt;post&lt;/li&gt;
&lt;li&gt;month&lt;/li&gt;
&lt;li&gt;pagination&lt;/li&gt;
&lt;li&gt;related&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;A ceux déjà pris en charge il a donc été rajouté les modes&amp;nbsp;:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;galleryCat&lt;/li&gt;
&lt;li&gt;galleryGal&lt;/li&gt;
&lt;li&gt;galleryImage&lt;/li&gt;
&lt;li&gt;tocHome&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Il manque encore pour moi juste un fil d'ariane quand on clique sur un tag et la boucle serait bouclée, si vous avez des idées ou que le code pour les modes de gallery sont améliorables, n'hésitez pas à en faire part ...&lt;/p&gt;


&lt;p&gt;Bonne intégration&lt;/p&gt;</description>
    
    
    
          <comments>http://blog.guillaumebizet.fr/post/2007/02/09/285-mettre-en-place-un-fil-d-ariane#comment-form</comments>
      <wfw:comment>http://blog.guillaumebizet.fr/post/2007/02/09/285-mettre-en-place-un-fil-d-ariane#comment-form</wfw:comment>
      <wfw:commentRss>http://feeds2.feedburner.com/BizetsFamilyBlog/comments/265</wfw:commentRss>
      </item>
    
  <item>
    <title>Gallery : affichage du nombre de catégories, galleries, photos</title>
    <link>http://blog.guillaumebizet.fr/post/2006/10/25/244-gallery-affichage-du-nombre-de-categories-galleries-photos</link>
    <guid isPermaLink="false">urn:md5:1f804e649c94512774c64c60a25f9b3b</guid>
    <pubDate>Wed, 25 Oct 2006 09:44:24 +0000</pubDate>
    <dc:creator>Guillaume BIZET</dc:creator>
        <category>Dotclear et astuces</category>
        <category>Astuces</category><category>Blogs</category><category>Dotclear</category><category>PHP</category><category>Plugins</category>    
    <description>    &lt;p&gt;Vous avez pu le remarquer, dans la sidebar de gauche j'ai affiché les statistiques sur le blog&amp;nbsp;:&lt;/p&gt;


&lt;p&gt;&lt;img src=&quot;http://www.guillaumebizet.fr/fichiers_blog/public/images/billets/2006/10_octobre/StatsBlog.jpg&quot; alt=&quot;Statistiques Bizet&amp;#039;s Family Blog&quot; style=&quot;display:block; margin:0 auto;&quot; /&gt;&lt;/p&gt;


&lt;p&gt;Certains m'ont posé la question par mail de savoir comment j'avais pu afficher le nombre de thème de galeries issues du plugin &lt;a href=&quot;http://www.dotclear.net/trac/wiki/DotClear/Plugins#Gallery0.9&quot;&gt;Galery 0.9&lt;/a&gt;, ainsi que le nombre de galeries et le nombre de photos. Je vais donc apporter cette réponse ...&lt;/p&gt;


&lt;p&gt;Pour afficher le nombre de posts, de commentaires et de trackbacks j'utilise le plugin &lt;a href=&quot;http://www.dotclear.net/trac/wiki/DotClear/Plugins#Informations%C3%A9tendues1.1&quot;&gt;Informations Étendues&lt;/a&gt;. Il suffit donc de rajouter quelques lignes de code à ce fichier pour obtenir ce que l'on veut.&lt;/p&gt;


&lt;p&gt;Voici donc ces lignes de code à ajouter à la suite des premières dans le functions.php du plugin Informations étendues&amp;nbsp;:&lt;/p&gt;


&lt;p&gt;Après&amp;nbsp;:&lt;/p&gt;
&lt;pre&gt;&lt;span style=&quot;color: #b1b100;&quot;&gt;case&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;'viewcount'&lt;/span&gt;:  &lt;span style=&quot;color: #0000ff;&quot;&gt;$query&lt;/span&gt; = &lt;span style=&quot;color: #ff0000;&quot;&gt;'SELECT SUM(nb_view) FROM '&lt;/span&gt;.DB_PREFIX.&lt;span style=&quot;color: #ff0000;&quot;&gt;'post'&lt;/span&gt;; &lt;span style=&quot;color: #b1b100;&quot;&gt;break&lt;/span&gt;;&lt;/pre&gt;


&lt;p&gt;Ajoutez&amp;nbsp;:&lt;/p&gt;
&lt;pre&gt;&lt;span style=&quot;color: #b1b100;&quot;&gt;case&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;'imgcount'&lt;/span&gt;: &lt;span style=&quot;color: #0000ff;&quot;&gt;$query&lt;/span&gt; = &lt;span style=&quot;color: #ff0000;&quot;&gt;'SELECT count(*) as info from '&lt;/span&gt;.DB_PREFIX.&lt;span style=&quot;color: #ff0000;&quot;&gt;'galImage'&lt;/span&gt;; &lt;span style=&quot;color: #b1b100;&quot;&gt;break&lt;/span&gt;;
&lt;span style=&quot;color: #b1b100;&quot;&gt;case&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;'galcount'&lt;/span&gt;: &lt;span style=&quot;color: #0000ff;&quot;&gt;$query&lt;/span&gt; = &lt;span style=&quot;color: #ff0000;&quot;&gt;'SELECT count(*) as info from '&lt;/span&gt;.DB_PREFIX.&lt;span style=&quot;color: #ff0000;&quot;&gt;'galGallery'&lt;/span&gt;; &lt;span style=&quot;color: #b1b100;&quot;&gt;break&lt;/span&gt;;
&lt;span style=&quot;color: #b1b100;&quot;&gt;case&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;'catcount'&lt;/span&gt;: &lt;span style=&quot;color: #0000ff;&quot;&gt;$query&lt;/span&gt; = &lt;span style=&quot;color: #ff0000;&quot;&gt;'SELECT count(*) as info from '&lt;/span&gt;.DB_PREFIX.&lt;span style=&quot;color: #ff0000;&quot;&gt;'galCategory'&lt;/span&gt;; &lt;span style=&quot;color: #b1b100;&quot;&gt;break&lt;/span&gt;;&lt;/pre&gt;


&lt;p&gt;ensuite ouvre le index.php. Après&lt;/p&gt;
&lt;pre&gt;buffer::&lt;span style=&quot;color: #006600;&quot;&gt;str&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;__&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'Keyword'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #ff0000;&quot;&gt;': &amp;lt;i&amp;gt;tbcount&amp;lt;/i&amp;gt;&amp;lt;br/&amp;gt;'&lt;/span&gt;.__&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'Current Value'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #ff0000;&quot;&gt;':'&lt;/span&gt;.dcExtendedInfo::&lt;span style=&quot;color: #006600;&quot;&gt;getInfo&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'tbcount'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #ff0000;&quot;&gt;'&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;;&lt;/pre&gt;


&lt;p&gt;Ajoutez ceci&amp;nbsp;:&lt;/p&gt;
&lt;pre&gt;buffer::&lt;span style=&quot;color: #006600;&quot;&gt;str&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'&amp;lt;b&amp;gt;Nombre de galeries&amp;lt;/b&amp;gt;&amp;lt;br/&amp;gt;'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;;
buffer::&lt;span style=&quot;color: #006600;&quot;&gt;str&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;__&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'Keyword'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #ff0000;&quot;&gt;': &amp;lt;i&amp;gt;galcount&amp;lt;/i&amp;gt;&amp;lt;br/&amp;gt;'&lt;/span&gt;.__&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'Current Value'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #ff0000;&quot;&gt;':'&lt;/span&gt;.dcExtendedInfo::&lt;span style=&quot;color: #006600;&quot;&gt;getInfo&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'galcount'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #ff0000;&quot;&gt;'&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;;
buffer::&lt;span style=&quot;color: #006600;&quot;&gt;str&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'&amp;lt;b&amp;gt;Nombre de cat&amp;amp;eacute;gories de galeries&amp;lt;/b&amp;gt;&amp;lt;br/&amp;gt;'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;;
buffer::&lt;span style=&quot;color: #006600;&quot;&gt;str&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;__&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'Keyword'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #ff0000;&quot;&gt;': &amp;lt;i&amp;gt;catcount&amp;lt;/i&amp;gt;&amp;lt;br/&amp;gt;'&lt;/span&gt;.__&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'Current Value'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #ff0000;&quot;&gt;':'&lt;/span&gt;.dcExtendedInfo::&lt;span style=&quot;color: #006600;&quot;&gt;getInfo&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'catcount'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #ff0000;&quot;&gt;'&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;;
buffer::&lt;span style=&quot;color: #006600;&quot;&gt;str&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'&amp;lt;b&amp;gt;Nombre de photos&amp;lt;/b&amp;gt;&amp;lt;br/&amp;gt;'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;;
buffer::&lt;span style=&quot;color: #006600;&quot;&gt;str&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;__&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'Keyword'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #ff0000;&quot;&gt;': &amp;lt;i&amp;gt;imgcount&amp;lt;/i&amp;gt;&amp;lt;br/&amp;gt;'&lt;/span&gt;.__&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'Current Value'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #ff0000;&quot;&gt;':'&lt;/span&gt;.dcExtendedInfo::&lt;span style=&quot;color: #006600;&quot;&gt;getInfo&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'imgcount'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #ff0000;&quot;&gt;'&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;;&lt;/pre&gt;


&lt;p&gt;Enfin dans votre template vous n'avez plus qu'à ajouter où bon vous semble&amp;nbsp;:&lt;/p&gt;
&lt;pre&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;?php&lt;/span&gt; &lt;a href=&quot;http://www.php.net/echo&quot;&gt;&lt;span style=&quot;color: #000066;&quot;&gt;echo&lt;/span&gt;&lt;/a&gt; dcExtendedInfo::&lt;span style=&quot;color: #006600;&quot;&gt;getInfo&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'galcount'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;?php&lt;/span&gt; &lt;a href=&quot;http://www.php.net/echo&quot;&gt;&lt;span style=&quot;color: #000066;&quot;&gt;echo&lt;/span&gt;&lt;/a&gt; dcExtendedInfo::&lt;span style=&quot;color: #006600;&quot;&gt;getInfo&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'catcount'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;?php&lt;/span&gt; &lt;a href=&quot;http://www.php.net/echo&quot;&gt;&lt;span style=&quot;color: #000066;&quot;&gt;echo&lt;/span&gt;&lt;/a&gt; dcExtendedInfo::&lt;span style=&quot;color: #006600;&quot;&gt;getInfo&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'imgcount'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/pre&gt;


&lt;p&gt;Et vous obtenez ce que vous voulez &lt;img src=&quot;http://www.guillaumebizet.fr/fichiers_communs/themes/default/smilies/wink.png&quot; alt=&quot;;)&quot; class=&quot;smiley&quot; /&gt;&lt;/p&gt;</description>
    
    
    
          <comments>http://blog.guillaumebizet.fr/post/2006/10/25/244-gallery-affichage-du-nombre-de-categories-galleries-photos#comment-form</comments>
      <wfw:comment>http://blog.guillaumebizet.fr/post/2006/10/25/244-gallery-affichage-du-nombre-de-categories-galleries-photos#comment-form</wfw:comment>
      <wfw:commentRss>http://feeds2.feedburner.com/BizetsFamilyBlog/comments/225</wfw:commentRss>
      </item>
    
  <item>
    <title>Dotclear : bbclone et le plugin related</title>
    <link>http://blog.guillaumebizet.fr/post/2006/10/03/229-dotclear-bbclone-et-le-plugin-related</link>
    <guid isPermaLink="false">urn:md5:857055d37f8a176401549344af0a9e54</guid>
    <pubDate>Tue, 03 Oct 2006 11:59:55 +0000</pubDate>
    <dc:creator>Guillaume BIZET</dc:creator>
        <category>Dotclear et astuces</category>
        <category>Astuces</category><category>Blogs</category><category>Dotclear</category>    
    <description>    &lt;p&gt;Pour ceux qui utilisent BBclone et le plugin related, vous aurez surement remarqué que quand vous visualisez le détail des pages vues par un visiteur les pages ralted visualisées n'apparaissent pas.&lt;/p&gt;


&lt;p&gt;Eh bien il suffit d'une toute petite manipulation pour les &quot;faire apparaitre&quot;&lt;/p&gt;


&lt;p&gt;dans le fichier functions.php de BBClone, il faut ajouter&amp;nbsp;:&lt;/p&gt;

&lt;pre&gt;&lt;span style=&quot;color: #b1b100;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$GLOBALS&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'mode'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt; == &lt;span style=&quot;color: #ff0000;&quot;&gt;'related'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;
&lt;span style=&quot;color: #0000ff;&quot;&gt;$tag&lt;/span&gt; = &lt;span style=&quot;color: #0000ff;&quot;&gt;$GLOBALS&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'related_title'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt;;
&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;


&lt;p&gt;avant la ligne&lt;/p&gt;
&lt;pre&gt;&lt;span style=&quot;color: #b1b100;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt; !&lt;a href=&quot;http://www.php.net/strlen&quot;&gt;&lt;span style=&quot;color: #000066;&quot;&gt;strlen&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$tag&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;/pre&gt;


&lt;p&gt;et voilà, au lieu d'avoir la page related comptabilisée comme &lt;q&gt;dc_index&lt;/q&gt; elle est comptabilisée dorénavant comme &lt;q&gt;nom_de_la_page_related&lt;/q&gt;&lt;/p&gt;</description>
    
    
    
          <comments>http://blog.guillaumebizet.fr/post/2006/10/03/229-dotclear-bbclone-et-le-plugin-related#comment-form</comments>
      <wfw:comment>http://blog.guillaumebizet.fr/post/2006/10/03/229-dotclear-bbclone-et-le-plugin-related#comment-form</wfw:comment>
      <wfw:commentRss>http://feeds2.feedburner.com/BizetsFamilyBlog/comments/210</wfw:commentRss>
      </item>
    
  <item>
    <title>Blogroll avec description des liens</title>
    <link>http://blog.guillaumebizet.fr/post/2006/09/28/224-blogroll-avec-description-des-liens</link>
    <guid isPermaLink="false">urn:md5:d7676c1e5c7ba8d2f43f59aaadafbbe3</guid>
    <pubDate>Thu, 28 Sep 2006 14:43:42 +0000</pubDate>
    <dc:creator>Guillaume BIZET</dc:creator>
        <category>Dotclear et astuces</category>
        <category>Astuces</category><category>Blogs</category><category>Dotclear</category><category>PHP</category>    
    <description>&lt;p&gt;Pour mon nouveau thème (&lt;a href=&quot;http://www.guillaumebizet.fr/index.php/2006/09/27/220-theme-web20&quot; hreflang=&quot;fr&quot; title=&quot;Billet du thème web 2.0&quot;&gt;thème web 2.0&lt;/a&gt;) il a fallu que je passe les liens dans une page related pour une meilleure visibilité.&lt;br /&gt;
Mais je voulais pouvoir afficher les liens et leur description que l'on indique quand on ajoute un nouveau lien au blogroll. Simple me direz-vous, mais pas quand on débute en php.&lt;/p&gt;


&lt;p&gt;Méthode détaillée&lt;/p&gt;    &lt;p&gt;C'est grâce à &lt;a href=&quot;http://zenstyle.free.fr/&quot; hreflang=&quot;fr&quot; title=&quot;Le blog de TomTom&amp;nbsp;: Zenstyle&quot;&gt;TomTom&lt;/a&gt; que j'ai pu mettre en place ce blogroll personnalié, et je profite de ce billet pour le remercier car en 2 temps 3 mouvements il a trouvé la solution &lt;img src=&quot;http://www.guillaumebizet.fr/fichiers_communs/themes/default/smilies/wink.png&quot; alt=&quot;;)&quot; class=&quot;smiley&quot; /&gt;&lt;/p&gt;


&lt;p&gt;C'est tout simple&amp;nbsp;:&lt;/p&gt;


&lt;h3&gt;Première étape&lt;/h3&gt;

&lt;p&gt;Aller dans le dossier du plugin Blogroll et copiez la fonction ci dessous du fichier /ecrire/tools/blogroll/functions.php&lt;/p&gt;
&lt;pre&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;/*
Cette fonction affiche la liste des liens (blogroll)
	
@proto function dcLinkList
@param string  block Chaine de substitution pour pour la liste ('&amp;lt;ul&amp;gt;%s&amp;lt;/ul&amp;gt;')
@param string  item  Chaine de substitution pour un &amp;Atilde;&amp;copy;l&amp;Atilde;&amp;copy;ment ('&amp;lt;li&amp;gt;%s&amp;lt;/li&amp;gt;')
*/&lt;/span&gt;
&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;function&lt;/span&gt; linkList&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$category&lt;/span&gt;=&lt;span style=&quot;color: #ff0000;&quot;&gt;'&amp;lt;h3&amp;gt;%s&amp;lt;/h3&amp;gt;'&lt;/span&gt;,&lt;span style=&quot;color: #0000ff;&quot;&gt;$block&lt;/span&gt;=&lt;span style=&quot;color: #ff0000;&quot;&gt;'&amp;lt;ul&amp;gt;%s&amp;lt;/ul&amp;gt;'&lt;/span&gt;,&lt;span style=&quot;color: #0000ff;&quot;&gt;$item&lt;/span&gt;=&lt;span style=&quot;color: #ff0000;&quot;&gt;'&amp;lt;li&amp;gt;%s&amp;lt;/li&amp;gt;'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;
&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;
	&lt;a href=&quot;http://www.php.net/global&quot;&gt;&lt;span style=&quot;color: #000066;&quot;&gt;global&lt;/span&gt;&lt;/a&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$con&lt;/span&gt;, &lt;span style=&quot;color: #0000ff;&quot;&gt;$blog&lt;/span&gt;;
&amp;nbsp;
	&lt;span style=&quot;color: #b1b100;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$rs_link&lt;/span&gt; = &lt;span style=&quot;color: #0000ff;&quot;&gt;$con&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;select&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;
		&lt;span style=&quot;color: #ff0000;&quot;&gt;' SELECT label, href, title, lang, rel FROM '&lt;/span&gt; . &lt;span style=&quot;color: #0000ff;&quot;&gt;$blog&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;t_link&lt;/span&gt;
		. &lt;span style=&quot;color: #ff0000;&quot;&gt;'  ORDER BY position'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; !== &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;
		&lt;span style=&quot;color: #0000ff;&quot;&gt;$res&lt;/span&gt; = &lt;span style=&quot;color: #ff0000;&quot;&gt;''&lt;/span&gt;;
		
		&lt;span style=&quot;color: #b1b100;&quot;&gt;while&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;!&lt;span style=&quot;color: #0000ff;&quot;&gt;$rs_link&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;EOF&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;
			&lt;span style=&quot;color: #0000ff;&quot;&gt;$label&lt;/span&gt; = &lt;span style=&quot;color: #0000ff;&quot;&gt;$rs_link&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;f&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'label'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;;
			&lt;span style=&quot;color: #0000ff;&quot;&gt;$href&lt;/span&gt;  = &lt;span style=&quot;color: #0000ff;&quot;&gt;$rs_link&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;f&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'href'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;;
			&lt;span style=&quot;color: #0000ff;&quot;&gt;$title&lt;/span&gt; = &lt;span style=&quot;color: #0000ff;&quot;&gt;$rs_link&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;f&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'title'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;;
			&lt;span style=&quot;color: #0000ff;&quot;&gt;$lang&lt;/span&gt;  = &lt;span style=&quot;color: #0000ff;&quot;&gt;$rs_link&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;f&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'lang'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;;
			&lt;span style=&quot;color: #0000ff;&quot;&gt;$rel&lt;/span&gt; = &lt;span style=&quot;color: #0000ff;&quot;&gt;$rs_link&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;f&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'rel'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;;
			
			&lt;span style=&quot;color: #b1b100;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;! &lt;span style=&quot;color: #0000ff;&quot;&gt;$label&lt;/span&gt; &amp;amp;&amp;amp; ! &lt;span style=&quot;color: #0000ff;&quot;&gt;$href&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;
				&lt;span style=&quot;color: #b1b100;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;''&lt;/span&gt; != &lt;span style=&quot;color: #0000ff;&quot;&gt;$res&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;
					&lt;a href=&quot;http://www.php.net/printf&quot;&gt;&lt;span style=&quot;color: #000066;&quot;&gt;printf&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$block&lt;/span&gt;,&lt;span style=&quot;color: #0000ff;&quot;&gt;$res&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;;
				&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt;
				&lt;a href=&quot;http://www.php.net/printf&quot;&gt;&lt;span style=&quot;color: #000066;&quot;&gt;printf&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$category&lt;/span&gt;, &lt;span style=&quot;color: #0000ff;&quot;&gt;$title&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;;
				&lt;span style=&quot;color: #0000ff;&quot;&gt;$res&lt;/span&gt; = &lt;span style=&quot;color: #ff0000;&quot;&gt;''&lt;/span&gt;; 
			&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;
				
				&lt;span style=&quot;color: #0000ff;&quot;&gt;$link&lt;/span&gt; =
				&lt;span style=&quot;color: #ff0000;&quot;&gt;'&amp;lt;a href=&amp;quot;'&lt;/span&gt;.htmlspecialchars&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$href&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #ff0000;&quot;&gt;'&amp;quot;'&lt;/span&gt;.
				&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;!&lt;span style=&quot;color: #0000ff;&quot;&gt;$lang&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; ? &lt;span style=&quot;color: #ff0000;&quot;&gt;''&lt;/span&gt; : &lt;span style=&quot;color: #ff0000;&quot;&gt;' hreflang=&amp;quot;'&lt;/span&gt;.htmlspecialchars&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$lang&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #ff0000;&quot;&gt;'&amp;quot;'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;.
				&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;!&lt;span style=&quot;color: #0000ff;&quot;&gt;$title&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; ? &lt;span style=&quot;color: #ff0000;&quot;&gt;''&lt;/span&gt; : &lt;span style=&quot;color: #ff0000;&quot;&gt;' title=&amp;quot;'&lt;/span&gt;.htmlspecialchars&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$title&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #ff0000;&quot;&gt;'&amp;quot;'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;.
				&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;!&lt;span style=&quot;color: #0000ff;&quot;&gt;$rel&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; ? &lt;span style=&quot;color: #ff0000;&quot;&gt;''&lt;/span&gt; : &lt;span style=&quot;color: #ff0000;&quot;&gt;' rel=&amp;quot;'&lt;/span&gt;.htmlspecialchars&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$rel&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #ff0000;&quot;&gt;'&amp;quot;'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;.
				&lt;span style=&quot;color: #ff0000;&quot;&gt;'&amp;gt;'&lt;/span&gt;.
				&lt;a href=&quot;http://www.php.net/htmlspecialchars&quot;&gt;&lt;span style=&quot;color: #000066;&quot;&gt;htmlspecialchars&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$label&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;.
				&lt;span style=&quot;color: #ff0000;&quot;&gt;'&amp;lt;/a&amp;gt;'&lt;/span&gt;;
				
				&lt;span style=&quot;color: #0000ff;&quot;&gt;$res&lt;/span&gt; .= &lt;a href=&quot;http://www.php.net/sprintf&quot;&gt;&lt;span style=&quot;color: #000066;&quot;&gt;sprintf&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$item&lt;/span&gt;,&lt;span style=&quot;color: #0000ff;&quot;&gt;$link&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;;
			&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt;
			&lt;span style=&quot;color: #0000ff;&quot;&gt;$rs_link&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;moveNext&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;;
		&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt;
		&lt;span style=&quot;color: #b1b100;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;''&lt;/span&gt; != &lt;span style=&quot;color: #0000ff;&quot;&gt;$res&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;
			&lt;a href=&quot;http://www.php.net/printf&quot;&gt;&lt;span style=&quot;color: #000066;&quot;&gt;printf&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$block&lt;/span&gt;,&lt;span style=&quot;color: #0000ff;&quot;&gt;$res&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;;
		&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt;
	&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt;
	&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt;
&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;


&lt;p&gt;Ensuite collez là dans le prepend.php de votre thème avant le ?&amp;gt; final&lt;br /&gt;&lt;/p&gt;


&lt;h3&gt;Deuxième étape&lt;/h3&gt;

&lt;p&gt;Renomez la fonction linkList comme suit&amp;nbsp;: remplacez&lt;/p&gt;
&lt;pre&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;function&lt;/span&gt; linkList&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$category&lt;/span&gt;=&lt;span style=&quot;color: #ff0000;&quot;&gt;'&amp;lt;h3&amp;gt;%s&amp;lt;/h3&amp;gt;'&lt;/span&gt;,&lt;span style=&quot;color: #0000ff;&quot;&gt;$block&lt;/span&gt;=&lt;span style=&quot;color: #ff0000;&quot;&gt;'&amp;lt;ul&amp;gt;%s&amp;lt;/ul&amp;gt;'&lt;/span&gt;,&lt;span style=&quot;color: #0000ff;&quot;&gt;$item&lt;/span&gt;=&lt;span style=&quot;color: #ff0000;&quot;&gt;'&amp;lt;li&amp;gt;%s&amp;lt;/li&amp;gt;'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;/pre&gt;

&lt;p&gt;par&lt;/p&gt;
&lt;pre&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;function&lt;/span&gt; mylinkList&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$category&lt;/span&gt;=&lt;span style=&quot;color: #ff0000;&quot;&gt;'&amp;lt;h3&amp;gt;%s&amp;lt;/h3&amp;gt;'&lt;/span&gt;,&lt;span style=&quot;color: #0000ff;&quot;&gt;$block&lt;/span&gt;=&lt;span style=&quot;color: #ff0000;&quot;&gt;'&amp;lt;ul&amp;gt;%s&amp;lt;/ul&amp;gt;'&lt;/span&gt;,&lt;span style=&quot;color: #0000ff;&quot;&gt;$item&lt;/span&gt;=&lt;span style=&quot;color: #ff0000;&quot;&gt;'&amp;lt;li&amp;gt;%s&amp;lt;/li&amp;gt;'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;/pre&gt;


&lt;h3&gt;Troisième étape&lt;/h3&gt;

&lt;p&gt;pour avoir cette description des liens il vous faut ajouter un bout de code.&lt;br /&gt;
Remplacez&lt;/p&gt;
&lt;pre&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$link&lt;/span&gt; =
&lt;span style=&quot;color: #ff0000;&quot;&gt;'&amp;lt;a href=&amp;quot;'&lt;/span&gt;.htmlspecialchars&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$href&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #ff0000;&quot;&gt;'&amp;quot;'&lt;/span&gt;.
&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;!&lt;span style=&quot;color: #0000ff;&quot;&gt;$lang&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; ? &lt;span style=&quot;color: #ff0000;&quot;&gt;''&lt;/span&gt; : &lt;span style=&quot;color: #ff0000;&quot;&gt;' hreflang=&amp;quot;'&lt;/span&gt;.htmlspecialchars&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$lang&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #ff0000;&quot;&gt;'&amp;quot;'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;.
&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;!&lt;span style=&quot;color: #0000ff;&quot;&gt;$title&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; ? &lt;span style=&quot;color: #ff0000;&quot;&gt;''&lt;/span&gt; : &lt;span style=&quot;color: #ff0000;&quot;&gt;' title=&amp;quot;'&lt;/span&gt;.htmlspecialchars&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$title&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #ff0000;&quot;&gt;'&amp;quot;'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;.
&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;!&lt;span style=&quot;color: #0000ff;&quot;&gt;$rel&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; ? &lt;span style=&quot;color: #ff0000;&quot;&gt;''&lt;/span&gt; : &lt;span style=&quot;color: #ff0000;&quot;&gt;' rel=&amp;quot;'&lt;/span&gt;.htmlspecialchars&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$rel&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #ff0000;&quot;&gt;'&amp;quot;'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;.
&lt;span style=&quot;color: #ff0000;&quot;&gt;'&amp;gt;'&lt;/span&gt;.
&lt;a href=&quot;http://www.php.net/htmlspecialchars&quot;&gt;&lt;span style=&quot;color: #000066;&quot;&gt;htmlspecialchars&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$label&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;.
&lt;span style=&quot;color: #ff0000;&quot;&gt;'&amp;lt;/a&amp;gt;'&lt;/span&gt;;&lt;/pre&gt;

&lt;p&gt;par&lt;/p&gt;
&lt;pre&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$link&lt;/span&gt; =
&lt;span style=&quot;color: #ff0000;&quot;&gt;'&amp;lt;a href=&amp;quot;'&lt;/span&gt;.htmlspecialchars&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$href&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #ff0000;&quot;&gt;'&amp;quot;'&lt;/span&gt;.
&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;!&lt;span style=&quot;color: #0000ff;&quot;&gt;$lang&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; ? &lt;span style=&quot;color: #ff0000;&quot;&gt;''&lt;/span&gt; : &lt;span style=&quot;color: #ff0000;&quot;&gt;' hreflang=&amp;quot;'&lt;/span&gt;.htmlspecialchars&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$lang&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #ff0000;&quot;&gt;'&amp;quot;'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;.
&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;!&lt;span style=&quot;color: #0000ff;&quot;&gt;$title&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; ? &lt;span style=&quot;color: #ff0000;&quot;&gt;''&lt;/span&gt; : &lt;span style=&quot;color: #ff0000;&quot;&gt;' title=&amp;quot;'&lt;/span&gt;.htmlspecialchars&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$title&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #ff0000;&quot;&gt;'&amp;quot;'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;.
&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;!&lt;span style=&quot;color: #0000ff;&quot;&gt;$rel&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; ? &lt;span style=&quot;color: #ff0000;&quot;&gt;''&lt;/span&gt; : &lt;span style=&quot;color: #ff0000;&quot;&gt;' rel=&amp;quot;'&lt;/span&gt;.htmlspecialchars&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$rel&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #ff0000;&quot;&gt;'&amp;quot;'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;.
&lt;span style=&quot;color: #ff0000;&quot;&gt;'&amp;gt;'&lt;/span&gt;.
&lt;a href=&quot;http://www.php.net/htmlspecialchars&quot;&gt;&lt;span style=&quot;color: #000066;&quot;&gt;htmlspecialchars&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$label&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;.
&lt;span style=&quot;color: #ff0000;&quot;&gt;'&amp;lt;/a&amp;gt;&amp;lt;br/&amp;gt;'&lt;/span&gt;.
&lt;a href=&quot;http://www.php.net/htmlspecialchars&quot;&gt;&lt;span style=&quot;color: #000066;&quot;&gt;htmlspecialchars&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$title&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;;&lt;/pre&gt;


&lt;p&gt;Et voilà le tour est joué. Vous pouvez aller voir le résultat sur la page de mon blog&amp;nbsp;: &lt;a href=&quot;http://www.guillaumebizet.fr/index.php/liens&quot; hreflang=&quot;fr&quot; title=&quot;Les bookmarks du Bizet&amp;#039;s Family Blog&quot;&gt;mes bookmarks&lt;/a&gt;&lt;/p&gt;</description>
    
    
    
          <comments>http://blog.guillaumebizet.fr/post/2006/09/28/224-blogroll-avec-description-des-liens#comment-form</comments>
      <wfw:comment>http://blog.guillaumebizet.fr/post/2006/09/28/224-blogroll-avec-description-des-liens#comment-form</wfw:comment>
      <wfw:commentRss>http://feeds2.feedburner.com/BizetsFamilyBlog/comments/206</wfw:commentRss>
      </item>
    
  <item>
    <title>Dotclear : lien vers partie publique</title>
    <link>http://blog.guillaumebizet.fr/post/2006/09/27/223-dotclear-lien-vers-partie-publique</link>
    <guid isPermaLink="false">urn:md5:48d3b4db2291cc6386cb38230459f1d5</guid>
    <pubDate>Wed, 27 Sep 2006 11:15:24 +0000</pubDate>
    <dc:creator>Guillaume BIZET</dc:creator>
        <category>Dotclear et astuces</category>
        <category>Astuces</category><category>Blogs</category><category>Dotclear</category>    
    <description>    &lt;p&gt;Dans Dotclear 1.2.x il n'y a que sur la partie billet que l'on peut avoir le lien vers le blog en partie publique alors voici un petit hack qui permet d'obtenir ceci (cf image ci-dessous)&lt;/p&gt;


&lt;p&gt;&lt;img src=&quot;http://www.guillaumebizet.fr/fichiers_blog/public/images/billets/2006/09_septembre/adminblog.jpg&quot; alt=&quot;Visualisation de la modif partie admin&quot; style=&quot;display:block; margin:0 auto;&quot; /&gt;&lt;/p&gt;


&lt;p&gt;il faut remplacer dans ecrire/inc/model.inc.php&amp;nbsp;:&lt;/p&gt;

&lt;pre&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'&amp;lt;ul class=&amp;quot;user-info&amp;quot;&amp;gt;'&lt;/span&gt;.
		&lt;span style=&quot;color: #ff0000;&quot;&gt;'&amp;lt;li class=&amp;quot;ui-name&amp;quot;&amp;gt;'&lt;/span&gt;.&lt;span style=&quot;color: #0000ff;&quot;&gt;$_SESSION&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'sess_user_cn'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt;.&lt;span style=&quot;color: #ff0000;&quot;&gt;'&amp;lt;/li&amp;gt;'&lt;/span&gt;.
		&lt;span style=&quot;color: #ff0000;&quot;&gt;'&amp;lt;li class=&amp;quot;ui-logout&amp;quot;&amp;gt;&amp;lt;a href=&amp;quot;index.php?logout=1&amp;quot;&amp;gt;'&lt;/span&gt;.__&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'logout'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #ff0000;&quot;&gt;'&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;'&lt;/span&gt;.
       
	&lt;span style=&quot;color: #ff0000;&quot;&gt;'&amp;lt;/ul&amp;gt;'&lt;/span&gt;.&lt;/pre&gt;


&lt;p&gt;par&lt;/p&gt;

&lt;pre&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'&amp;lt;ul class=&amp;quot;user-info&amp;quot;&amp;gt;'&lt;/span&gt;.
		&lt;span style=&quot;color: #ff0000;&quot;&gt;'&amp;lt;li class=&amp;quot;ui-name&amp;quot;&amp;gt;'&lt;/span&gt;.&lt;span style=&quot;color: #0000ff;&quot;&gt;$_SESSION&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'sess_user_cn'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt;.&lt;span style=&quot;color: #ff0000;&quot;&gt;'&amp;lt;/li&amp;gt;'&lt;/span&gt;.
		&lt;span style=&quot;color: #ff0000;&quot;&gt;'&amp;lt;li&amp;gt;&amp;lt;a href=&amp;quot;index.php?logout=1&amp;quot;&amp;gt;'&lt;/span&gt;.__&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'logout'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #ff0000;&quot;&gt;'&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;'&lt;/span&gt;.
        &lt;span style=&quot;color: #ff0000;&quot;&gt;'&amp;lt;li class=&amp;quot;ui-logout&amp;quot; style=&amp;quot;margin-left: 30px&amp;quot;&amp;gt;&amp;lt;a href=&amp;quot;'&lt;/span&gt;.dc_blog_url.&lt;span style=&quot;color: #ff0000;&quot;&gt;'&amp;quot;&amp;gt;'&lt;/span&gt;.__&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'View blog'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #ff0000;&quot;&gt;'&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;'&lt;/span&gt;.
	&lt;span style=&quot;color: #ff0000;&quot;&gt;'&amp;lt;/ul&amp;gt;'&lt;/span&gt;.&lt;/pre&gt;


&lt;p&gt;Et j'avoue que c'est très pratique car depuis que j'ai fais ça je l'utilise tout le temps &lt;img src=&quot;http://www.guillaumebizet.fr/fichiers_communs/themes/default/smilies/wink.png&quot; alt=&quot;;)&quot; class=&quot;smiley&quot; /&gt;&lt;/p&gt;</description>
    
    
    
          <comments>http://blog.guillaumebizet.fr/post/2006/09/27/223-dotclear-lien-vers-partie-publique#comment-form</comments>
      <wfw:comment>http://blog.guillaumebizet.fr/post/2006/09/27/223-dotclear-lien-vers-partie-publique#comment-form</wfw:comment>
      <wfw:commentRss>http://feeds2.feedburner.com/BizetsFamilyBlog/comments/205</wfw:commentRss>
      </item>
    
  <item>
    <title>Rediriger son blog</title>
    <link>http://blog.guillaumebizet.fr/post/2006/09/26/221-rediriger-son-blog</link>
    <guid isPermaLink="false">urn:md5:6c924253a84ce78c24af1b741f35c53a</guid>
    <pubDate>Tue, 26 Sep 2006 12:07:13 +0000</pubDate>
    <dc:creator>Guillaume BIZET</dc:creator>
        <category>Dotclear et astuces</category>
        <category>Astuces</category><category>Blogs</category><category>Dotclear</category>    
    <description>    &lt;p&gt;Au tout début, mon blog était à l'adresse suivante &lt;a href=&quot;http://guillaumebizet.free.fr&quot; hreflang=&quot;fr&quot; title=&quot;Ancienne adresse du blog sur Free&quot;&gt;http://guillaumebizet.free.fr&lt;/a&gt;.&lt;/p&gt;


&lt;p&gt;Depuis j'ai acheté un nom de domaine &lt;a href=&quot;http://www.guillaumebizet.fr&quot; hreflang=&quot;fr&quot; title=&quot;Nouvelle adresse du blog sur le nom de domaine&quot;&gt;www.bizetfamily.net&lt;/a&gt;. En faisant la migration je me suis trouvé confronté à un problème&amp;nbsp;: comment rediriger les anciens post, et liens de free vers le nouveau nom de domaine.&lt;/p&gt;


&lt;p&gt;Dans un premier temps j'avais trouvé une solution batarde. Mettre un index.html à la racine de http://guillaumebizet.free.fr en disant que le blog avait changé d'adresse, cette méthode étant couplée avec un .htaccess qui contenait&lt;/p&gt;
&lt;code&gt;RedirectPermanent / http://www.guillaumebizet.fr/&lt;/code&gt;



&lt;p&gt;mais quand on tapait par exemple&amp;nbsp;:&lt;/p&gt;
&lt;pre&gt;http://guillaumebizet.free.fr/blog/index.php/2006/03/24/91-plugin-tags-nombre-limite-eh-bien-non&lt;/pre&gt;


&lt;p&gt;on se retrouvait sur la page&amp;nbsp;:&lt;/p&gt;
&lt;pre&gt;http://www.guillaumebizet.fr&lt;/pre&gt;


&lt;p&gt;Maintenant je viens de trouver une solution plus adéquate. Un simple .htaccess à la racine de l'ancienne adresse qui contient&lt;/p&gt;
&lt;code&gt;RedirectMatch permanent /blog/(.*) http://www.guillaumebizet.fr/$1&lt;br /&gt;
RedirectPermanent / http://www.guillaumebizet.fr/&lt;/code&gt;



&lt;p&gt;Du coup les anciens posts sont bien redirigés sur les nouveaux sur le nom de domaine et quand on tape l'adresse de l'ancien blog on est bien redirigé vers la nouvelle adresse&lt;/p&gt;</description>
    
    
    
          <comments>http://blog.guillaumebizet.fr/post/2006/09/26/221-rediriger-son-blog#comment-form</comments>
      <wfw:comment>http://blog.guillaumebizet.fr/post/2006/09/26/221-rediriger-son-blog#comment-form</wfw:comment>
      <wfw:commentRss>http://feeds2.feedburner.com/BizetsFamilyBlog/comments/203</wfw:commentRss>
      </item>
    
  <item>
    <title>Eviter le spam : encoder son adresse mail</title>
    <link>http://blog.guillaumebizet.fr/post/2006/06/13/144-eviter-le-spam-encoder-son-adresse-mail</link>
    <guid isPermaLink="false">urn:md5:a58ab55b9c58aee30b80492c280d9048</guid>
    <pubDate>Tue, 13 Jun 2006 10:47:00 +0000</pubDate>
    <dc:creator>Guillaume BIZET</dc:creator>
        <category>Dotclear et astuces</category>
        <category>Internet</category><category>Spam</category><category>Sécurité</category>    
    <description>&lt;p&gt;Le SPAM est devenu un sport internationnal sur internet alors pour éviter que votre adresse ne soit récupérée par les robots et utilisés à des fin &quot;spammiques&quot; une seule solution encoder votre adresse mail dans le code de vos pages&lt;/p&gt;    &lt;p&gt;Voici un lien qui va vous permettre d'encoder votre mail&amp;nbsp;: &lt;a href=&quot;http://www.myphphost.net/index-tools-securite-encoder_email.php&quot; hreflang=&quot;fr&quot;&gt;Encodeur mails&lt;/a&gt;&lt;/p&gt;


&lt;p&gt;Prenons un exemple :&lt;br /&gt;
L'adresse de contact de ce blog est bizetsblog_@_gmail.com (il faut bien sur enlever le _ devant et après le @.&lt;/p&gt;


&lt;p&gt;L'encoder grâce au lien que je vous ai donné précédement donnera donc ceci&amp;nbsp;:&lt;/p&gt;

&lt;pre&gt;&amp;lt;a href=&quot;mailto:%62%69%7a%65%74%73%62%6c%6f%67%40%67%6d%61%69%6c%2e%63%6f%6d&quot;&amp;gt;Contacter l'administrateur du blog&amp;lt;/a&amp;gt;&lt;/pre&gt;


&lt;p&gt;Ce qui donne à l'affichage de la page ceci&amp;nbsp;:&lt;/p&gt;
&lt;a href=&quot;mailto:%62%69%7a%65%74%73%62%6c%6f%67%40%67%6d%61%69%6c%2e%63%6f%6d&quot;&gt;Contacter l'administrateur du blog&lt;/a&gt;


&lt;p&gt;Vous remarquerez qu'en survolant le lien vous avez bien l'adresse de contact du blog&amp;nbsp;: bizetsblog_@_gmail.com ( le _ devant et après le @ ne sont bien sûr pas présents)&lt;/p&gt;


&lt;p&gt;Autre solution :&lt;br /&gt;
Coller le code ci-dessous dans le prepend.php&lt;/p&gt;

&lt;pre&gt;[php]
&amp;lt;?
function email_encode($string)
     {
     // CETTE FONCTION VA ENCODER L ADRESSE EMAIL
     $ret_string=&amp;quot;&amp;quot;;
     $len=strlen($string);
     for($x=0;$x&amp;lt;$len;$x++)
          {
          $ord=ord(substr($string,$x,1));
          $ret_string.=&amp;quot;&amp;amp;#$ord;&amp;quot;;
          }
     return $ret_string;
     }
?&amp;gt;
&lt;/pre&gt;


&lt;p&gt;Et pour la fonction&lt;/p&gt;

&lt;pre&gt;[php]
&amp;lt;? echo email_encode(&amp;quot;bizetsblog@gmail.com&amp;quot;); ?&amp;gt;
&lt;/pre&gt;


&lt;p&gt;Avec ce codage de l'adresse mails les robots n'ont plus rien à se mettre sous la dent quand ils scannent votre page où est présente l'adresse mail concernée&amp;nbsp;: adieu une partie du spam !!!&lt;/p&gt;</description>
    
    
    
          <comments>http://blog.guillaumebizet.fr/post/2006/06/13/144-eviter-le-spam-encoder-son-adresse-mail#comment-form</comments>
      <wfw:comment>http://blog.guillaumebizet.fr/post/2006/06/13/144-eviter-le-spam-encoder-son-adresse-mail#comment-form</wfw:comment>
      <wfw:commentRss>http://feeds2.feedburner.com/BizetsFamilyBlog/comments/133</wfw:commentRss>
      </item>
    
  <item>
    <title>Afficher les commentaires dans list.php</title>
    <link>http://blog.guillaumebizet.fr/post/2006/05/26/125-afficher-les-commentaires-dans-listphp</link>
    <guid isPermaLink="false">urn:md5:60e54763aef80acfec1943a51f039fe0</guid>
    <pubDate>Fri, 26 May 2006 10:15:39 +0000</pubDate>
    <dc:creator>Guillaume BIZET</dc:creator>
        <category>Dotclear et astuces</category>
        <category>Dotclear</category><category>PHP</category>    
    <description>&lt;p&gt;Pour que cela soit plus sympa j'ai voulu afficher les commentaires à la suite des billets dans la page d'accueil.&lt;/p&gt;


&lt;p&gt;Je me suis dit que cela ne devait pas être très compliqué vu que le module des commentaires était déjà codé dans le fichier post.php du thème.&lt;br /&gt;
Erreur. Enfin cela reste assez simple quand même.&lt;/p&gt;


&lt;p&gt;Démonstration ...&lt;/p&gt;    &lt;p&gt;Dotclear affiche la liste des billets grâce à une boucle qui va chercher dans la base SQL les n derniers billets&lt;sup&gt;[&lt;a href=&quot;http://blog.guillaumebizet.fr/post/2006/05/26/125-afficher-les-commentaires-dans-listphp#pnote-125-1&quot; id=&quot;rev-pnote-125-1&quot;&gt;1&lt;/a&gt;]&lt;/sup&gt; pour les afficher&lt;/p&gt;


&lt;p&gt;La boucle du fichier list.php de base (thème par défaut) est le suivant&amp;nbsp;:&lt;/p&gt;

&lt;pre&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;?php&lt;/span&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;while&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$news&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;fetch&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; : &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&amp;gt;&lt;/span&gt;
 	&amp;lt;div &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;post&quot;&lt;/span&gt;&amp;gt;
 			&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;?php&lt;/span&gt; dcDayDate&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'&amp;lt;p class=&amp;quot;day-date&amp;quot;&amp;gt;%s&amp;lt;/p&amp;gt;'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&amp;gt;&lt;/span&gt;
 		&amp;lt;h2 id=&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;p&amp;lt;?php dcPostID(); ?&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;post-title&quot;&lt;/span&gt;&amp;gt;&amp;lt;a href=&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;&amp;lt;?php dcPostURL(); ?&amp;gt;&quot;&lt;/span&gt;&amp;gt;&amp;lt;?php dcPostTitle&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;; ?&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/h2&amp;gt;
 		&amp;lt;p &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;post-info&quot;&lt;/span&gt;&amp;gt;Par &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;?php&lt;/span&gt; dcPostAuthor&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&amp;gt;&lt;/span&gt;,
 			&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;?php&lt;/span&gt; dcPostDate&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&amp;gt;&lt;/span&gt; &amp;amp;agrave; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;?php&lt;/span&gt; dcPostTime&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&amp;gt;&lt;/span&gt;
 				&amp;lt;span&amp;gt;::&amp;lt;/span&amp;gt; &amp;lt;a href=&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;&amp;lt;?php dcPostCatURL(); ?&amp;gt;&quot;&lt;/span&gt;&amp;gt;&amp;lt;?php dcPostCatTitle&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;; ?&amp;gt;&amp;lt;/a&amp;gt;
 		&amp;lt;/p&amp;gt;
 		&amp;lt;div &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;post-content&quot;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;?php&lt;/span&gt; dcPostLang&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;; ?&amp;gt;&amp;gt;
 			&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;?php&lt;/span&gt; dcPostAbstract&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'%s'&lt;/span&gt;,&lt;span style=&quot;color: #ff0000;&quot;&gt;'&amp;lt;p&amp;gt;&amp;lt;a href=&amp;quot;%s&amp;quot; title=&amp;quot;Lire %s&amp;quot;&amp;gt;Lire la suite&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&amp;gt;&lt;/span&gt;
 		&amp;lt;/div&amp;gt;
 		&amp;lt;p &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;post-info-co&quot;&lt;/span&gt;&amp;gt;&amp;lt;a href=&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;&amp;lt;?php dcPostURL(); ?&amp;gt;#co&quot;&lt;/span&gt;title=&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;commentaires pour : &amp;lt;?php dcPostTitle(); ?&amp;gt;&quot;&lt;/span&gt;&amp;gt;&amp;lt;?php dcPostNbComments&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'aucun commentaire'&lt;/span&gt;,&lt;span style=&quot;color: #ff0000;&quot;&gt;'un commentaire'&lt;/span&gt;,&lt;span style=&quot;color: #ff0000;&quot;&gt;'%s commentaires'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;;?&amp;gt;&amp;lt;/a&amp;gt;
 			&amp;lt;span&amp;gt;::&amp;lt;/span&amp;gt; &amp;lt;a href=&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;&amp;lt;?php dcPostURL(); ?&amp;gt;#tb&quot;&lt;/span&gt;title=&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;trackbacks pour : &amp;lt;?php dcPostTitle(); ?&amp;gt;&quot;&lt;/span&gt;&amp;gt;&amp;lt;?php dcPostNbTrackbacks&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'aucun trackback'&lt;/span&gt;,&lt;span style=&quot;color: #ff0000;&quot;&gt;'un trackback'&lt;/span&gt;,&lt;span style=&quot;color: #ff0000;&quot;&gt;'%s trackbacks'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;;?&amp;gt;&amp;lt;/a&amp;gt;
 		&amp;lt;/p&amp;gt;
 	&amp;lt;/div&amp;gt;
&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;?php&lt;/span&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;endwhile&lt;/span&gt;; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/pre&gt;


&lt;p&gt;Donc au début je me suis dit&amp;nbsp;:&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;Je vais coller à la suite le module de commentaires de post.php en enlevant la partie pour poster un commentaire&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;ce qui donnait&amp;nbsp;:&lt;/p&gt;

&lt;pre&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;?php&lt;/span&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;while&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$news&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;fetch&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; : &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&amp;gt;&lt;/span&gt;
 	&amp;lt;div &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;post&quot;&lt;/span&gt;&amp;gt;
 			&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;?php&lt;/span&gt; dcDayDate&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'&amp;lt;p class=&amp;quot;day-date&amp;quot;&amp;gt;%s&amp;lt;/p&amp;gt;'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&amp;gt;&lt;/span&gt;
 		&amp;lt;h2 id=&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;p&amp;lt;?php dcPostID(); ?&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;post-title&quot;&lt;/span&gt;&amp;gt;&amp;lt;a href=&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;&amp;lt;?php dcPostURL(); ?&amp;gt;&quot;&lt;/span&gt;&amp;gt;&amp;lt;?php dcPostTitle&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;; ?&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/h2&amp;gt;
 		&amp;lt;p &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;post-info&quot;&lt;/span&gt;&amp;gt;Par &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;?php&lt;/span&gt; dcPostAuthor&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&amp;gt;&lt;/span&gt;,
 			&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;?php&lt;/span&gt; dcPostDate&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&amp;gt;&lt;/span&gt; &amp;amp;agrave; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;?php&lt;/span&gt; dcPostTime&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&amp;gt;&lt;/span&gt;
 				&amp;lt;span&amp;gt;::&amp;lt;/span&amp;gt; &amp;lt;a href=&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;&amp;lt;?php dcPostCatURL(); ?&amp;gt;&quot;&lt;/span&gt;&amp;gt;&amp;lt;?php dcPostCatTitle&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;; ?&amp;gt;&amp;lt;/a&amp;gt;
 		&amp;lt;/p&amp;gt;
 		&amp;lt;div &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;post-content&quot;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;?php&lt;/span&gt; dcPostLang&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;; ?&amp;gt;&amp;gt;
 			&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;?php&lt;/span&gt; dcPostAbstract&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'%s'&lt;/span&gt;,&lt;span style=&quot;color: #ff0000;&quot;&gt;'&amp;lt;p&amp;gt;&amp;lt;a href=&amp;quot;%s&amp;quot; title=&amp;quot;Lire %s&amp;quot;&amp;gt;Lire la suite&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&amp;gt;&lt;/span&gt;
 		&amp;lt;/div&amp;gt;
 		&amp;lt;p &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;post-info-co&quot;&lt;/span&gt;&amp;gt;&amp;lt;a href=&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;&amp;lt;?php dcPostURL(); ?&amp;gt;#co&quot;&lt;/span&gt;title=&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;commentaires pour : &amp;lt;?php dcPostTitle(); ?&amp;gt;&quot;&lt;/span&gt;&amp;gt;&amp;lt;?php dcPostNbComments&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'aucun commentaire'&lt;/span&gt;,&lt;span style=&quot;color: #ff0000;&quot;&gt;'un commentaire'&lt;/span&gt;,&lt;span style=&quot;color: #ff0000;&quot;&gt;'%s commentaires'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;;?&amp;gt;&amp;lt;/a&amp;gt;
 			&amp;lt;span&amp;gt;::&amp;lt;/span&amp;gt; &amp;lt;a href=&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;&amp;lt;?php dcPostURL(); ?&amp;gt;#tb&quot;&lt;/span&gt;title=&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;trackbacks pour : &amp;lt;?php dcPostTitle(); ?&amp;gt;&quot;&lt;/span&gt;&amp;gt;&amp;lt;?php dcPostNbTrackbacks&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'aucun trackback'&lt;/span&gt;,&lt;span style=&quot;color: #ff0000;&quot;&gt;'un trackback'&lt;/span&gt;,&lt;span style=&quot;color: #ff0000;&quot;&gt;'%s trackbacks'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;;?&amp;gt;&amp;lt;/a&amp;gt;
 		&amp;lt;/p&amp;gt;
 	&amp;lt;/div&amp;gt;
 	&amp;lt;div id=&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;comments&quot;&lt;/span&gt;&amp;gt;
 		&amp;lt;h3 id=&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;co&quot;&lt;/span&gt;&amp;gt;Commentaires&amp;lt;/h3&amp;gt;
 			&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;?php&lt;/span&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$comments&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;isEmpty&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; : &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;/* Message si aucune commentaire */&lt;/span&gt;	&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&amp;gt;&lt;/span&gt;
 				&amp;lt;p&amp;gt;Aucun commentaire pour le moment.&amp;lt;/p&amp;gt;
 			&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;?php&lt;/span&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;endif&lt;/span&gt;; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&amp;gt;&lt;/span&gt;
 			&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;?php&lt;/span&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;while&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$comments&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;fetch&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; : &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;/* Boucle de commentaires */&lt;/span&gt;
 			&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;// On met le num&amp;Atilde;&amp;copy;ro du commentaire dans une variable&lt;/span&gt;
 			&lt;span style=&quot;color: #0000ff;&quot;&gt;$co_num&lt;/span&gt; = &lt;span style=&quot;color: #0000ff;&quot;&gt;$comments&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;int_index&lt;/span&gt;+&lt;span style=&quot;color: #cc66cc;&quot;&gt;1&lt;/span&gt;;?&amp;gt;
 			&amp;lt;p id=&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;c&amp;lt;?php dcCommentID(); ?&amp;gt;&quot;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;comment-info&quot;&lt;/span&gt;&amp;gt;
 				&amp;lt;span &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;comment-number&quot;&lt;/span&gt;&amp;gt;&amp;lt;a href=&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;#c&amp;lt;?php dcCommentID(); ?&amp;gt;&quot;&lt;/span&gt;&amp;gt;&amp;lt;?php &lt;a href=&quot;http://www.php.net/echo&quot;&gt;&lt;span style=&quot;color: #000066;&quot;&gt;echo&lt;/span&gt;&lt;/a&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$co_num&lt;/span&gt;; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&amp;gt;&lt;/span&gt;.&amp;lt;/a&amp;gt;&amp;lt;/span&amp;gt;
 				Le &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;?php&lt;/span&gt; dcCommentDate&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&amp;gt;&lt;/span&gt; &amp;amp;agrave;
 				&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;?php&lt;/span&gt; dcCommentTime&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&amp;gt;&lt;/span&gt;, par	&amp;lt;strong&amp;gt;&amp;lt;?php dcCommentAuthor&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;; ?&amp;gt;&amp;lt;/strong&amp;gt;
 			&amp;lt;/p&amp;gt;
 			&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;?php&lt;/span&gt; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;/* on affiche le commentaire */&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&amp;gt;&lt;/span&gt;
 				&amp;lt;blockquote&amp;gt;
 					&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;?php&lt;/span&gt; dcCommentContent&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&amp;gt;&lt;/span&gt;
 				&amp;lt;/blockquote&amp;gt;
 		&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;?php&lt;/span&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;endwhile&lt;/span&gt;; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&amp;gt;&lt;/span&gt;
 	&amp;lt;/div&amp;gt;
&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;?php&lt;/span&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;endwhile&lt;/span&gt;; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/pre&gt;


&lt;p&gt;Mais après un test aucun commentaire n'apparaissait à la suite des billets concernés.&lt;br /&gt;
En fait c'est tout a fait normal puisque la variable globale $comments n'est pas initialisée en dehors du mode 'post'&amp;nbsp;: merci &lt;a href=&quot;http://www.dotclear.net/forum/viewtopic.php?pid=33734#p33734&quot; hreflang=&quot;fr&quot;&gt;Pep&lt;/a&gt;&lt;/p&gt;


&lt;p&gt;La solution est d'ailleurs assez simple, il faut initialiser la variable $comments par ce code&amp;nbsp;:&lt;/p&gt;

&lt;pre&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;?php&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$comments&lt;/span&gt; = &lt;span style=&quot;color: #0000ff;&quot;&gt;$blog&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;getComments&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$news&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;f&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'post_id'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/pre&gt;


&lt;p&gt;Que l'on place juste avant la boucle des commentaires.&lt;br /&gt;
Donc le fichier list.php final est donc le suivant&amp;nbsp;:&lt;/p&gt;

&lt;pre&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;?php&lt;/span&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;while&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$news&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;fetch&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; : &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&amp;gt;&lt;/span&gt;
 	&amp;lt;div &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;post&quot;&lt;/span&gt;&amp;gt;
 			&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;?php&lt;/span&gt; dcDayDate&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'&amp;lt;p class=&amp;quot;day-date&amp;quot;&amp;gt;%s&amp;lt;/p&amp;gt;'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&amp;gt;&lt;/span&gt;
 		&amp;lt;h2 id=&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;p&amp;lt;?php dcPostID(); ?&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;post-title&quot;&lt;/span&gt;&amp;gt;&amp;lt;a href=&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;&amp;lt;?php dcPostURL(); ?&amp;gt;&quot;&lt;/span&gt;&amp;gt;&amp;lt;?php dcPostTitle&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;; ?&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/h2&amp;gt;
 		&amp;lt;p &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;post-info&quot;&lt;/span&gt;&amp;gt;Par &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;?php&lt;/span&gt; dcPostAuthor&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&amp;gt;&lt;/span&gt;,
 			&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;?php&lt;/span&gt; dcPostDate&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&amp;gt;&lt;/span&gt; &amp;amp;agrave; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;?php&lt;/span&gt; dcPostTime&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&amp;gt;&lt;/span&gt;
 				&amp;lt;span&amp;gt;::&amp;lt;/span&amp;gt; &amp;lt;a href=&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;&amp;lt;?php dcPostCatURL(); ?&amp;gt;&quot;&lt;/span&gt;&amp;gt;&amp;lt;?php dcPostCatTitle&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;; ?&amp;gt;&amp;lt;/a&amp;gt;
 		&amp;lt;/p&amp;gt;
 		&amp;lt;div &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;post-content&quot;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;?php&lt;/span&gt; dcPostLang&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;; ?&amp;gt;&amp;gt;
 			&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;?php&lt;/span&gt; dcPostAbstract&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'%s'&lt;/span&gt;,&lt;span style=&quot;color: #ff0000;&quot;&gt;'&amp;lt;p&amp;gt;&amp;lt;a href=&amp;quot;%s&amp;quot; title=&amp;quot;Lire %s&amp;quot;&amp;gt;Lire la suite&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&amp;gt;&lt;/span&gt;
 		&amp;lt;/div&amp;gt;
 		&amp;lt;p &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;post-info-co&quot;&lt;/span&gt;&amp;gt;&amp;lt;a href=&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;&amp;lt;?php dcPostURL(); ?&amp;gt;#co&quot;&lt;/span&gt;title=&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;commentaires pour : &amp;lt;?php dcPostTitle(); ?&amp;gt;&quot;&lt;/span&gt;&amp;gt;&amp;lt;?php dcPostNbComments&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'aucun commentaire'&lt;/span&gt;,&lt;span style=&quot;color: #ff0000;&quot;&gt;'un commentaire'&lt;/span&gt;,&lt;span style=&quot;color: #ff0000;&quot;&gt;'%s commentaires'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;;?&amp;gt;&amp;lt;/a&amp;gt;
 			&amp;lt;span&amp;gt;::&amp;lt;/span&amp;gt; &amp;lt;a href=&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;&amp;lt;?php dcPostURL(); ?&amp;gt;#tb&quot;&lt;/span&gt;title=&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;trackbacks pour : &amp;lt;?php dcPostTitle(); ?&amp;gt;&quot;&lt;/span&gt;&amp;gt;&amp;lt;?php dcPostNbTrackbacks&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'aucun trackback'&lt;/span&gt;,&lt;span style=&quot;color: #ff0000;&quot;&gt;'un trackback'&lt;/span&gt;,&lt;span style=&quot;color: #ff0000;&quot;&gt;'%s trackbacks'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;;?&amp;gt;&amp;lt;/a&amp;gt;
 		&amp;lt;/p&amp;gt;
 	&amp;lt;/div&amp;gt;
 	&amp;lt;div id=&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;comments&quot;&lt;/span&gt;&amp;gt;
 		&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;?php&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$comments&lt;/span&gt; = &lt;span style=&quot;color: #0000ff;&quot;&gt;$blog&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;getComments&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$news&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;f&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'post_id'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&amp;gt;&lt;/span&gt;
 		&amp;lt;h3 id=&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;co&quot;&lt;/span&gt;&amp;gt;Commentaires&amp;lt;/h3&amp;gt;
 			&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;?php&lt;/span&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$comments&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;isEmpty&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; : &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;/* Message si aucune commentaire */&lt;/span&gt;	&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&amp;gt;&lt;/span&gt;
 				&amp;lt;p&amp;gt;Aucun commentaire pour le moment.&amp;lt;/p&amp;gt;
 			&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;?php&lt;/span&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;endif&lt;/span&gt;; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&amp;gt;&lt;/span&gt;
 			&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;?php&lt;/span&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;while&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$comments&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;fetch&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; : &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;/* Boucle de commentaires */&lt;/span&gt;
 			&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;// On met le num&amp;Atilde;&amp;copy;ro du commentaire dans une variable&lt;/span&gt;
 			&lt;span style=&quot;color: #0000ff;&quot;&gt;$co_num&lt;/span&gt; = &lt;span style=&quot;color: #0000ff;&quot;&gt;$comments&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;int_index&lt;/span&gt;+&lt;span style=&quot;color: #cc66cc;&quot;&gt;1&lt;/span&gt;;?&amp;gt;
 			&amp;lt;p id=&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;c&amp;lt;?php dcCommentID(); ?&amp;gt;&quot;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;comment-info&quot;&lt;/span&gt;&amp;gt;
 				&amp;lt;span &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;comment-number&quot;&lt;/span&gt;&amp;gt;&amp;lt;a href=&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;#c&amp;lt;?php dcCommentID(); ?&amp;gt;&quot;&lt;/span&gt;&amp;gt;&amp;lt;?php &lt;a href=&quot;http://www.php.net/echo&quot;&gt;&lt;span style=&quot;color: #000066;&quot;&gt;echo&lt;/span&gt;&lt;/a&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$co_num&lt;/span&gt;; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&amp;gt;&lt;/span&gt;.&amp;lt;/a&amp;gt;&amp;lt;/span&amp;gt;
 				Le &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;?php&lt;/span&gt; dcCommentDate&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&amp;gt;&lt;/span&gt; &amp;amp;agrave;
 				&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;?php&lt;/span&gt; dcCommentTime&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&amp;gt;&lt;/span&gt;, par	&amp;lt;strong&amp;gt;&amp;lt;?php dcCommentAuthor&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;; ?&amp;gt;&amp;lt;/strong&amp;gt;
 			&amp;lt;/p&amp;gt;
 			&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;?php&lt;/span&gt; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;/* on affiche le commentaire */&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&amp;gt;&lt;/span&gt;
 				&amp;lt;blockquote&amp;gt;
 					&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;?php&lt;/span&gt; dcCommentContent&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&amp;gt;&lt;/span&gt;
 				&amp;lt;/blockquote&amp;gt;
 		&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;?php&lt;/span&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;endwhile&lt;/span&gt;; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&amp;gt;&lt;/span&gt;
 	&amp;lt;/div&amp;gt;
&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;?php&lt;/span&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;endwhile&lt;/span&gt;; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/pre&gt;


&lt;p&gt;Et voilà tout fonctionne.&lt;/p&gt;


&lt;p&gt;Ensuite à vous de modifier ou non les informations (dans la partie commentaires) que vous souhaitez afficher ou non à la suite des billets concernés.&lt;br /&gt;
Par exemple moi je n'ai pas voulu afficher de message si aucun commentaire n'était posté sur le billet donc j'ai enlevé cette portion de code&amp;nbsp;:&lt;/p&gt;

&lt;pre&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;?php&lt;/span&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$comments&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;isEmpty&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; : &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;/* Message si aucune commentaire */&lt;/span&gt;	&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&amp;gt;&lt;/span&gt;
 	&amp;lt;p&amp;gt;Aucun commentaire pour le moment.&amp;lt;/p&amp;gt;
&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;?php&lt;/span&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;endif&lt;/span&gt;; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/pre&gt;


&lt;p&gt;Et j'ai rajouté un encart pour qu'en cliquant on passe en mode post et que l'on arrive directement sur le formulaire de post des commentaires grâce à ce code&amp;nbsp;:&lt;/p&gt;

&lt;pre&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&lt;a href=&quot;http://december.com/html/4/element/p.html&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;p&amp;gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&lt;a href=&quot;http://december.com/html/4/element/strong.html&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;strong&amp;gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;Ecrire un commentaire pour le billet :&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;/strong&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&lt;a href=&quot;http://december.com/html/4/element/br.html&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;br&lt;/span&gt;&lt;/a&gt; /&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;
&lt;span style=&quot;color: #009900;&quot;&gt;&lt;a href=&quot;http://december.com/html/4/element/a.html&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;a&lt;/span&gt;&lt;/a&gt; &lt;span style=&quot;color: #000066;&quot;&gt;href&lt;/span&gt;=&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;&amp;lt;?php dcPostURL(); ?&amp;gt;&lt;/span&gt;#ajcomment&amp;quot; &amp;gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;lt;?php dcPostTitle(); ?&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;lt;/a&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
 &lt;/span&gt;&lt;/pre&gt;


&lt;p&gt;A vous d'adapter le code selon vos besoins.&lt;/p&gt;
&lt;div class=&quot;footnotes&quot;&gt;&lt;h4&gt;Notes&lt;/h4&gt;
&lt;p&gt;[&lt;a href=&quot;http://blog.guillaumebizet.fr/post/2006/05/26/125-afficher-les-commentaires-dans-listphp#rev-pnote-125-1&quot; id=&quot;pnote-125-1&quot;&gt;1&lt;/a&gt;] Selon la configuration établie dans outils&amp;gt;Configuration de Dotclear&lt;/p&gt;&lt;/div&gt;</description>
    
    
    
          <comments>http://blog.guillaumebizet.fr/post/2006/05/26/125-afficher-les-commentaires-dans-listphp#comment-form</comments>
      <wfw:comment>http://blog.guillaumebizet.fr/post/2006/05/26/125-afficher-les-commentaires-dans-listphp#comment-form</wfw:comment>
      <wfw:commentRss>http://feeds2.feedburner.com/BizetsFamilyBlog/comments/115</wfw:commentRss>
      </item>
    
  <item>
    <title>Sauvegarde automatique de la base SQL</title>
    <link>http://blog.guillaumebizet.fr/post/2006/05/24/124-sauvegarde-automatique-de-la-base-sql</link>
    <guid isPermaLink="false">urn:md5:ffbcace33796cb0507a46d97e218a6ed</guid>
    <pubDate>Wed, 24 May 2006 21:32:00 +0000</pubDate>
    <dc:creator>Guillaume BIZET</dc:creator>
        <category>Dotclear et astuces</category>
        <category>Blogs</category><category>Dotclear</category><category>PHP</category><category>SQL</category><category>Sécurité</category>    
    <description>&lt;p&gt;On n'y pense pas très souvent mais c'est essentiel&amp;nbsp;: faire des sauvegardes de la base de données SQL.&lt;br /&gt;
Dotclear a un outil intégré merveilleux qui permet de le faire manuellement&amp;nbsp;: le plugin opération MySql dont Kozlika en détaille le fonctionnement sur le &lt;a href=&quot;http://petit.dotclear.net/pages/2005/05/13/86-obligatoire-importante-et-incontournable-la-sauvegarde&quot; hreflang=&quot;fr&quot;&gt;Petit Dotclear&lt;/a&gt;&lt;/p&gt;


&lt;p&gt;Mais le must c'est de pouvoir sauvegarder sa base sans avoir à y penser. Pep avait décrit le fonctionnement d'un script pour faire cette fameuse sauvegarde, et j'avais soigneusement sauvegardé le billet. Heureusement car il avait arrété un moment de bloguer, mais tout est revenu en ordre maintenant
Presque depuis que j'ai installé Dotclear je sauvegarde automatiquement ma base SQL tous les jours et j'avoue que cela m'a sauvé la vie quelque fois suite à de malencontreuses manipulations.&lt;/p&gt;


&lt;p&gt;De plus c'est tout a fait simple avec les outils mis à notre disposition actuellement.&lt;br /&gt;
Explications ...&lt;/p&gt;    &lt;p&gt;Comme je vous le disais, J'avais lu un billet de Pep avant que son blog ne ferme (puis ne rouvre) qui décrivait la manière de mettre en place une telle sauvegarde.&lt;br /&gt;
Vous allez le voir c'est tout à fait simple.&lt;/p&gt;


&lt;p&gt;Première chose pour fonctionner le code php doit être executer grace à un service cron.&lt;br /&gt;
Définition de &lt;a href=&quot;http://fr.wikipedia.org/wiki/Cron&quot; hreflang=&quot;fr&quot;&gt;wikipédia&lt;/a&gt;&lt;/p&gt;


&lt;blockquote&gt;&lt;p&gt;Cron est le nom d'un programme qui permet aux utilisateurs des systèmes Unix d'exécuter automatiquement des commandes ou des scripts à une date et une heure spécifiées à l'avance.&lt;br /&gt;
Il s'agit d'une fonctionnalité très utile pour des tâches routinières d'administration système&lt;/p&gt;&lt;/blockquote&gt;


&lt;p&gt;Il en existe plusieurs sur le web dont des payants et des gratuits. Il est bien évident que les services payants ont beaucoup plus de fonctionnalités que les services gratuits, mais pour ce qui nous intéresse un service gratuit suffit largement.&lt;br /&gt;
En voici quelques uns&amp;nbsp;:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;http://www.webcron.org/&quot; hreflang=&quot;fr&quot;&gt;WebCron&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://crontab.fr/&quot; hreflang=&quot;fr&quot;&gt;Contrab&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://cron.hiwit.org/&quot; hreflang=&quot;fr&quot;&gt;Hiwit&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Donc créez un compte sur l'un de ses sites de services gratuits de crons&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Enregistrez le code du fichier (maildump.txt) attaché ci dessous au billet&lt;/li&gt;
&lt;li&gt;Modifiez l'extension du fichier en php soit&amp;nbsp;: maildump.php.&lt;/li&gt;
&lt;li&gt;Changez les paramètres pour que la sauvegarde de la base SQL arrive sur le mail qu vous avez choisi. Remplacer les variables $mail_to, $mail_from et, éventuellement, $mail_subject, $mail_body.&lt;/li&gt;
&lt;li&gt;Enregistrez les modifications que vous venez de faire.&lt;/li&gt;
&lt;li&gt;Sur votre serveur, il vous faut créer un nouveau dossier dans votre installation DotClear (Pep conseillait&amp;nbsp;: utilitaires). Impératif&amp;nbsp;: Il doit se trouver au même niveau que les dossiers themes, share, etc.&lt;/li&gt;
&lt;li&gt;Transférez votre fichier maildump.php dans le dossier que vous venez de créer.&lt;/li&gt;
&lt;li&gt;Vérifiez que tout marche bien en tapant dans votre navigateur préféré&amp;nbsp;: http://votreblog/dotclear/utilitaires/maildump.php&lt;sup&gt;[&lt;a href=&quot;http://blog.guillaumebizet.fr/post/2006/05/24/124-sauvegarde-automatique-de-la-base-sql#pnote-114-1&quot; id=&quot;rev-pnote-114-1&quot;&gt;1&lt;/a&gt;]&lt;/sup&gt; et si tout marche bien vous devriez voir ceci&amp;nbsp;: &quot;Fichier de dump envoyé&quot;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Il ne vous reste plus que 2 choses à faire&amp;nbsp;:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;vous rendre sur le site que vous avez choisi pour faire office de service de webcron&lt;/li&gt;
&lt;li&gt;créer un nouveau travail (ou tâche ou job, cela dépend des appellation des services) en choisissant la périodicité qui vous arrange et en précisant l'URL que vous venez de tester comme URL du script à appeler&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Voilà, selon ce que vous avez choisi vous recevrez par mail le &quot;dump&quot; de votre base SQL&lt;/p&gt;
&lt;div class=&quot;footnotes&quot;&gt;&lt;h4&gt;Notes&lt;/h4&gt;
&lt;p&gt;[&lt;a href=&quot;http://blog.guillaumebizet.fr/post/2006/05/24/124-sauvegarde-automatique-de-la-base-sql#rev-pnote-114-1&quot; id=&quot;pnote-114-1&quot;&gt;1&lt;/a&gt;] Bien sûr si le répertoire du programme Dotclear que vous utilisez est blog remplacez /dotclear par /blog/&lt;/p&gt;&lt;/div&gt;
</description>
    
    
    
          <comments>http://blog.guillaumebizet.fr/post/2006/05/24/124-sauvegarde-automatique-de-la-base-sql#comment-form</comments>
      <wfw:comment>http://blog.guillaumebizet.fr/post/2006/05/24/124-sauvegarde-automatique-de-la-base-sql#comment-form</wfw:comment>
      <wfw:commentRss>http://feeds2.feedburner.com/BizetsFamilyBlog/comments/114</wfw:commentRss>
      </item>
    
  <item>
    <title>Afficher le nombre de post par catégorie</title>
    <link>http://blog.guillaumebizet.fr/post/2006/05/02/107-afficher-le-nombre-de-post-par-categorie</link>
    <guid isPermaLink="false">urn:md5:e2497a69560e6272aa560eb7dcca76a2</guid>
    <pubDate>Tue, 02 May 2006 14:17:11 +0000</pubDate>
    <dc:creator>Guillaume BIZET</dc:creator>
        <category>Dotclear et astuces</category>
        <category>Blogs</category><category>Dotclear</category><category>PHP</category>    
    <description>&lt;p&gt;Petit code pratique, enfin je trouve qui permet d'afficher dans la sidebar le nombre de post présents et publié dans chaque catégorie pour arriver à&amp;nbsp;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Général (3)&lt;/li&gt;
&lt;li&gt;Dotclear (8)&lt;/li&gt;
&lt;li&gt;Internet (25)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;etc ...&lt;/p&gt;


&lt;p&gt;Regardez dans ma sidebar et dans la partie catégories ...&lt;/p&gt;    &lt;p&gt;Donc voilà le code à copier / coller dans votre prepend.php&lt;/p&gt;

&lt;pre&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;function&lt;/span&gt; dcMyCatList&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$block&lt;/span&gt;=&lt;span style=&quot;color: #ff0000;&quot;&gt;'&amp;lt;ul&amp;gt;%s&amp;lt;/ul&amp;gt;'&lt;/span&gt;,&lt;span style=&quot;color: #0000ff;&quot;&gt;$item&lt;/span&gt;=&lt;span style=&quot;color: #ff0000;&quot;&gt;'&amp;lt;li&amp;gt;%s&amp;lt;/li&amp;gt;'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;
 &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;
 	&lt;a href=&quot;http://www.php.net/global&quot;&gt;&lt;span style=&quot;color: #000066;&quot;&gt;global&lt;/span&gt;&lt;/a&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$rs_cat&lt;/span&gt;, &lt;span style=&quot;color: #0000ff;&quot;&gt;$cat_id&lt;/span&gt;, &lt;span style=&quot;color: #0000ff;&quot;&gt;$lang&lt;/span&gt;, &lt;span style=&quot;color: #0000ff;&quot;&gt;$blog&lt;/span&gt;;
 	
 	&lt;span style=&quot;color: #0000ff;&quot;&gt;$comp_url&lt;/span&gt; = &lt;span style=&quot;color: #ff0000;&quot;&gt;''&lt;/span&gt;;
 	
 	&lt;span style=&quot;color: #b1b100;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$lang&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;
 		&lt;span style=&quot;color: #0000ff;&quot;&gt;$comp_url&lt;/span&gt; = &lt;span style=&quot;color: #0000ff;&quot;&gt;$lang&lt;/span&gt;.&lt;span style=&quot;color: #ff0000;&quot;&gt;'/'&lt;/span&gt;;
 	&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt;
 	
 	&lt;span style=&quot;color: #b1b100;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;!&lt;span style=&quot;color: #0000ff;&quot;&gt;$rs_cat&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;isEmpty&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;
 	&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;
 		&lt;span style=&quot;color: #0000ff;&quot;&gt;$res&lt;/span&gt; = &lt;span style=&quot;color: #ff0000;&quot;&gt;''&lt;/span&gt;;
 		
 		&lt;span style=&quot;color: #b1b100;&quot;&gt;while&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;!&lt;span style=&quot;color: #0000ff;&quot;&gt;$rs_cat&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;EOF&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;
 		&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;
 			&lt;span style=&quot;color: #b1b100;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$rs_cat&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;f&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'nb_post'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; &amp;gt; &lt;span style=&quot;color: #cc66cc;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;
 			&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;
 				&lt;span style=&quot;color: #0000ff;&quot;&gt;$id&lt;/span&gt; = &lt;span style=&quot;color: #0000ff;&quot;&gt;$rs_cat&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;f&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'cat_libelle_url'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;;
 				&lt;span style=&quot;color: #0000ff;&quot;&gt;$libelle&lt;/span&gt; = &lt;span style=&quot;color: #0000ff;&quot;&gt;$rs_cat&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;f&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'cat_libelle'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;;
 				
 				&lt;span style=&quot;color: #0000ff;&quot;&gt;$lien&lt;/span&gt; = &lt;span style=&quot;color: #ff0000;&quot;&gt;'&amp;lt;a href=&amp;quot;'&lt;/span&gt;.
 				&lt;a href=&quot;http://www.php.net/sprintf&quot;&gt;&lt;span style=&quot;color: #000066;&quot;&gt;sprintf&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$blog&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;front_url&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'cat'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt;,&lt;span style=&quot;color: #0000ff;&quot;&gt;$comp_url&lt;/span&gt;.&lt;span style=&quot;color: #0000ff;&quot;&gt;$id&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;.
 				&lt;span style=&quot;color: #ff0000;&quot;&gt;'&amp;quot;&amp;gt;'&lt;/span&gt;.&lt;span style=&quot;color: #0000ff;&quot;&gt;$libelle&lt;/span&gt;.&lt;span style=&quot;color: #ff0000;&quot;&gt;' ('&lt;/span&gt;.&lt;span style=&quot;color: #0000ff;&quot;&gt;$rs_cat&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;f&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'nb_post'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #ff0000;&quot;&gt;')&amp;lt;/a&amp;gt;'&lt;/span&gt;;
 				
 				&lt;span style=&quot;color: #b1b100;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$cat_id&lt;/span&gt; == &lt;span style=&quot;color: #0000ff;&quot;&gt;$id&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;
 					&lt;span style=&quot;color: #0000ff;&quot;&gt;$lien&lt;/span&gt; = &lt;span style=&quot;color: #ff0000;&quot;&gt;'&amp;lt;strong&amp;gt;'&lt;/span&gt;.&lt;span style=&quot;color: #0000ff;&quot;&gt;$lien&lt;/span&gt;.&lt;span style=&quot;color: #ff0000;&quot;&gt;'&amp;lt;/strong&amp;gt;'&lt;/span&gt;;
 				&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt;
 				
 				&lt;span style=&quot;color: #0000ff;&quot;&gt;$res&lt;/span&gt; .= &lt;a href=&quot;http://www.php.net/sprintf&quot;&gt;&lt;span style=&quot;color: #000066;&quot;&gt;sprintf&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$item&lt;/span&gt;,&lt;span style=&quot;color: #0000ff;&quot;&gt;$lien&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;;
 			&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt;
 			&lt;span style=&quot;color: #0000ff;&quot;&gt;$rs_cat&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;moveNext&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;;
 		&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt;
 		&lt;span style=&quot;color: #0000ff;&quot;&gt;$rs_cat&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;moveStart&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;;
 		
 		&lt;a href=&quot;http://www.php.net/printf&quot;&gt;&lt;span style=&quot;color: #000066;&quot;&gt;printf&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$block&lt;/span&gt;,&lt;span style=&quot;color: #0000ff;&quot;&gt;$res&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;;
 	&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt;
&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;


&lt;p&gt;Et dans le template.php de votre thème, ou du thème par défaut il faut remplacer l'appel de la fonction comme ceci&amp;nbsp;:&lt;/p&gt;

&lt;pre&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&lt;a href=&quot;http://december.com/html/4/element/div.html&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;div&lt;/span&gt;&lt;/a&gt; &lt;span style=&quot;color: #000066;&quot;&gt;id&lt;/span&gt;=&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;categories&quot;&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;
 	&lt;span style=&quot;color: #009900;&quot;&gt;&lt;a href=&quot;http://december.com/html/4/element/h2.html&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;h2&amp;gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;Cat&lt;span style=&quot;color: #ddbb00;&quot;&gt;&amp;amp;eacute;&lt;/span&gt;gories&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;/h2&amp;gt;&lt;/span&gt;&lt;/span&gt;
 	&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;/a&gt;?php dcCatList&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;; ?&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;
&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;

&lt;pre&gt;&lt;/pre&gt;

&lt;p&gt;par&lt;/p&gt;


&lt;pre&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&lt;a href=&quot;http://december.com/html/4/element/div.html&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;div&lt;/span&gt;&lt;/a&gt; &lt;span style=&quot;color: #000066;&quot;&gt;id&lt;/span&gt;=&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;categories&quot;&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;
 	&lt;span style=&quot;color: #009900;&quot;&gt;&lt;a href=&quot;http://december.com/html/4/element/h2.html&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;h2&amp;gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;Cat&lt;span style=&quot;color: #ddbb00;&quot;&gt;&amp;amp;eacute;&lt;/span&gt;gories&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;/h2&amp;gt;&lt;/span&gt;&lt;/span&gt;
 	&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;/a&gt;?php dcMyCatList&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;; ?&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;
&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;


&lt;p&gt;C'était tout simple mais efficace.&lt;br /&gt;
Merci à &lt;a href=&quot;http://ber.free.fr&quot; hreflang=&quot;fr&quot;&gt;teddyber&lt;/a&gt; pour l'astuce&lt;/p&gt;</description>
    
    
    
          <comments>http://blog.guillaumebizet.fr/post/2006/05/02/107-afficher-le-nombre-de-post-par-categorie#comment-form</comments>
      <wfw:comment>http://blog.guillaumebizet.fr/post/2006/05/02/107-afficher-le-nombre-de-post-par-categorie#comment-form</wfw:comment>
      <wfw:commentRss>http://feeds2.feedburner.com/BizetsFamilyBlog/comments/99</wfw:commentRss>
      </item>
    
  <item>
    <title>Message : billet modifié</title>
    <link>http://blog.guillaumebizet.fr/post/2006/04/26/105-message-billet-modifie</link>
    <guid isPermaLink="false">urn:md5:69a278974e85f1165223ceffdb1ebbdb</guid>
    <pubDate>Wed, 26 Apr 2006 09:46:22 +0000</pubDate>
    <dc:creator>Guillaume BIZET</dc:creator>
        <category>Dotclear et astuces</category>
        <category>Dotclear</category><category>PHP</category>    
    <description>&lt;p&gt;Petite astuce que je trouve géniale et que j'ai découvert tout récemment sur le blog d'&lt;a href=&quot;http://www.aen0.net/blog/&quot; hreflang=&quot;fr&quot;&gt;Aeno&lt;/a&gt;.&lt;/p&gt;


&lt;p&gt;Elle permet d'afficher automatiquement si un billet a été modifié sous la forme suivante&amp;nbsp;:
&lt;img src=&quot;http://www.guillaumebizet.fr/fichiers_blog/public/images/billets/2006/04_avril/modifbillet.jpg&quot; alt=&quot;Affichage modification du billet&quot; style=&quot;display:block; margin:0 auto;&quot; /&gt;&lt;/p&gt;


&lt;p&gt;Le code à ajouter est tout simple&amp;nbsp;!&lt;/p&gt;    &lt;p&gt;Le voici, à coller dans post.php de votre thème à l'endroit où vous souhaitez voir afficher la modification&lt;/p&gt;

&lt;pre&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;?php&lt;/span&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$GLOBALS&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'news'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;f&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'post_upddt'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; != &lt;span style=&quot;color: #0000ff;&quot;&gt;$GLOBALS&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'news'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;f&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'post_creadt'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&amp;gt;&lt;/span&gt;
&amp;lt;div id=&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;post-maj&quot;&lt;/span&gt;&amp;gt;
&amp;lt;fieldset&amp;gt;&amp;lt;legend&amp;gt;Modifications&amp;lt;/legend&amp;gt;
&amp;lt;p&amp;gt;Ce billet a &amp;amp;eacute;t&amp;amp;eacute; modifi&amp;amp;eacute; le 
&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;?php&lt;/span&gt; &lt;a href=&quot;http://www.php.net/echo&quot;&gt;&lt;span style=&quot;color: #000066;&quot;&gt;echo&lt;/span&gt;&lt;/a&gt; &lt;a href=&quot;http://www.php.net/strftime&quot;&gt;&lt;span style=&quot;color: #000066;&quot;&gt;strftime&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;%d %B %Y &amp;amp;agrave; %H:%M:%S&quot;&lt;/span&gt;,
&lt;a href=&quot;http://www.php.net/strtotime&quot;&gt;&lt;span style=&quot;color: #000066;&quot;&gt;strtotime&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$GLOBALS&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'news'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;f&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'post_upddt'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&amp;gt;&lt;/span&gt;.
&amp;lt;/p&amp;gt;
&amp;lt;/fieldset&amp;gt;
&amp;lt;/div&amp;gt;
&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;?php&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/pre&gt;


&lt;p&gt;Même chose mais pour les commentaires (à coller dans la boucle des commentaires toujours dans post.php).&lt;/p&gt;
&lt;pre&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;?php&lt;/span&gt; &lt;a href=&quot;http://www.php.net/echo&quot;&gt;&lt;span style=&quot;color: #000066;&quot;&gt;echo&lt;/span&gt;&lt;/a&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$GLOBALS&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'comments'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;f&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'comment_dt'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; != &lt;span style=&quot;color: #0000ff;&quot;&gt;$GLOBALS&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'comments'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;f&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'comment_upddt'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; ? &lt;span style=&quot;color: #ff0000;&quot;&gt;'
&amp;lt;p&amp;gt;&amp;lt;em&amp;gt;Ce commentaire a &amp;amp;eacute;t&amp;amp;eacute; modifi&amp;amp;eacute; le '&lt;/span&gt;.
&lt;span style=&quot;color: #0000ff;&quot;&gt;$GLOBALS&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'comments'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;f&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'comment_upddt'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #ff0000;&quot;&gt;'.&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;'&lt;/span&gt; : &lt;span style=&quot;color: #ff0000;&quot;&gt;''&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/pre&gt;


&lt;p&gt;Je pense que je vais bientôt l'implémenter sur mon blog.&lt;/p&gt;


&lt;p&gt;Merci Aeno&lt;/p&gt;</description>
    
    
    
          <comments>http://blog.guillaumebizet.fr/post/2006/04/26/105-message-billet-modifie#comment-form</comments>
      <wfw:comment>http://blog.guillaumebizet.fr/post/2006/04/26/105-message-billet-modifie#comment-form</wfw:comment>
      <wfw:commentRss>http://feeds2.feedburner.com/BizetsFamilyBlog/comments/97</wfw:commentRss>
      </item>
    
  <item>
    <title>Personnalisation des commentaires avec le plugin galerie</title>
    <link>http://blog.guillaumebizet.fr/post/2006/04/19/102-personnalisation-des-commentaires-avec-le-plugin-galerie</link>
    <guid isPermaLink="false">urn:md5:a3b3e0a623618ee6dc28516da77785e5</guid>
    <pubDate>Wed, 19 Apr 2006 14:00:30 +0000</pubDate>
    <dc:creator>Guillaume BIZET</dc:creator>
        <category>Dotclear et astuces</category>
        <category>Design</category><category>Dotclear</category><category>Gallerie photos</category><category>Plugins</category>    
    <description>&lt;p&gt;Comme mon blog est un un blog familial, il était évident que j'ai à publier des photos pour les faire partager à mes amis et ma famille.&lt;br /&gt;
J'ai donc découvert le &lt;a href=&quot;http://dsls.fribotte.org/dotclear/index.php?2005/10/21/61-plugin-gallery-09&quot; hreflang=&quot;fr&quot;&gt;plugin galerie&lt;/a&gt; de &lt;a href=&quot;http://dsls.fribotte.org/dotclear/index.php&quot; hreflang=&quot;fr&quot;&gt;Dsls&lt;/a&gt; modérateur sur le forum de Dotclear.&lt;br /&gt;
Actuellement j'ai la version 0.9.&lt;/p&gt;


&lt;p&gt;Quand j'ai commençé à personnaliser mon blog j'ai trouvé &lt;a href=&quot;http://petit.dotclear.net/pages/2005/04/22/83-faites-vous-remarquer-dans-les-commentaires&quot; hreflang=&quot;fr&quot;&gt;l'astuce de Kozlika&lt;/a&gt; pour personnaliser les commentaires et mettre en évidence les commentaires de l'administrateur et je me suis posé la question de savoir si cela était aussi possible avec galerie.&lt;br /&gt;
Après moultes discussion sur le forum, je suis arrivé grâce à la grande aide de Dsls à le mettre en place.&lt;/p&gt;    &lt;p&gt;Avant de commencer je vous conseille comme d'habitude de faire une petite sauvegarde des fichiers que nous allons modifier.&lt;/p&gt;


&lt;p&gt;Bon alors voici la marche à suivre :&lt;br /&gt;
Allez chercher le fichier galleryImage.php dans adressedevotresite/dotclear/share/gallery/themes/lethemequevousutilisez et ouvrez-le.&lt;br /&gt;
Dans le fichier repérez la partie commentaire qui commence à la ligne 71.&lt;br /&gt;
Cela doit être ça&amp;nbsp;:&lt;/p&gt;
&lt;pre&gt;&amp;lt;div id=&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;comments&quot;&lt;/span&gt;&amp;gt;
&amp;lt;h3 id=&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;co&quot;&lt;/span&gt;&amp;gt;Commentaires&amp;lt;/h3&amp;gt;
&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;?php&lt;/span&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$galleryComment&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;isEmpty&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; : &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;/* Message si aucune commentaire */&lt;/span&gt;	&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&amp;gt;&lt;/span&gt;
&amp;lt;p&amp;gt;Aucun commentaire pour le moment.&amp;lt;/p&amp;gt;
&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;?php&lt;/span&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;endif&lt;/span&gt;; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;?php&lt;/span&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;while&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$galleryComment&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;fetch&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; : &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;/* Boucle de commentaires */&lt;/span&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;// On met le num&amp;Atilde;&amp;copy;ro du commentaire dans une variable&lt;/span&gt;
&lt;span style=&quot;color: #0000ff;&quot;&gt;$co_num&lt;/span&gt; = &lt;span style=&quot;color: #0000ff;&quot;&gt;$galleryComment&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;int_index&lt;/span&gt;+&lt;span style=&quot;color: #cc66cc;&quot;&gt;1&lt;/span&gt;;
&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&amp;gt;&lt;/span&gt;
&amp;lt;p id=&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;c&amp;lt;?php dcGallery::commentID(); ?&amp;gt;&quot;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;comment-info&quot;&lt;/span&gt;&amp;gt;
&amp;lt;span &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;comment-number&quot;&lt;/span&gt;&amp;gt;&amp;lt;a href=&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;#c&amp;lt;?php dcGallery::commentID(); ?&amp;gt;&quot;&lt;/span&gt;&amp;gt;&amp;lt;?php &lt;a href=&quot;http://www.php.net/echo&quot;&gt;&lt;span style=&quot;color: #000066;&quot;&gt;echo&lt;/span&gt;&lt;/a&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$co_num&lt;/span&gt;; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&amp;gt;&lt;/span&gt;.&amp;lt;/a&amp;gt;&amp;lt;/span&amp;gt;
Le &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;?php&lt;/span&gt; dcGallery::&lt;span style=&quot;color: #006600;&quot;&gt;commentDate&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&amp;gt;&lt;/span&gt; &amp;amp;agrave;
&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;?php&lt;/span&gt; dcGallery::&lt;span style=&quot;color: #006600;&quot;&gt;commentTime&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&amp;gt;&lt;/span&gt;, par
&amp;lt;strong&amp;gt;&amp;lt;?php dcGallery::&lt;span style=&quot;color: #006600;&quot;&gt;commentAuthor&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;; ?&amp;gt;&amp;lt;/strong&amp;gt;
&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;?php&lt;/span&gt; dcGallery::&lt;span style=&quot;color: #006600;&quot;&gt;commentAuthorSite&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;':: &amp;lt;a href=&amp;quot;%s&amp;quot;&amp;gt;site&amp;lt;/a&amp;gt;'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;; ?&amp;gt;&amp;lt;/p&amp;gt;
&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;?php&lt;/span&gt; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;/* on affiche le commentaire */&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&amp;gt;&lt;/span&gt;
&amp;lt;blockquote&amp;gt;
&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;?php&lt;/span&gt; dcGallery::&lt;span style=&quot;color: #006600;&quot;&gt;commentContent&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&amp;gt;&lt;/span&gt;
&amp;lt;/blockquote&amp;gt;
&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;?php&lt;/span&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;endwhile&lt;/span&gt;; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/pre&gt;


&lt;p&gt;Insérez après la ligne 77&amp;nbsp;:&lt;/p&gt;
&lt;pre&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;?php&lt;/span&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;while&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$galleryComment&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;fetch&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; : &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;/* Boucle de commentaires */&lt;/span&gt;&lt;/pre&gt;

&lt;p&gt;le code suivant en modifiant les valeurs getAuthor() et getSite() par vos valeurs&lt;/p&gt;
&lt;pre&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;// me or not me ?&amp;lt;br /&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #0000ff;&quot;&gt;$me&lt;/span&gt; =&amp;lt;br /&amp;gt;
&lt;span style=&quot;color: #0000ff;&quot;&gt;$galleryComment&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;getAuthor&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; == &lt;span style=&quot;color: #ff0000;&quot;&gt;'Guillaume'&lt;/span&gt;&amp;lt;br /&amp;gt;
&amp;amp;&amp;amp; &lt;span style=&quot;color: #0000ff;&quot;&gt;$galleryComment&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;getSite&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; == &lt;span style=&quot;color: #ff0000;&quot;&gt;'http://guillaumebizet.free.fr'&lt;/span&gt;;&amp;lt;br /&amp;gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;// On met le num&amp;Atilde;&amp;copy;ro du commentaire dans une variable&amp;lt;br /&amp;gt;&lt;/span&gt;
&lt;span style=&quot;color: #0000ff;&quot;&gt;$co_num&lt;/span&gt; = &lt;span style=&quot;color: #0000ff;&quot;&gt;$galleryComment&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;int_index&lt;/span&gt;+&lt;span style=&quot;color: #cc66cc;&quot;&gt;1&lt;/span&gt;;&lt;/pre&gt;


&lt;p&gt;Ensuite, remplacer&amp;nbsp;:&lt;/p&gt;
&lt;pre&gt;&amp;lt;p id=&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;c&amp;lt;?php dcCommentID(); ?&amp;gt;&quot;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;comment-info&quot;&lt;/span&gt;&amp;gt;&lt;/pre&gt;


&lt;p&gt;Par&amp;nbsp;:&lt;/p&gt;
&lt;pre&gt;&amp;lt;div id=&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;c&amp;lt;?php dcCommentID(); ?&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;?php&lt;/span&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$me&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt; &lt;a href=&quot;http://www.php.net/echo&quot;&gt;&lt;span style=&quot;color: #000066;&quot;&gt;echo&lt;/span&gt;&lt;/a&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;'class=&amp;quot;me&amp;quot;'&lt;/span&gt;; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt; ?&amp;gt;&amp;gt;
&amp;lt;p &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;comment-info&quot;&lt;/span&gt;&amp;gt;&lt;/pre&gt;


&lt;p&gt;Et&amp;nbsp;:&lt;/p&gt;
&lt;pre&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;/a&gt;?php dcCommentContent&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;; ?&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;
&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;/blockquote&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;


&lt;p&gt;Par&amp;nbsp;:&lt;/p&gt;

&lt;pre&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;/a&gt;?php dcCommentContent&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;; ?&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;
&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;/blockquote&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;


&lt;p&gt;Et voilà, vos commentaires seront personnalisés dans galerie&lt;/p&gt;</description>
    
    
    
          <comments>http://blog.guillaumebizet.fr/post/2006/04/19/102-personnalisation-des-commentaires-avec-le-plugin-galerie#comment-form</comments>
      <wfw:comment>http://blog.guillaumebizet.fr/post/2006/04/19/102-personnalisation-des-commentaires-avec-le-plugin-galerie#comment-form</wfw:comment>
      <wfw:commentRss>http://feeds2.feedburner.com/BizetsFamilyBlog/comments/94</wfw:commentRss>
      </item>
    
  <item>
    <title>Plugin tags : nombre limité, eh bien non !!!</title>
    <link>http://blog.guillaumebizet.fr/post/2006/03/24/91-plugin-tags-nombre-limite-eh-bien-non</link>
    <guid isPermaLink="false">urn:md5:c3c98f8cc03495a2e6226fe59e18c899</guid>
    <pubDate>Fri, 24 Mar 2006 00:11:27 +0000</pubDate>
    <dc:creator>Guillaume BIZET</dc:creator>
        <category>Dotclear et astuces</category>
        <category>Dotclear</category><category>Plugins</category><category>Tags</category>    
    <description>    &lt;p&gt;Voilà, j'ai sur ce blog installé le plugin tags qui fonctionne de paire avec le plugin métadonnées de billets.&lt;br /&gt;
Or je suis arrivé à un moment à la limite de base du nombre de tags soit 100 tags. Au 101ème et bien impossible quand on clique dessus d'avoir un regroupement.
J'ai donc trifouillé dans le code du plugin et j'ai trouvé la solution pour augmenter ce nombre de tags &quot;enregistrés&quot; par défaut.&lt;/p&gt;


&lt;p&gt;Voilà la manipulation à faire dans le plugin tags:&lt;br /&gt;
Dans le fichier&amp;nbsp;: /ecrire/tools/twtags/functions.php&lt;br /&gt;
Remplacer&lt;/p&gt;
&lt;pre&gt;LIMIT &lt;span style=&quot;color: #cc66cc;&quot;&gt;0&lt;/span&gt;,&lt;span style=&quot;color: #cc66cc;&quot;&gt;100&lt;/span&gt; : ligne &lt;span style=&quot;color: #cc66cc;&quot;&gt;61&lt;/span&gt; par
LIMIT &lt;span style=&quot;color: #cc66cc;&quot;&gt;0&lt;/span&gt;,&lt;span style=&quot;color: #cc66cc;&quot;&gt;300&lt;/span&gt; par exemple. Ca peut &amp;Atilde;&amp;ordf;tre plus, je ne connais pas la limite &lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;haute&quot;&lt;/span&gt;&lt;/pre&gt;


&lt;p&gt;et voilà que tout redeviens normal&amp;nbsp;: ouf !!!&lt;/p&gt;


&lt;p&gt;En tous cas merci à &lt;a href=&quot;http://www.callmepep.org/blog&quot; hreflang=&quot;fr&quot;&gt;Pep&lt;/a&gt; d'avoir corrigé une erreur que j'avais faite, voir &lt;a href=&quot;http://www.dotclear.net/forum/viewtopic.php?pid=82360#p82360&quot; hreflang=&quot;fr&quot;&gt;la correction concerné&lt;/a&gt; sur le forum de Dotclear.&lt;br /&gt;
Mon erreur avait été de remplacer dans le plugin métadonnées de billets (/ecrire/tools/twpostmeta/functions.php)&lt;/p&gt;
&lt;pre&gt;meta_key VARCHAR&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #cc66cc;&quot;&gt;100&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; NOT &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;NULL&lt;/span&gt; : ligne &lt;span style=&quot;color: #cc66cc;&quot;&gt;47&lt;/span&gt; par
meta_key VARCHAR&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #cc66cc;&quot;&gt;500&lt;/span&gt; par exemple&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; NOT &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;NULL&lt;/span&gt;&lt;/pre&gt;


&lt;p&gt;L'explication de &lt;a href=&quot;http://www.callmepep.org/blog&quot; hreflang=&quot;fr&quot;&gt;Pep&lt;/a&gt;&amp;nbsp;:&lt;/p&gt;


&lt;blockquote&gt;&lt;p&gt;- La longueur max d'un varchar est 255.&lt;br /&gt;
- Ensuite, ce que tu as là, c'est la taille permise pour le nom / l'identifiant d'un méta, pas une limite du nombre d'occurences que peut avoir un méta de ce nom.&lt;br /&gt;
- Enfin, cette partie n'est utilisée qu'à l'installation du plugin. S'il est déjà présent, il faudrait alors aller modifier le schéma de la table depuis phpMyAdmin.&lt;/p&gt;&lt;/blockquote&gt;


&lt;p&gt;Alors là je m'incline &lt;img src=&quot;http://www.guillaumebizet.fr/fichiers_communs/themes/default/smilies/wink.png&quot; alt=&quot;;)&quot; class=&quot;smiley&quot; /&gt;&lt;/p&gt;</description>
    
    
    
          <comments>http://blog.guillaumebizet.fr/post/2006/03/24/91-plugin-tags-nombre-limite-eh-bien-non#comment-form</comments>
      <wfw:comment>http://blog.guillaumebizet.fr/post/2006/03/24/91-plugin-tags-nombre-limite-eh-bien-non#comment-form</wfw:comment>
      <wfw:commentRss>http://feeds2.feedburner.com/BizetsFamilyBlog/comments/82</wfw:commentRss>
      </item>
    
</channel>
</rss>
