Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /homepages/14/d213344623/htdocs/blog/wp-content/plugins/deans_code_highlighter/geshi.php on line 2146

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /homepages/14/d213344623/htdocs/blog/wp-content/plugins/deans_code_highlighter/geshi.php on line 2146

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /homepages/14/d213344623/htdocs/blog/wp-content/plugins/deans_code_highlighter/geshi.php on line 2146

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /homepages/14/d213344623/htdocs/blog/wp-content/plugins/deans_code_highlighter/geshi.php on line 2146

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /homepages/14/d213344623/htdocs/blog/wp-content/plugins/deans_code_highlighter/geshi.php on line 2146

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /homepages/14/d213344623/htdocs/blog/wp-content/plugins/deans_code_highlighter/geshi.php on line 2146

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /homepages/14/d213344623/htdocs/blog/wp-content/plugins/deans_code_highlighter/geshi.php on line 2146

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /homepages/14/d213344623/htdocs/blog/wp-content/plugins/deans_code_highlighter/geshi.php on line 2146

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /homepages/14/d213344623/htdocs/blog/wp-content/plugins/deans_code_highlighter/geshi.php on line 2146

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /homepages/14/d213344623/htdocs/blog/wp-content/plugins/deans_code_highlighter/geshi.php on line 2146

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /homepages/14/d213344623/htdocs/blog/wp-content/plugins/deans_code_highlighter/geshi.php on line 2146

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /homepages/14/d213344623/htdocs/blog/wp-content/plugins/deans_code_highlighter/geshi.php on line 2146

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /homepages/14/d213344623/htdocs/blog/wp-content/plugins/deans_code_highlighter/geshi.php on line 2146

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /homepages/14/d213344623/htdocs/blog/wp-content/plugins/deans_code_highlighter/geshi.php on line 2146

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /homepages/14/d213344623/htdocs/blog/wp-content/plugins/deans_code_highlighter/geshi.php on line 2146

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /homepages/14/d213344623/htdocs/blog/wp-content/plugins/deans_code_highlighter/geshi.php on line 2146

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /homepages/14/d213344623/htdocs/blog/wp-content/plugins/deans_code_highlighter/geshi.php on line 2146

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /homepages/14/d213344623/htdocs/blog/wp-content/plugins/deans_code_highlighter/geshi.php on line 2146

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /homepages/14/d213344623/htdocs/blog/wp-content/plugins/deans_code_highlighter/geshi.php on line 2146

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /homepages/14/d213344623/htdocs/blog/wp-content/plugins/deans_code_highlighter/geshi.php on line 2146

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /homepages/14/d213344623/htdocs/blog/wp-content/plugins/deans_code_highlighter/geshi.php on line 2146

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /homepages/14/d213344623/htdocs/blog/wp-content/plugins/deans_code_highlighter/geshi.php on line 2146

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /homepages/14/d213344623/htdocs/blog/wp-content/plugins/deans_code_highlighter/geshi.php on line 2146

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /homepages/14/d213344623/htdocs/blog/wp-content/plugins/deans_code_highlighter/geshi.php on line 2146
Le panneau avant la modification

Le panneau avant la modification

Le panneau après la modification

Le panneau après la modification

Le plug-in qui permet de faire de joli galeries sous Worpdress écrit par Alex Rabe vient d’être mis à jour en version 1.0.1 pour devenir complètement compatible avec la version 2.7 de notre moteur de blog préféré. Toutefois, une fois installé sur une version française de WordPress, l’ajout des images dans un article devient compliqué, car il ne reste plus que le bouton « NextGEN Gallery » de disponible, et on ne peut plus naviguer dans la bibliothèque de médias. Voilà de quoi corriger ça ! 🙂

Comme vous pouvez le constater sur l’image dans l’entête de l’article, il y a comme un petit problème… C’est un pur problème de CSS que l’on peut potentiellement corriger de plusieurs façon. J’ai opté pour la plus « propre » à mes yeux, qui est celle de modifier un tout petit peut le code du plug-in (en attendant un correctif officiel) plutôt que celui de WordPress.

Voilà la manipulation à réaliser en détail :

  • Aller récupérer le fichier media-upload.php qui se trouve dans le répertoire wp-content/plugins/nextgen-gallery/admin de l’installation de votre blog WordPress ;
  • modifier le début du fichier avec un éditeur de texte pour changer le texte du bouton :

Initialement, on a :

  1. span class= »st0″>’nextgen’‘NextGEN Gallery’,‘nggallery’

Qu’on modifie en ça :

  1. span class= »st0″>’nextgen’‘NextGEN’,‘nggallery’

Et ensuite, on remplace la page sur le serveur, et magie, tout est opérationnel ! 🙂