Results 1 to 5 of 5

Thread: Reply comment

  1. #1
    Casual Pligger micxuy's Avatar
    Joined
    May 2007
    Posts
    87
    Thanks
    Received:0
    Given: 0

    Reply comment

    Hello all;

    As we know Pligg have the function "Reply" in comments, but if many people reply on one comment, it should be very long. So there is any way we can move the Reply link into even under the sub-comments? Eventhough it is the same form like if we click on the Reply in the parent comment but would be more covenient if there are too many reply comments right?

    Thanks

  2. #2
    Pligg Founder/Coder/Designer Yankidank's Avatar
    Joined
    Dec 2005
    Location
    San Francisco, CA
    Posts
    5,531
    Thanks
    Received:88
    Given: 14
    Site
    http://pligg.com/demo/
    I'm not sure if I am following you right, but let me take a stab at interpreting your question.
    You think that by allowing people to reply to a specific comment using the reply to comment function, a lot of sub-comments will appear under that comment. Because of this legitimate second replies that aren't subcomments are being pushed down below the subcomments and are getting missed. So you want to have a way so that when people click the reply to specific comment button it posts their reply at the very bottom, not directly underneath the specific comment?

    Digg has this issue, a lot of abuse from people who comment on the first comment of the story just so their comment appears near the top. I think the best way to fight it is to just remove the reply link from the comments alltogether and make users post to the form at the bottom.
    The Facebook Module for Pligg CMS!
    Register, Login, and Submit Stories with Facebook. An absolute MUST HAVE for all Pligg sites!

  3. #3
    Casual Pligger micxuy's Avatar
    Joined
    May 2007
    Posts
    87
    Thanks
    Received:0
    Given: 0
    Thx for your reply.

    But please take a look at this picture


  4. #4
    Pligg Donor redwine's Avatar
    Joined
    Jul 2007
    Posts
    214
    Thanks
    Received:0
    Given: 0

    Reply to Comments

    I believve that you want to add a "reply" link to the sub-comments.

    Open /templates/yourtemplate/comment_show.tpl, and look for the line <div class="comment-info">

    Modify the code as follows (modifications and additions are in red) :

    Code:
    <div class="comment-info">
      {if $comment_parent >= 0 && $current_userid neq 0}
       <a href = "javascript://" {if $comment_parent eq 0}onClick="var replydisplay=document.getElementById('reply-{$comment_id}').style.display ? '' : 'none'; document.getElementById('reply-{$comment_id}').style.display = replydisplay;"{else}onClick="var replydisplay=document.getElementById('reply-{$comment_parent}').style.display ? '' : 'none'; document.getElementById('reply-{$comment_parent}').style.display = replydisplay;"{/if}>{#PLIGG_Visual_Comment_Reply#}</a>
       <div id="reply-{$comment_id}" style="display:none;" align="left">
        <fieldset><legend>{#PLIGG_Visual_Comment_Send#}</legend>
         <form action="" method="POST" id="thisform" style="display:inline;">
          <label>{#PLIGG_Visual_Comment_NoHTML#}</label>
          <textarea name="reply_comment_content-{$comment_id}" id="reply_comment_content-{$comment_id}" rows="3" cols="55"/>{$TheComment}</textarea><br/>
          <!-- {if $Spell_Checker eq 1}<input type="button" name="spelling" value="{#PLIGG_Visual_Check_Spelling#}" onClick="openSpellChecker('reply_comment_content-{$comment_id}');" class="submit"/>{/if} -->
          <input type="submit" name="submit" value="{#PLIGG_Visual_Comment_Submit#}" class="submit" />
          <input type="hidden" name="process" value="newcomment" />
          <input type="hidden" name="randkey" value="{php}echo rand(1000000,100000000);{/php}" />
          <input type="hidden" name="link_id" value="{$comment_link}" />
          <input type="hidden" name="comment_parent_id" value="{$comment_id}" />
          <input type="hidden" name="user_id" value="{$current_userid}" />
         </form>
        </fieldset>
       </div>
      {/if}
    It works.

  5. #5
    Casual Pligger micxuy's Avatar
    Joined
    May 2007
    Posts
    87
    Thanks
    Received:0
    Given: 0
    Wow it works; but there are any way to show the form uderneath of the reply sub-comment?

    Thanks a lot

Similar Threads

  1. Reply to comment code
    By urbn in forum Questions & Comments
    Replies: 4
    Last Post: 11-09-2011, 12:20 PM
  2. Anonymous reply to comment
    By bijiny in forum Questions & Comments
    Replies: 0
    Last Post: 10-13-2008, 04:36 PM
  3. Editing a reply to a comment?
    By bbrian017 in forum Questions & Comments
    Replies: 0
    Last Post: 01-10-2008, 01:30 PM
  4. Reply to a reply to a comment?
    By AshMCairo in forum Questions & Comments
    Replies: 6
    Last Post: 08-09-2007, 08:39 AM
  5. One reply per comment
    By tbones in forum Questions & Comments
    Replies: 0
    Last Post: 05-21-2007, 03:37 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Pligg Modules and Pligg Templates from Pligg Pro Web Hosting Services by Midphase Dreamhost Web Hosting Donate to Pligg