WordPress.org

Ready to get started?Download WordPress

Forums

A simple plugin request (quote reply) (8 posts)

  1. Truth
    Member
    Posted 8 years ago #

    Okay, I'm not sure if it is simple actually =x

    But I'm looking for a plugin that is similar to the Quote comment plugin (http://www.viper007bond.com/wordpress-plugins/quote-comment/)

    I do not know how to edit the plugin to suit my needs so, it's something like

    I have a "Reply to comment" link after every comment and when someone clicks onto the link, it adds

    [Reply to comment by Jane]

    to the text area (if it does not add, it's all right too)

    and then the visitors can reply type their reply below it.

    this
    [Reply to comment by Jane] will be render as

    <p class="replycomment">Reply to Jane

    when the comment is posted just as any other comment.

    Is there such a plugin? Possible to do something like this? I tried to use a "reply comment" plugin but does not work on my blog, I can't get it to work, thus I'm using this easier way to reply to comments.

    Thank you :)

  2. Modifying mine to suit your needs will work.

    However, you cannot have "[Reply to comment by Jane]" as what if Jane has two comments on a post? Gotta have an ID. ;)

    Anyway, at the top of my plugin are variables to modify the placeholder. And to change it from a <blockquote> to <p class="replycomment">, just do a search/replace. ;)

  3. Truth
    Member
    Posted 8 years ago #

    Ohhh.. okok..I think I get what you mean but er.. I don't want to quote what the person is saying.. For your plugin, it's like you quote the comment of the person you're replying to right? But, I don't want to do that.. I just want it to have

    <p class="replycomment">Reply to Jane</p>

    My reply here

    that's it without the quoted comment, any idea how to go about editing the file?

    thanks :)

  4. Oh, I see.

    Open up your theme's comments.php and add this somewhere within the comment loop:

    [edit] Grr, this forum isn't displaying my code right. You can find the correct code right here. [/edit]

    Assuming I typed that right, it should work. :)

  5. Truth
    Member
    Posted 8 years ago #

    Thanks, I tried that but didn't work though.

    When I click on reply, nothing appear in the text area :(

    My text area has a id="comment"

    so I don't see why it doesn't work.

    Is it because of this <a href="#commentform"

    I have the id="commentform" in my form tag, I don't know why it's not working. any idea?

    Thanks :)

  6. It's throwing a Javascript error as I coded it wrong. Try this:

    http://wordpress.pastebin.com/649330

    I edited the HTML of your site via a Firefox plugin and it seems to work, however it disappears right after. Other Javascript is causing this to happen, perhaps the clickable smilies stuff.

  7. Truth
    Member
    Posted 8 years ago #

    It's working now!! =D

    Hmm. did it? I tried it on my Firefox and IE and it didn't disappear though?

    Thank you :)

  8. It may just have been because I was using a live edit of your HTML.

    Glad you got it working! :D

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.