1. joey_tbf

    joey_tbf - Apr 4, 2015 Active Member VIP Member

    Credit
    Point
    I bought your add-on "Comment Each Post" I am testing it before i put it on my real forum.
    I have a question about it.

    #1 Is there an easy way to change the order of the "Comment" & "Watch Post" Links?

    I want to change the order of these
    "Like" "Dislike" "+Quote" "Reply" "Watch Post" "Comment"

    Which template do i edit. I want the Reply at the end. I think that's the best spot.
    In fact this is how i want it:
    "Like" "Dislike" "Comment" "Watch Post" "+Quote" "Reply"



    #2 How can i remove the comments from the "Forum Statistics"



    #3 Does this add-on use alot of processing power to install? In my test forum. It installed very easy. But my real forum i had a very hard time installing it. I would keep getting timed out. I had to turn off my board to install this add-on. My other forum has many posts and threads.

    I was worried maybe it didn't install well. But now it seems to be working!
    I like this add-on.


    Thanks.
     
    Last edited: Apr 4, 2015
    Loading...
  2. Brivium

    Brivium - Apr 4, 2015 XenForo Services Staff Member

    Credit
    Point
    #1: You can edit template BRCEP_post_public_controls and replace all contents with
    Code:
    <xen:require js="js/brivium/CommentEachPost/comments_simple.js" />
    
    <xen:if is="{$post.canComment}">
        <a     href="{xen:link posts/br-add-comment,$post}"
            class="BriviumCommentPoster item control comment"
            data-commentArea="#briviumCommentSubmit-{$post.post_id}"
            data-postId="{$post.post_id}">
            <span>{xen:phrase comment_verb}</span>
        </a>
    </xen:if>
    
    <xen:if is="{$post.canWatchPost}">
        <a href="{xen:link 'posts/watch-confirm', $post}" class="OverlayTrigger item control comment" data-cacheOverlay="false">
            <span>{xen:if $post.post_is_watched, '{xen:phrase BRCEP_unwatch_post}', '{xen:phrase BRCEP_watch_post}'}</span>
        </a>
    </xen:if>
    
    Which template do i edit. I want the Reply at the end. I think that's the best spot.
    In fact this is how i want it:
    "Like" "Dislike" "Comment" "Watch Post" "+Quote" "Reply"

    There button placed by XF hook system. So it isn't easy to change the button position like this.

    #2: You can remove it by go to ACP > Appearance > Template Modification > Brivium - Comment Each Post > Disable forum_list modification.

    #3: This add-on requires to rebuild database on Installation progress.

    Regards,
     
    #2
  3. joey_tbf

    joey_tbf - Apr 4, 2015 Active Member VIP Member

    Credit
    Point
    #1 No? How about adding before the xenforo hooks. Before the Post# inside the post

    Like this:
    Position 2 or Position


    Is this possible? This would be pefect

    The reason i don't want "comment" at the end is because people think it's for reply to the thread. So they always click on it. Its better in the inside. Before post#
    Then people know it's just for comment post , not for reply thread.
    Reply is better at the end because most people use right hand so the mouse is always on the right.



    #2 Good.
    #3 Good.



    Joey,
     
    Last edited: Apr 4, 2015
    #3
  4. Brivium

    Brivium - Apr 4, 2015 XenForo Services Staff Member

    Credit
    Point
    #1: You can open file \library\Brivium\CommentEachPost\EventListeners\Listener.php and find
    Code:
    $contents .= $newTemplate->render();
    Replace with
    Code:
    $contents = $newTemplate->render().$contents;
    Regards,
     
    joey_tbf likes this.
    #4
  5. joey_tbf

    joey_tbf - Apr 4, 2015 Active Member VIP Member

    Credit
    Point
    That looks better.

    Worked good thanks,


    #1 Good
    #2 Good
    #3 Good

    joey,
     
    Last edited: Apr 4, 2015
    #5