Description
This plugin allows you to add Twitter-like @reply links to comments, including a preview of the comment replied to.
When clicked, those links insert the author name and a link to the comment you are replying to in the textarea, and adds a Preview of the original comment to the @Reply (on hover using javascript).
This is a MASHUP of this and that
From the original README (Credits)
by Yus
Most of the code is taken from the Custom Smilies plugin by Quang Anh Do which is released under GNU GPL :
https://onetruebrace.com/custom-smilies
Thanks to Guillaume Ringuenet who made the arrow graphics.
I didn’t create anything new, and I do not claim so in any way.
This plugin is just a feature I wanted and thought it could interest some other people.
Screenshots
Installation
- Upload the plugin folder to the
/wp-content/plugins/
directory. - Activate the plugin through the ‘Plugins’ menu in WordPress
- Place
<?php if( function_exists( 'atrwcp_reply' ) ) atrwcp_reply(); ?>
in your comments.php where you want the link to appear. For example, before the<?php edit_comment_link(...
part. - (optional) Go to
Settings -> @Reply with preview
to see some andvanced settings and advanced uasge ofatrwcp_reply()
. -
(optional) In the
extra
folder you will find areply.png
file for dark background themes, use it to replace the default file if you need. -
(optional) Themes like the WP default theme Kubrick don’t have their comments wrapped up properly. For this plugin to work your theme’s code should really look somewhat like this:
<div class="comment-text">
<?php comment_text() ?>
</div>
if your theme only has a different class used, you can change the settings of the plugin (Settings -> @Reply with preview
) to work with that.
FAQ
- It doesn’t work ! I activated the plugin but I can’t see the reply arrows.
-
You skipped the 3rd step of the installation process. Try again. ??
- Where’s the settings for this plugin?
-
Navigate to
Settings -> @Reply with preview
. - It doesn’t work ! I can see the reply arrows but clicking them does nothing.
-
Either you have disabled JavaScript in your browser or your WordPress theme is not using the default id for the comments
<textarea>
(which iscomment
). In the later case, check yourcomments.php
file to find your textarea id, then go set that in the Options for this plugin. - It doesn’t work ! I don’t see the comment preview.
-
Either you have disabled JavaScript in your browser or your WordPress theme is not using the default class for the comments text’s encapsulating
<div>
(which iscomment-text
). In the later case, check yourcomments.php
file to find the id of the div containing the comments’ text, then go set that in the Options for this plugin.In addition, you might have to add
position:relative;
to the stylesheet definition of the DOM-elements holding the comments in order to make the preview positioning work. You can also use the custon CSS section in the plugin’s settings (eg.div.comment-text { position:relative; }
). - Possible conflicts with other plugins.
-
A plugin that filters the default WordPress comments functions, may prevent @ Reply from working. For example, WP_Identicon does this, but it also has an alternate setup for “advanced users” that doesn’t conflict with @ Reply.
- More problems?
-
Please provide some feedback @ the forums
Reviews
There are no reviews for this plugin.
Contributors & Developers
“@Reply \w comment preview” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “@Reply \w comment preview” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
0.0.41 – jQuery loading tweaks
0.0.4 – (hopefully) fixed code to autoload jQuery and included jQuery in the package so it will hopefully work with older WP versions
0.0.3 – WP wont allow commenters to use the class
attribute, so this will now be created by a filter.
0.0.2 – set ID for comment-textarea used by theme in the settings panel.
0.0.1 – initial release