Le plugin Editable Comments pour WordPress permet à vos visiteurs d’éditer ou de supprimer leurs propres commentaires pendant une durée limitée, à condition d’avoir toujours la même adresse IP.
De leur côté, les utilisateurs enregistrés disposant des droits d’administration sur l’article en cours peuvent gérer librement tous les commentaires postés, sans limite de temps.

Afficher les liens
Pour afficher le lien de modification, ajoutez le code suivant dans votre fichier comments.php, au sein de la boucle listant les commentaires (ou dans le fichier functions.php si votre thème utilise la fonction wp_list_comments()) :
<?php if ( class_exists( 'WPEditableComments' ) ) { WPEditableComments::edit('Modifier'); } ?>
Pour le lien de suppression, même principe :
<?php if ( class_exists( 'WPEditableComments' ) ) { WPEditableComments::delete('Supprimer'); } ?>
Les deux fonctions disposent de trois paramètres : $text, $before et $after. Le premier est le texte à afficher pour le lien. Les deux autres permettent d’ajouter du code avant et après le lien.
Administrer le plugin
La page de gestion du plugin propose de gérer plusieurs paramètres : les durées de validité pour les options de modification et de suppression, l’autorisation ou non pour les simples utilisateurs de supprimer leur propre commentaire et le mode d’affichage du formulaire. Par défaut, le lien est affiché pendant 30 minutes après le dépôt d’un commentaire. Quant au formulaire d’édition, il s’affiche dans une boite de dialogue, sans avoir à quitter la page courante. Mais vous pouvez désactiver cette fonctionnalité et afficher le formulaire sur une page dédiée : c’est d’ailleurs ainsi qu’il s’affichera pour tout utilisateur ayant désactivé le javascript au sein de son navigateur.

A terme, le plugin disposera peut-être de fonctionnalités plus avancées pour les administrateurs, mais pour le moment, je pense que le nécessaire est là.
N’hésitez pas à faire remonter tous bogues ou desiderata !
Attention : le plugin est incompatible avec Slimbox Plugin, du fait de l’utilisation par ce dernier de la librairie Mootools. Je vous conseille donc de passer à l’implémentation jquery de slimbox.





