• Resolved tdoccc

    (@tdoccc)


    Hi

    I like how when you vote a nested reply for a comment, it goes up in order.
    But it doesn’t seem to do the same for the parent comments?
    I’m using custom post types if that’s an issue.

    Also, what would be cool is if I could set a specific user to always be on top. Any push of doing this with the plugin code using something like :

    if (user_can($authorID, ‘isadmin’) == true) {

    }

    or something?

    (admin has isadmin set as ‘1’)

    https://www.ads-software.com/plugins/comment-popularity/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter tdoccc

    (@tdoccc)

    Ahh okay, I think it was because on ‘discussion’ settings you require “older” as top of the page… that seems to fix it, strangely.

    Is there any way I can make the admin always on top, for example always have 9999 upvotes but disable the voting system?

    Thread Starter tdoccc

    (@tdoccc)

    Okay even further update, uhh, yeah no problem getting the admin to always have 9999 upvotes but I don’t want people to be able to change their comment_weight.

    If I create $vars2 = array(
    ‘container_classes’ => $container_classes,
    ‘comment_id’ => $comment_id,
    ‘comment_weight’ => ”,
    ‘enable_voting’ => ”

    );

    Then that solves the problem… however I can’t seem to get an if or else to work with the render_ui?

    Thread Starter tdoccc

    (@tdoccc)

    Uhh never mind, I just needed to global $comment;

    Great plugin by the way!

    Plugin Author Paul de Wouters

    (@pauldewouters)

    Thanks! Glad you could sort it out

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Upvoted comments – only replies change position?’ is closed to new replies.