Plugin Editable Comments

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.

editable-comments-form

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.

editable-comments-admin

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 !

Editable Comments

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

  • 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 ;)

  • C’est un plaisir de faire plaisir !

  • Good job :)

  • Puisque Ajax Edit Comments passe en payant, je vais tester celui-là :-)

  • C’est en partie ce qui m’a motivé pour le développement de celui-ci !

  • Il semblerait que ça ne fonctionne pas sous Opera 10 (la fenêtre s’ouvre, on peut éditer mais le texte sauvegardé est inchangé).

  • Ah, je vais regarder ça.

  • Ok, j’ai trouvé d’où venait l’erreur. La version corrigée arrivera sur wordpress.org d’ici quelques minutes.

  • Ah ben c’est du rapide. J’ai eu peur que ce soit d’abord un conflit de plugins…

  • 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 ?

  • 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.

  • Effectivement j’ai «  ». Par contre je dois avouer que je n’ai pas vraiment compris la fin de la phrase :p

  • 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 :)

  • 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 !

  • 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 !

  • 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 :)

  • 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 !

  • It does not seem to work for me. I tested it on several blogs I have, but unfortunately I only get an empty popup?

  • @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.

  • Thanks for the reply, but is there a solution? Does it conflict with WordPress itself or other plugins?

  • 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.

  • Probandoooo!!! :D

    Editado correctamente.

  • Bonjour Julien,

    Je n’avais pas vu ta réponse, toutes mes excuses :(
    Mon plugin PostRatings tu veux dire ?

    Merci beaucoup

  • Je viens de désactiver PostRatings, mais le problème est toujours présent.

  • Cool plugin, I think I will try to adopt the same technic on antoher platform then WordPress.

    Thanks for sharing!

  • 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!

  • :( :(

    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 :(

  • 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.

  • 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.

  • 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.

  • @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

  • 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).

  • ¡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-.

  • 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—–MIIHLwYJKoZIhvcNAQcEoIIHIDCCBxwCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwDQYJKoZIhvcNAQEBBQAEgYBuJFzHWfR19u9WNeJC04nLkhXChoun6ipbH6+64viW9PIUw7cIao9JZWd+chPkufpS6nLO4KyEE+im6a/IFg5KmIeasy7PFeezJdizQaVX1i6lj8fbGY0/65pnQC5y76tAprmSjc/fduDaREpy5UX0GN5J9lFd8nBSYdU/ttZdxDELMAkGBSsOAwIaBQAwgawGCSqGSIb3DQEHATAUBggqhkiG9w0DBwQI+Phk7i7X6sOAgYjtYBUeuEET6q5T2QRoz9T726pHhjE5rR6z2r5HO6aDd1LmySC4tr7r+NrRG/MnNBj0OC84onVTQdrUItN+0fJgJ8GsIV3fECglnfIyN2Qj2FAGGQti/HTqf/aXYcdU4ccKWREq1SyAl1KOjt9H3GOC69XiXJDfKwVpPSPC6RicW5o6IbuIrIgfoIIDhzCCA4MwggLsoAMCAQICAQAwDQYJKoZIhvcNAQEFBQAwgY4xCzAJBgNVBAYTAlVTMQswCQYDVQQIEwJDQTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEUMBIGA1UEChMLUGF5UGFsIEluYy4xEzARBgNVBAsUCmxpdmVfY2VydHMxETAPBgNVBAMUCGxpdmVfYXBpMRwwGgYJKoZIhvcNAQkBFg1yZUBwYXlwYWwuY29tMB4XDTA0MDIxMzEwMTMxNVoXDTM1MDIxMzEwMTMxNVowgY4xCzAJBgNVBAYTAlVTMQswCQYDVQQIEwJDQTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEUMBIGA1UEChMLUGF5UGFsIEluYy4xEzARBgNVBAsUCmxpdmVfY2VydHMxETAPBgNVBAMUCGxpdmVfYXBpMRwwGgYJKoZIhvcNAQkBFg1yZUBwYXlwYWwuY29tMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDBR07d/ETMS1ycjtkpkvjXZe9k+6CieLuLsPumsJ7QC1odNz3sJiCbs2wC0nLE0uLGaEtXynIgRqIddYCHx88pb5HTXv4SZeuv0Rqq4+axW9PLAAATU8w04qqjaSXgbGLP3NmohqM6bV9kZZwZLR/klDaQGo1u9uDb9lr4Yn+rBQIDAQABo4HuMIHrMB0GA1UdDgQWBBSWn3y7xm8XvVk/UtcKG+wQ1mSUazCBuwYDVR0jBIGzMIGwgBSWn3y7xm8XvVk/UtcKG+wQ1mSUa6GBlKSBkTCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb22CAQAwDAYDVR0TBAUwAwEB/zANBgkqhkiG9w0BAQUFAAOBgQCBXzpWmoBa5e9fo6ujionW1hUhPkOBakTr3YCDjbYfvJEiv/2P+IobhOGJr85+XHhN0v4gUkEDI8r2/rNk1m0GA8HKddvTjyGw/XqXa+LSTlDYkqI8OwR8GEYj4efEtcRpRYBxV8KxAW93YDWzFGvruKnnLbDAF6VR5w/cCMn5hzGCAZowggGWAgEBMIGUMIGOMQswCQYDVQQGEwJVUzELMAkGA1UECBMCQ0ExFjAUBgNVBAcTDU1vdW50YWluIFZpZXcxFDASBgNVBAoTC1BheVBhbCBJbmMuMRMwEQYDVQQLFApsaXZlX2NlcnRzMREwDwYDVQQDFAhsaXZlX2FwaTEcMBoGCSqGSIb3DQEJARYNcmVAcGF5cGFsLmNvbQIBADAJBgUrDgMCGgUAoF0wGAYJKoZIhvcNAQkDMQsGCSqGSIb3DQEHATAcBgkqhkiG9w0BCQUxDxcNMDkxMDMwMTkyOTE4WjAjBgkqhkiG9w0BCQQxFgQUpmrKusX2NZGfxxYmLcKiH0XdQ7gwDQYJKoZIhvcNAQEBBQAEgYARQP9FLkZ6QkpsbpsBAaBPuC3TP/+1mPgw5nwzJax4dG5KMM2+vB60h9nDLFgtd0VcwdvFz76iyIPcc/P/Crz9qauhcee3Aq5pZHvN8YjfJ5b6+Shrj8iITVmrViPO/kDaMpGqMKd4xQj415kR5fLFZUZUT4/smPOzZ5Fauuk/XQ==—–END PKCS7—–

  • Es kijken of dit werkt…

  • @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

  • Merci Julien pour ce superbe plugin, il remplace avantageusement Ajax Edit Comments qui est lourd et payant.
    Félicitation!

  • 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 ;-)

  • 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.

  • 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.

  • 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 ?

  • Je l’ai désactivé, mais ça ne passe toujours pas.

  • 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.

  • Ok. Du coup, j’inactive la fonction pour le moment. Je réactiverai quand tu auras fait la maj.

  • Merci beaucoup pour ce super plugin !!

  • 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?

  • Have you updated the plugin ? This is exactly the problem I had before Julien updated it.

    [je me suis permis, Julien]

  • 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?

  • 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 ;)

  • 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 !)

  • I’m not sure, well I deactivated it for now since it isn’t working for me =\.

  • 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.

  • 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.

  • 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.

  • Also, do you think adding a countdown timer would be possible?

  • 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 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.

  • 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.

  • 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; ?}

  • 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).

  • 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.

  • 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?

  • @lindsey

    same here!

  • 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 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?

  • 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.

  • 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 !

  • 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 {}
    ?>

  • Let’s try this out.

  • 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 ?

Laisser un commentaire pour : Plugin Editable Comments

Connexion avec Facebook

Votre email ne sera jamais communiqué. * champs requis