82 commentaires pour : Plugin Editable Comments
Par Mario, le 30 décembre 2009 à 14:28
Bonjour,Je voulais tout simplement te dire un grand merci pour ce super plugin, ça fait longtemps que je cherchais à remplacer ajax edit…. j’ai enfin pu le virer grâce à toi.
Encore merci pour ton super boulot
Par Julien Appert, le 30 décembre 2009 à 14:31
C’est un plaisir de faire plaisir !
Par a, le 7 janvier 2010 à 13:46
Good job
Par Li-An, le 10 janvier 2010 à 20:52
Puisque Ajax Edit Comments passe en payant, je vais tester celui-là
Par Julien Appert, le 10 janvier 2010 à 21:05
C’est en partie ce qui m’a motivé pour le développement de celui-ci !
Par Li-An, le 11 janvier 2010 à 14:59
Il semblerait que ça ne fonctionne pas sous Opera 10 (la fenêtre s’ouvre, on peut éditer mais le texte sauvegardé est inchangé).
Par Julien Appert, le 11 janvier 2010 à 15:17
Ah, je vais regarder ça.
Par Julien Appert, le 11 janvier 2010 à 15:51
Ok, j’ai trouvé d’où venait l’erreur. La version corrigée arrivera sur wordpress.org d’ici quelques minutes.
Par Li-An, le 11 janvier 2010 à 15:56
Ah ben c’est du rapide. J’ai eu peur que ce soit d’abord un conflit de plugins…
Par Peio, le 14 janvier 2010 à 18:01
Bonjour,
J’ai essayé d’installer votre plugin mais dans le comments.php de mon thème, je n’ai pas de fonction comment_text() et je ne vois pas vraiment ou mettre votre code du coup :/
J’ai aussi un legacy.comments.php dans mon thème mais si je l’active en le renommant j’ai plein de problèmes (mais l’edit fonctionne).
Est-ce que WordPress a changé sa façon de gérer les commentaires ?
Par Julien Appert, le 14 janvier 2010 à 18:24
Bonjour,
Si tu n’as pas de comment_text(), j’imagine que tu dois avoir un wp_list_comments() qui gère l’affichage complet des commentaires. Auquel cas, si la fonction appelle un paramètre callback, on doit pouvoir y faire quelque chose. Sinon, eh bien, il va falloir que je modifie le plugin pour forcer l’affichage du lien lors de l’utilisation de cette fonction.
Par Peio, le 14 janvier 2010 à 20:31
Effectivement j’ai « ». Par contre je dois avouer que je n’ai pas vraiment compris la fin de la phrase :p
Par Julien Appert, le 14 janvier 2010 à 20:44
En fait, si tu as qq chose comme wp_list_comments(‘callback=ma_function’), ça veut dire que ton thème utilise une fonction personnalisée pour afficher les commentaires, donc il sera possible de modifier cette fonction pour ajouter le code du plugin.
Mais si tu as juste wp_list_comments(), alors c’est une fonction interne à wordpress qui est utilisée, et là il va falloir attendre que je fasse une modification au plugin
Par Peio, le 14 janvier 2010 à 21:24
OK, effectivement il utilisait une fonction personnalisée et je l’ai trouvée dans functions.php, donc je vais pouvoir modifier ça.
Merci beaucoup pour les réponses et la réactivité impressionnante !
Par Matt, le 21 janvier 2010 à 15:07
Excellent ce plugin, je cherchais justement une alternative à WP Ajax Edit Comments (qui ne fonctionnait plus chez moi). Editable Comments est bien plus léger et facile à administrer également.
Merci !
Par Lorand, le 24 janvier 2010 à 4:25
Testé, approuvé et adopté !
Et WP Ajax Edit Comments à la corbeille.
Par contre, l’édition s’ouvre dans une grande fenêtre chez moi, même en ayant coché « Utiliser la boite de dialogue javascript »
Merci
Par Simounet, le 25 janvier 2010 à 11:49
Même problème que celui cité au dessus. Tout a l’air de bien fonctionner sauf que l’édition ouvre une autre fenêtre, c’est bien dommage !
Par Ruud, le 30 janvier 2010 à 21:01
It does not seem to work for me. I tested it on several blogs I have, but unfortunately I only get an empty popup?
Par Julien Appert, le 31 janvier 2010 à 1:50
@Ruud : Yes, this problem has already ocurred because of a conflict with the javascript library mootools.
@Lorand : Il y a des erreurs javascript sur ton site à cause du plugin de notation. C’est probablement à cause de cela que la boite de dialogue ne fonctionne pas.
Par Ruud, le 1 février 2010 à 3:53
Thanks for the reply, but is there a solution? Does it conflict with WordPress itself or other plugins?
Par Julien Appert, le 2 février 2010 à 18:42
Mootools is only used by plugins, not by wordpress itself. I tried the jQuery’s noConflit function, but if other plugin prints mootools after the script of editable-comments, it doesn’t work. So the only way to solve the problem seems to be deactivation of the plugin in question.
Par wildkyo, le 3 février 2010 à 18:46
Probandoooo!!!
Editado correctamente.
Par Lorand, le 3 février 2010 à 19:20
Bonjour Julien,
Je n’avais pas vu ta réponse, toutes mes excuses
Mon plugin PostRatings tu veux dire ?
Merci beaucoup
Par Lorand, le 3 février 2010 à 21:07
Je viens de désactiver PostRatings, mais le problème est toujours présent.
Par Sven, le 4 février 2010 à 19:14
Cool plugin, I think I will try to adopt the same technic on antoher platform then WordPress.
Thanks for sharing!
Par Ruud, le 4 février 2010 à 21:06
Isn’t it an idea to use the built in popup option of wordpress? Like the one that is used to manage media in the post-screen? It would solve a lot of problems. I use a couple of essentials products, so I cannot disable another plugin for this one unfortunately.
If you are thinking of a redesign, could you also consider inline editing? You click edit and through (ajax?) you can edit the comment in the original box!
Par Lorand, le 28 février 2010 à 2:00
Bonjour,
Je viens de mettre mon thème (AmazingGrace) à jour et il est maintenant différent de l’ancienne version. Je ne peux donc plus utiliser Plugin Editable Comments car je ne vois plus l’endroit où placer le code.
Je n’ai plus de php comment_text()
Maintenant, j’ai ceci :
ol class= »commentlist »
wp_list_comments(array(‘avatar_size’=>50, ‘reply_text’=>’Reply’));
Il y a aussi un fichier Legacy_Comments.php dans lequel je retrouve le code php comment_text() mais j’ai beau ajouté celui du plugin, rien ne se passe.
Help
Par Julien Appert, le 1 mars 2010 à 9:30
Bonjour,
Visiblement, on entre dans le cadre du problème évoqué sur ce commentaire. Mais ton thème n’utilise pas de fonction personnalisée pour afficher les commentaires.
Si tu remplaces le fichier comments.php par le fichier legacy_comments.php en les renommant, le problème sera résolu.
Par Lorand, le 1 mars 2010 à 15:32
Bonjour Julien
Merci pour ta réponse. Je viens d’essayer de mettre le legacy_comments.php à la place du comments.php de base mais je perds la mise en page (les commentaires sont maintenant sur la même page au lieu d’être divisés sur plusieurs pages).
Dommage, j’aimais bien ton plugin
Par Lei, le 2 mars 2010 à 15:53
Hello, est ce que Link 2 post est un lien qui amène à 1 article, ou bien est ce qu’on peut faire en sorte que ça amène à une catégorie spécifique? Ca m’arrangerait bien je dois vous avouer… Car des articles j’en ai pas mal et je les ai tous regroupés dans une catégorie.
Merci d’avance
Par Mark, le 4 mars 2010 à 19:29
How do I make this work in English? I see it is supposed to but i do not see any instructions.
Right now it says: « Votre commentaire a été modifié. »
I need that in English.
Thanks.
Par Lorand, le 10 mars 2010 à 1:47
Peio, si tu passes dans le coin, pourrais-tu stp m’expliquer comment tu as fait ? Car visiblement j’ai le même problème que toi. Merci par avance.
Par Julien Appert, le 11 mars 2010 à 13:40
@Lei : link2post fait des liens uniquement vers des pages ou des articles. Mais il est prévu la création de liens vers d’autres types de contenu.
@Mark : j’ai probablement laissé du texte français en dur dans le code. Je vais vérifier ça.
@Lorand : Le problème de Peio a été réglé grâce à une solution équivalente à celle que je t’ai proposée. Ton problème d’affichage vient probablement d’une configuration particulière dans le fichier legacy_comments.php
Par Lorand, le 11 mars 2010 à 13:50
Merci pour ta réponse. J’ai encore regardé il y a une heure mais si je mets le « legacy_comments.php » à la place de mon « comments.php » actuel je perds toute la mise en page (les commentaires sont affichés sur la même page au lieu d’être séparés comme actuellement, 20 par page).
Par Julio, le 17 mars 2010 à 19:02
¡hi! After the new paymento option for Ajax Edit Comment, i was searching for a plugin wich let visitors change their comment. You’re idea is very good: if they want to change or modify something, it’s logic to understand that they’ll do from their own computer or some place where they write. Is lightweight -AEC was very heavy-, makes what it says, and please… only a suggestion, of course… don’t make the plugin full of options, i think the great news is that your plugin is basic and with some additions -a few- can be better, but form me now it’s perfect. Congratulations for the plugin! Julio. -excuse me for my poor english, I live in Canary Islands-.
Par Marc, le 19 mars 2010 à 21:56
Great Plugin, thanks for the work!
I made a german language file right quick – feel free to use it:
http://go.gregel.com/editablecommentsde
Par Fletcher, le 28 mars 2010 à 13:17
Bonjour!
Why this plugin write a version WordPress of blog when he should write a version of the plugin. Because it undermines the security of the site.
End whote encrypted in the code?:
= »—–BEGIN PKCS7—–MIIHLwYJKoZIhvcNAQcEoIIHIDCCBxwCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwDQYJKoZIhvcNAQ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PO/kDaMpGqMKd4xQj415kR5fLFZUZUT4/smPOzZ5Fauuk/XQ==—–END PKCS7—–
Par René, le 8 avril 2010 à 8:26
Es kijken of dit werkt…
Par Julien Appert, le 28 avril 2010 à 12:35
@Julio : thanks for your congratulation message !
@Marc : thanks for your localization. I will include it in the plugin today.
@Fletcher : the encrypted string is only for the paypal button.
@René : Dus werkt het?
Par confused, le 14 mai 2010 à 1:02
just trying this plugin
Par Björn, le 31 mai 2010 à 14:56
Merci Julien pour ce superbe plugin, il remplace avantageusement Ajax Edit Comments qui est lourd et payant.
Félicitation!
Par koz, le 21 juin 2010 à 12:18
Hello, je viens d’installer le plugin, en me félicitant de voir un auteur connu. En revanche, j’ai le souci mentionné plus haut, avec la fonction wp_list_comments( array( ‘callback’ => ‘twentyten_comment’ )
Je n’ai pas compris comment modifier la fonction pour intégrer ton code. Et je suis au bord de me faire lyncher par mes lecteurs, qui n’ont plus la possibilité de modifier leurs commentaires
Par Julien Appert, le 22 juin 2010 à 17:17
Hello,
Tu dois avoir une fonction twentyten_comment() dans ton fichier functions.php
Il suffit donc d’aller modifier ce fichier pour y coller le code fourni par mon plugin.
Par koz, le 22 juin 2010 à 17:26
Désolé, apparemment je ne suis pas doué. J’ai trouvé la fonction dans functions.php. J’ai inséré le code juste après, dans le div commentaire. Puis avant. A chaque fois, la fenêtre s’ouvre mais le texte du commentaire n’apparaît pas dedans.
Par Julien Appert, le 22 juin 2010 à 17:42
J’ai voulu tester sur ton blog mais je n’ai pas vu le lien. Tu peux supprimer le commentaire. Pour ton problème, je me demande si ce n’est pas un conflit avec le plugin de lightbox, qui utilise la librairie prototype. Essaye de le désactiver pour voir ?
Par koz, le 22 juin 2010 à 18:05
Je l’ai désactivé, mais ça ne passe toujours pas.
Par Julien Appert, le 22 juin 2010 à 18:19
Ah, j’ai compris ! C’est dû au fait que ton blog n’utilise pas la réécriture d’URL.
Le :
http://www.koztoujours.fr/?p=8063
Au lieu du :
http://www.koztoujours.fr/et-vive-la-france
Je vais modifier le plugin pour prendre en compte cette donnée dès que j’ai un peu de temps.
Par koz, le 22 juin 2010 à 18:22
Ok. Du coup, j’inactive la fonction pour le moment. Je réactiverai quand tu auras fait la maj.
Par lucy, le 24 juin 2010 à 10:47
Merci beaucoup pour ce super plugin !!
Par Mike, le 27 juin 2010 à 11:26
I need some help. The plug-in does not seem to be working properly with my website:
http://pixelsmashers.com/
When I click the button, the javascript loads, but the textbox is empty. Any ideas?
Par Koz, le 27 juin 2010 à 11:55
Have you updated the plugin ? This is exactly the problem I had before Julien updated it.
[je me suis permis, Julien]
Par Mike, le 27 juin 2010 à 22:38
I believe I did. Version .3 right? I auto-updated it in wordpress. Maybe its the edits I made? This is what I pasted:
__________
__________
Is this correct? What else may be causing this problem?
Par Mike, le 27 juin 2010 à 22:41
Damn, it removed the code I pasted. Please excuse my double post. You can find the code I put in here:
http://wordpress.org/extend/plugins/editable-comments/
I am not sure if that is the problem though. What exactly did the update fix? I really don’t know how to go about solving this
.
edit:
I forgot this site has the edit button working. Sorry about that
Par Julien Appert, le 29 juin 2010 à 11:05
Mike, the version 0.3 fixes a bug with the default permalink. It works with Koz’s blog, it should work for yours.
Maybe an incompatibility with another plugin that interferes with the comments ?
(Merci Koz !)
Par Mike, le 30 juin 2010 à 0:35
I’m not sure, well I deactivated it for now since it isn’t working for me =\.
Par migf1, le 2 juillet 2010 à 18:40
Hello, thanks for this great plugin, however I have trouble with my theme (Suffusion ver 3.0.9).
To make a long story short, I cannot find how to put the php code inside the comments-loop, because the theme uses its own modified comments.php file (I have managed to put it outside the loop though and it was working, but it was of no use). I asked the author of the theme in this thread what to do and as you can see (by following the above link) he replied that I should ask you this question.
Any help would be greatly appreciated. In case it’s helpful for you, here’s a sample of post with comments from my site.
Thanks in advance.
Par Lee, le 9 juillet 2010 à 17:51
I’m having two problems with this plug-in in WP 3.0: the JavaScript window works okay, except that it doesn’t update the comment after I close it! So I’m using the non-JavaScript window (which doesn’t have this problem), but the cancel button doesn’t work! Another person in the WordPress forum is having the same problems.
I would also like the ability to exclude admins, as we already have all the back end editing stuff anyway, and it’s more secure (my admin area is password protected).
Overall though, I much prefer this plug-in to the Ajax Edit Comments bloatware we had to use in the past, especially now that it’s gone commercial.
Par Rog, le 20 août 2010 à 5:34
I’d just like to say thank you. I love the simplicity and straightforward design of Editable Comments. I’m especially pleased that I’m able to adapt and style it to fit my web designs.
There aren’t many choices for editing comments, most of the others are either outdated or very bloated and difficult to customize (ugh Ajax Edit Comments).
I hope you continue to update Editable Comments and keep it simple as well.
Kudos.
Par Rog, le 21 août 2010 à 17:27
Also, do you think adding a countdown timer would be possible?
Par lucia, le 8 septembre 2010 à 15:08
Julien-
Nice plugin. I’m in Chicago a time zone many hours away from gmt.
When I installed and activated the plugin, I discovered a mis-match in the time. The edit/delete buttons did not appear for any non-registered user.
I edited line 144 in the main plugin file to call $comment->comment_date_gmt instead of $comment->comment_date. Now the call to dateValid() returns true/false after the correct amount of time.
Thanks.
Par lucia, le 8 septembre 2010 à 18:28
Par Lee
I would also like the ability to exclude admins, as we already have all the back end editing stuff anyway, and it’s more secure (my admin area is password protected).
I edited line 144 in « editable-comments.php » by removing the following from the « if » statement:
current_user_can( ‘edit_post’, $post->ID ) ||
This has the advantage of showing me the same functionality as users which helps because I had the time() mismatch issue.
Par Lorand, le 12 septembre 2010 à 19:27
Bonjour,
Je suis passé sur un serveur dédié et j’ai maintenant cette erreur lorsque je tente d’activer Editable Comments :
Warning: Cannot modify header information – headers already sent by (output started at /var/www/mon_chemin/wp-content/plugins/editable-comments/editable-comments.php:160) in /var/www/mon_chemin/wp-includes/pluggable.php on line 890
J’ai regardé cette ligne dans pluggable.php :
if ( php_sapi_name() != ‘cgi-fcgi’ )
status_header($status); // This causes problems on IIS and some FastCGI setups
header(« Location: $location », true, $status);
Hors, je suis en FastCGI. Existe t-il une solution contre ce problème ?
Merci
Par Donna, le 10 octobre 2010 à 11:38
Thank you, great plugin. Simple and it does the job.
Par Nathan Staines, le 22 octobre 2010 à 18:24
Awesome plugin, is there a way to blackout the background as the comment pops up like with most other lightboxes?
Par Kip Hansen, le 8 novembre 2010 à 1:24
Julien,
See
http://rankexploits.com/musings/2010/comment-editing-should-be-back/comment-page-1/#comment-59339
Lucia uses your plug-in on The Blackboard.
I pointed out that once a comment has been edited, the Delete button disappears. Note that she has set the delete time-out to one minute, which normally expires by the time the comment appears and is subsequently edited.
Preferably the delete time-out would be re-set each time the comment is edited.
Can you add this?
Par MarquisEXB, le 11 novembre 2010 à 21:50
I’m not sure how to edit my comments.php Can you assist? (converting brackets so that it’s not seeing as html)
{?php if ( have_comments() ) : ?}
{h3 id= »commentheader »}{?php comments_number(‘No Responses’, ‘One Response’, ‘% Responses’ );?} to “{?php the_title(); ?}”{/h3}
{!– {div class= »navigation »}
{div class= »alignleft »}{?php paginate_comments_links(); ?}{/div}
{/div –}
{ol class= »commentlist »}
{?php if (function_exists(‘gtcn_basic_callback’)) :
wp_list_comments(‘avatar_size=64&callback=gtcn_basic_callback’)
?}
{!– function gtcn_basic_callback exists –}
{?php else :
wp_list_comments(‘avatar_size=64′) ?}
{!– function gtcn_basic_callback not exist –}
{?php endif; ?}
{/ol}
{!– {div class= »navigation »}
{div class= »alignleft »}{?php paginate_comments_links(); ?}{/div}
{/div –}
{?php else : // this is displayed if there are no comments so far ?}
{?php if (‘open’ == $post-}comment_status) : ?}
{!– If comments are open, but there are no comments. –}
{?php else : // comments are closed ?}
{!– If comments are closed. –}
{p class= »nocomments »}Comments are closed.{/p}
{?php endif; ?}
{?php endif; ?}
Par Thomas, le 28 novembre 2010 à 10:06
Merci pour ce merveilleux plugin gratuit et en français.
Pour une fois, pas besoin de traduire un plugin de l’anglais vers le français
Seul bémol, le plugin utilise des styles qui entrent en conflit avec mon thème (notamment : widget-content).
Par Lorand, le 31 décembre 2010 à 19:09
Bonjour,
Personne n’a ce problème lors de l’édition d’un commentaire ?
Warning: Cannot modify header information – headers already sent by (output started at /var/www/mon_chemin/wp-content/plugins/editable-comments/editable-comments.php:160) in /var/www/mon_chemin/wp-includes/pluggable.php on line 890
Merci et bonne année 2011
Par Loïc Mahé, le 5 janvier 2011 à 17:10
Bonjour,
Serait-il envisageable de désactiver les délais max pour éditer ou supprimer un commentaire (genre en mettant zéro comme valeur) ?
Sinon, pour ceux qui utilisent le thème Wordpraized, la liste des commentaires dans wp-content/themes/wordpraized/comments.php est rudimentaire :
{ol class= »commentlist »}
{?php wp_list_comments(); ?}
{/ol}
Il faut en fait reporter les deux lignes indiquées dans la doc dans un fichier de base de WordPress : wp-includes/comment-template.php, après la ligne
{?php comment_text() ?}
ce qui est assez moyen.
Sinon, il serait bien aussi de traduire les boutons Edit et Delete.
Par paul, le 27 janvier 2011 à 4:18
I added this to my theme in I think the correct place (theme:piano black, added to functions.php) but it sems only logged in users can see the edit and delete links
Par Brian Peterson, le 19 février 2011 à 9:56
Excelent plugin. For some reason I had to add 60 minutes for every timezone change. I’m at -8 UTC/GMT, therefore I had to set the minutes editable at (8*60)+60 = 540 to get it so that users only had 60 minutes to edit comments.
Is this something standard that I missed or an issue with my website only?
Cheers,
-Brian Peterson
Par Lindsey, le 20 février 2011 à 2:40
I’m running into an interesting problem with this plugin… It doesn’t work for non-admin users. It works fine when the admin user is logged in- links show up and everything works. When logged in as a non-admin user or not logged in at all, the links don’t even show up on the page. Any ideas?
Par Paul, le 20 février 2011 à 2:45
@lindsey
same here!
Par Sirtin, le 9 mars 2011 à 0:03
Bonjour,
Je rejoins les autres : un grand merci pour cette bonne alternative à Ajax Edit Comment qui ne marchait plus et quelle ne fut ma surprise de découvrir sa version payante !
Deux remarques :
1) Je suis un fada des standards W3C et ça ne passait pas pour le CSS. J’ai donc supprimé toutes les propriétés qui ne passaient pas la validation et c’est bon. Rigolo non ? La version sans javascript est aussi bien, c’est agréable. Par contre, c’est nickel côté html.
2) J’aimerais avoir les fonctions « modifier » et « supprimer » proposés aux internautes. Or, seule la fonction « modifier » s’affiche bien que j’ai mis les deux codes cote à cote. Cela veut dire qu’on ne peut avoir qu’une fonction à la fois ?
3) Ah tiens oui, une 3e remarque. Pourquoi laisser la possibilité de mettre une petite icône que chacun pourrait personnaliser ?
Par Ajvngou, le 13 mars 2011 à 23:27
Par rauchmelder, le 6 avril 2011 à 10:48
Many Thx for this fine Plugin, but How To Move The “Edit” Text To The Top Right Corner Of The Comment?
Thx for your Help?
Par Robert, le 14 avril 2011 à 21:38
thanks for this great article. i will try this plugin!
Par Elliot Sowersby, le 18 avril 2011 à 18:33
Hello,
On my website is allowing any user to edit the last comment on the page for some reason. So if I sign into USER1 and allows me to edit USER 2′s which is the last comment made.
Is there a way to fix this?
Thanks.
—
Vertaald:
Hallo,
In de ‘Bewerkbare Reacties’ plugin is iedere gebruiker de laatste opmerking op de pagina om wat voor reden bewerken toelaten. Dus ik teken in USER 1 en kan USER 2 opmerking bewerken.
Is er een manier om dit op te lossen?
Bedankt.
Par Maître Mô, le 30 avril 2011 à 6:53
Bonjour Julien,
Juste et simplement un grand merci et de grands bravos pour ce plugin : installé en trois minutes, hyper simple, et fonctionne impeccablement chez moi… C’est bon à vivre !
Un minuscule oubli : dans le panneau d’admin, le texte « Allow delete for users » n’est pas traduit, oubli de la chaîne ‘editablecomments’ (c’est juste pour dire que tout soit parfait !).
Merci encore !
Par Andy, le 16 octobre 2011 à 13:52
i need help …my comment can edit anyone
i try to get editable comment olny for autor of comment
ID ) {
if ( class_exists( 'WPEditableComments' ) ) { WPEditableComments::edit('Modify'); }
if ( class_exists( 'WPEditableComments' ) ) { WPEditableComments::delete('Delete'); }
} else {}
?>
Par Jeff, le 17 décembre 2011 à 9:43
Let’s try this out.
Par pierre, le 22 décembre 2011 à 16:53
un grand merci à toi
je suis juste embêté car j’ai installé le plugin, sans soucis, j’y ai mis des petits icones et ça rend très bien.
Par contre impossible de l’ouvrir dans une nouvelle fenêtre de dialogue, ça s’ouvre dans une nouvelle page. Et je ne vois pas dans l’administration l’option permettant de l’ouvrir dans une boite de dialogue, est ce que cela a été supprimé dans les versions récentes du plugin ?
9 rétroliens