Hi @ravals
Our Link add-on includes some events normally called “Get a click” that allows you to award to the post author of the post where the link is placed
But, there is no way yet to place a link to award to a specific user with our Link add-on
This is just posible with our Transfers add-on that has a feature to place links that allows to your users transfer points to a specific user (like a “donate” button)
There is the Transfers add-on page:
https://gamipress.com/add-ons/gamipress-transfers/
Best regards
Thread Starter
Raval
(@ravals)
Thank you for your response.
However, I mean adding a function that adds points for clicking a link with the gamipress class, but ignores the click of your own link. I’m not a programmer, and the script does not work, but I hope it will illustrate to some extent what I mean.
if (get_current_user_id ()!= bp_displayed_user_id ())
{
add_action ('wp_enqueue_scripts', 'gamipress_link_enqueue_scripts', 100);
}
Is this option available? If not, can I count on advice how to do it?
-
This reply was modified 7 years ago by
Raval.
Hi @ravals
This function (described on the plugin readme) is to enqueue a javascript file that has the code to handle the click event but this line doesn’t awards anything
As I already mentioned you, the unique to reach something similar is through our Transfers add-on, other way implies a custom development and we don’t offer support for this type of customizations
Best regards