Download the latest version of the plugin, paste the code into the Textpattern Admin → Plugins panel, install and enable the plugin.
To uninstall, delete from the Admin → Plugins panel.
<txp:peg_comments />
In the comments_display
form, replace your <txp:comments />
with <txp:peg_comments />
.
Attributes are the same as <txp:comments />
.
See here for more informations.
<txp:peg_child_comments />
in your comments
form, add <txp:peg_child_comments />
at the end. Duplicate whatever attributes you used for <txp:peg_comments />
.
<txp:peg_reply_link />
Also add <txp:peg_reply_link />
wherever you see fit; this generates the link to reply to the comment.
<txp:peg_reply_to />
finally, insert <txp:peg_reply_to />
somewhere in your comment_form
form.
wraptag="span"
(default: span)- used to wrap the generated label, input and links;
class=""
- applied to the wraptag;
label="Your label"
(default: Replying to)- used as the value of the
<label>
HTML tag;
- used as the value of the
back="Go the initial comment"
(default: #)- used as a link to the comment you are replying to;
close="Unchain"
(default: ×)- used as for link which allow to break the link to the comment you were replying to;
- add the
.peg_replyto_inactive
to #peg_replyto_wrap.
Use .peg_replyto_active
and .peg_replyto_inactive
classes to to hide or alter the display of this tag content in your comment form. .peg_replyto_active
is used on reply, .peg_replyto_inactive
on simple comment; the second one should be enough to do the following.
Blur the content on simple comment (not a reply)…
.peg_replyto_inactive { opacity: 0.6; }
…or hide it with…
.peg_replyto_inactive { display: none; }
…or…
.peg_replyto_inactive { visibility: hidden; }
Made Txp4.5 compatible by Oleg Loukianov from a Margaret Trauth’s code.
Many thanks to all additional contributors.