• Resolved recuerdaclub

    (@recuerdaclub)


    Hello.

    First, thanks for a really cool plugin.

    I’m looking at the option to show how to reissue karma points in each user’s profile, in which the upvotes of all posts are added and the downvotes are subtracted (as in reddit)

    Is there an option to configure this with the plugin?

    Also in the portal I use buddyboss and gamipress.

    How could I achieve this to synchronize it with an event with gamipress, I read a previous post on the forum that referred to gamipress but I did not understand the process very well.

    thanks ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author natekinkead

    (@natekinkead)

    @recuerdaclub , if you’re a bit of a developer (or you have a developer), you can use the hooks that I expose in my plugin to integrate it with other plugins.

    The one that would be helpful in this scenario is this…

    add_action( 'bbp_voting_voted', 'my_function_on_bbp_vote', 10, 4 );
    function my_function_on_bbp_vote( $post_id, $direction, $score, $identifier ) {
        // Do something
        // $post_id will be the ID of the topic or reply that was voted on
        // $direction will be 1 for upvote, -1 for downvote, or 0 for removed vote
        // $score will be the new total score
        // $identifier will be either a numeric user ID or an IP address of a non-logged-in visitor
    }
    Thread Starter recuerdaclub

    (@recuerdaclub)

    so i add that hook to functions.php

    and then how do I synchronize it with gamipress?

    I also take advantage of asking, is there a way to make the numbers and the arrows of the votes smaller, I think that in the mobile version platform it takes up a lot of space

    • This reply was modified 1 year, 7 months ago by recuerdaclub.
    Plugin Author natekinkead

    (@natekinkead)

    @recuerdaclub , you (or your developer) would have to look into the code and documentation of Gamipress. I’m not familiar with it. But, I’m guessing they are probably using some usermeta field which stores the current karma score for each user. So, you would use my hook and then inside that function, you would write code to make the appropriate adjustments to the usermeta of the current user.

    Regarding the size, I have used unique classes for all of my HTML elements so that you can manipulate look of everything with some simple CSS.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Karma Points’ is closed to new replies.