Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author myCred

    (@designbymerovingi)

    Hi.

    In order for you to award points for users clicking on links, you must present links using the mycred_link shortcode.

    So instead of using:

    <a href="https://someaddress.com/">Click to get 1 point</a>

    you would use:

    [mycred_link href="https://someaddress.com" amount="1"]Click to get 1 point[/mycred_link]

    The mycred_link shortcode will generate a normal anchor element but it also will mark the link and load the AJAX script that will monitor this link (and others) and if someone clicks on them, award points accordingly. Without this, it would be impossible for myCRED to know which link gives points and which does not.

    The mycred_link shortcode supports the same HTML attributes as the normal anchor element so you can use target=”” title=”” etc.

    In order to avoid misuse of this system, myCRED will attach an encrypted key to each link that is generated using this shortcode and it is highly recommended that on the myCRED > Hooks page you set a limit for clicking on links. I would recommend you use “Limit by ID” and add a unique ID to each shortcode.

    I would like to first thank you for all your hard work and dedication to this wonderful plugin.

    I am currently having a problem with points generating when users click on the mycred link.

    I have created a second Point type and I have activated the Hook to allow users to generate points for clicking on links, but the no points are being generated.

    When I activate the same hook on the first point type it generates the points, but the points will not generate for the second point type.

    Any ideas on what I can do to fix this? I have been trying to fix this for three days now.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Points for clicking on link’ is closed to new replies.