Edit Comments
- Downloads:
- Views:
- Rating:

Edit Comments is a simple WordPress plugin that allows commenters to edit their own comments. To edit a comment, a user must have the same IP address as the user that made the comment and they must also make the edit within a specific time frame. The default edit time window is 30 minutes, but it can be changed easily in the plugin file.
If you're logged in, it will use the more feature-enhanced wp-admin comment editing screen, but if you aren't then it will just allow you to edit the content of your comment. It's a good idea to test the plugin from a logged-out view as well.
installation :
Unfortunately, the edits required to make this plugin work are fairly extensive. They don't, however, require any core edits, which means upgrading WordPress versions will not affect this plugin. I'll try to explain the edits the best I can.
1.
Upload the plugin file "jal-edit-comments.php" to your plugins folder. This folder is located at /wp-contents/plugins/
2.
Activate the plugin from your WordPress admin panel.
3.
Here's where it gets tricky. We're going to need to make some changes to the comments.php file of your theme. This file is located in /wp-content/themes/**YOUR THEME NAME***/comments.php
4.
Before we make any edits, let's make a backup of comments.php . Copy the file and name it comments-backup.php . You should now have two comment files in your theme directory, one called comments-backup.php and one called comments.php .
NOTE: For people using the default theme, Kubrick, I've included a modified copy of the comments.php file. It contains all the edits needed to make the plugin work. If you're using a Kubrick-based theme, that file may also work for you.
1. For the rest of you, it'll require quite a bit of tweaking to get it right. Make the following edits to your comments.php file:
5a. First thing to do is add the link that users will click on to edit their comments. This will be added within the comment loop. The beginning of the comment loop looks like this:
And the end of the comment loop looks like:
Anything inbetween those two bits of code will be repeated for each comment. We need to add a tag that will create the link somewhere in this loop. The code is: . An example would be:
at |
This will output the comment date and time, and then the edit link. This function is a good replacement for WordPress's edit_comment_link(). It uses the same structure and arguments.
5b. Now we need to account for three possible scenarios.
* Someone who is logged in and making a comment
* Someone who isn't logged in and making a comment
* Someone who is editing their comment (logged in or not doesn't matter)
In your file, the first 2 are already accounted for. We need to make room for the last one.
Find this: . It means there is someone logged in. The next line might be something like "
<
p>Logged in as....."
Here we go with a big edit. Delete this: And change it to:
5c. Now we need to edit the where users input their comments. Look for:
And replace it with:
5d. You're pretty much done! Now, we can just do a bit of beautification and cleanup.
We obviously don't want to have the "Leave a Reply" message as the header of the comment area if they're editing a comment. So change this:
Leave a Reply
To:
The above uses a ternary operator. Basically, if the someone is editing a comment, it will print "Edit your Comment", and if not it will print "Leave a Reply" . You could also use this technique for the submit button.
1. Break out a bottle of champagne. You just finished the installation of Edit Comments. Enjoy!
Free download from Shareware Connection - Edit Comments is a simple WordPress plugin that allows commenters to edit their own comments.
Version: 0.3 beta | Size: 102 KB | Platform: PHP, Scripts
Released Date: 03-06-2013 | Rating: 0 | Title: Edit Comments
Author Url: http://www.wordpress.org/plugins/edit-comments/
Program Info Url: http://www.wordpress.org/plugins/edit-comments/
Download Url: http://downloads.wordpress.org/plugin/edit-comments.zip
bbPress Post Topics
Mobile Comments Signature
bbPress Admin Bar Addition
All In One Social Network Buttons
Add image to Post
Toggle WWW
Simple Full Screen Background Image
Mobile App Showcase Widget
Trucking Cargo Fleet Mgmt
BanglaPress
Paint Color Insert Tool
Add Links to Pages
Zopim Live Chat Addon
Social Networks
Affiliate Programs
Animation
Auctions
Audio Systems
Banner Rotation
Blog
Bulletin Boards & Forums
Business & Enterprise
Buttons
Calendars & Events
Charts & Graphs
Chat
Classified Ad Managers
Communication
Edit Folder Comments
Edit Ghost File Comments
Simple Comments Form Template
Adobe Acrobat Plugin Comments
Adobe Acrobat Comments Plugin
Edit Comments XT - Edit Comments XT is a simple WordPress plugin that allows commenters to edit their own comments.
PHP Comment Script - Allows your visitors to leave comments
WP Ajax Edit Comments - Users can edit their own comments for a limited time, while admins can edit all comments.
Mobile Comments Signature - The Mobile Comments Signature plugin uses an efficient script to detect comments made from a mobile browser and then appends a signature to the comment.
Plugin Maker - Lets the admin to create a new blank plugin file, and start editing it right away.
Shareware Connection periodically updates pricing and software information of 'Edit Comments' from company source 'jalenack' , so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using 'Edit Comments' crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Edit Comments.
SnapCrab - Nearly every PC users need to take screenshots from time to time, whether it is for personal or professional needs. While using the basic Windows screenshot capture method is available, it is not adequate for everyone. When you want to capture ...
SeaMonkey, Portable Edition - Using the Internet has become a necessity for a majority of people, including those who do not use a PC regularly. To browse web, stream video or download online content, people often resort to using various third party apps. For example, using ...
Driver Fusion - To keep your laptop and desktop running smoothly and get the best performance out of it, it is important to pay attention to some aspects. It is quite important to ensure your PC device drivers are updated. Components like motherboards, GPU and ...
Style Jukebox - No matter if you use a computer for personal needs or work in a networked setup, listening to music is commonplace. It is required for relaxation amidst work and nearly every user indulges in it. For music playback on PC, the WMP is not the only ...
PhoXo - Even a few years back, it was mostly graphic design professionals or people involved in print media were seen using image editing applications. With digital camera prices nose-diving and mobile imaging reaching new heights, things have undergone ...
Bvckup - There is no denying the reality that computers have become a part and parcel of human existence. From education, work, entertainment and data storage, computers are required at every step of life. Safety of data is of paramount importance to PC ...
Portable SMPlayer - Using media player software is something PC users are not alien to, as it is. Even the most workaholic users indulge in listening to music tracks at times. While the WMP, which comes with Windows, may serve needs for some users, it is not ...
Hanso Player - Using a media player application to play back music files is something nearly every PC user needs to do. There are so many applications that the abundance can leave average users somewhat puzzled. If the bundled WMP does not suit your taste but ...
Privatefirewall - Everything in life has two sides to it and same can be said about technological innovations. It is quite hard to carry out most activities without resorting to the web these days. Yet the internet itself is also the reservoir of malicious ...
UltraMixer Free Edition - Sound Mixing and is a sought after profession and creating your own mix is considered to be pretty cool. With Sound Mixing profession, also known as DJing, comes the need of certain software programs which help hugely while in this profession. ...