Custom mycred_link functionality?

Home Forums How-to Questions Custom mycred_link functionality?

This topic contains 3 replies, has 3 voices, and was last updated by  rpetitto 9 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #33058

    Senior Member

    I’d love a way to have a “mycred_buttom”…like a link styled like a button that deducts points and triggers a custom php function. Any way to achieve this?



    You would need to use the log api im trying to work out something similar myself. Or use php sql and change the log that way, but I found it hard to grab the userid that way, so assume I need to use the api.



    Hi @rpetitto,

    You can either use the style attribute and style it as a button or quite symply wrap the shortcode around a button like so:
    [mycred_link href=""]<button>View portfolio</button>[/mycred_link]

    Cordially, M.


    Senior Member

    Thanks you two…my dilemma is that I want my button to also trigger a phone function. I think I have to use ajax? Not sure…have never done it before.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

Last edited September 13, 2017