Support » Plugin: GamiPress » Points Types – Site Interactions

  • Resolved amladenis

    (@amladenis)


    Hi,

    I am facing a problem with the Points Types related to Site Interactions. I created a Point Type with the name Reads, I created a Rank Type Reads and I have 3 Ranks related to Reads (Basic, Medium and Premium).

    I am trying to award my users with points whenever they visit posts. I tried all the options from the Site Interaction, but my users do not get points. Do I have a wrong configuration? Is it possible any other plugin causing this problem?

    My current configuration on the Point Type is:
    When “Daily visit any post” “1” times limited to “Unlimited”
    Earn “100” reads with maximum number of times to earn of “0”.

    Any guidance will be appreciated.

    P.S. Is it possible to trigger the points through REST API by getting a post?

    Thank you.

    • This topic was modified 3 weeks, 2 days ago by amladenis.
    • This topic was modified 3 weeks, 2 days ago by amladenis.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author rubengc

    (@rubengc)

    Hi @amladenis

    Is posible that you miss that “Daily visit any post”, as it names says, is limited to work only daily

    Have you tried to create a new post and visit it?
    Have you tried with a different or a new account?

    Also, if none of the previous ways don’t work is possible that there is an issue caused by another plugin, so you may require a theme and plugins conflict test

    Also, regarding the Rest API everyhting is explained here including routes built-in as well as routes in our Rest API Extended add-on:
    https://gamipress.com/docs/advanced/rest-api/

    Hope it helps

    Best regards

    I deactivated all the plugins and activated them again and now seems to be working. At least that’s a progress.

    What I am trying to achieve is the following. I want to have a custom resource on the WP REST API to trigger the points. I have created the resource and as a callback function I want to call the plugin function for the post visits. I found out these functions
    gamipress_expend_points_listener($post_id, $user_id, $points, $points_type);
    gamipress_award_points_to_user( $user_id = 0, $points = 0, $points_type = ”, $args = array() )

    With which functions do you award points to the user?

    Thank you.

    • This reply was modified 3 weeks, 1 day ago by amladenis.
    Plugin Author rubengc

    (@rubengc)

    Hi @amladenis

    Our Rest API Extended add-on includes endpoints to award/revoke points

    There is the add-on page:
    https://gamipress.com/add-ons/gamipress-rest-api-extended/

    In addition, in the add-on documentation you can check all new endpoints and posibilities:
    https://gamipress.com/docs/gamipress-rest-api-extended/

    Hope it helps

    Best regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.