Simon Bame

Having trouble getting myCRED to work as described in the documentation? Open a support ticket! Issues or bug reports posted in the forums will be deleted. Helping out other members or answering questions will get you free Tokens that you can use as payment in the store.

Forum Replies Created

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • in reply to: Gravity forms add points from number field. #12807
    AvatarSimon Bame

    Hi Gabriel,

    Unfortunately the code didn’t work and still at a loss in getting the field value. I have asked for support from someone who works with Gravity Forms and creates snippets which is the same chap that created the snippet that I posted above. So hopefully will have some success.

    I would like to thank you very much for your quick support and a fantastic plugin, you are correct in having the label Legend as you are.

    myCred is a wonderful plugin and is the only one which offers these features.

    I will let you know when I get a response so you can pass the support on to others if required.

    Kind regards,
    Simon.

    in reply to: Gravity forms add points from number field. #12786
    AvatarSimon Bame

    Just double checking that this goes into the functions.php of my theme?

    Thanks again.

    in reply to: Gravity forms add points from number field. #12782
    AvatarSimon Bame

    Is there any way of changing the hook to look at the value in the field rather than default value as the code snippet places it into the field (not the default value)
    That is where the problem is.

    in reply to: Gravity forms add points from number field. #12776
    AvatarSimon Bame

    Ignore that last message as the entry does update but balance does not update and snippet is in functions.php.

    Please see message before.

    in reply to: Gravity forms add points from number field. #12775
    AvatarSimon Bame

    Or maybe I got the code in the wrong place, where is it supposed to go?

    in reply to: Gravity forms add points from number field. #12771
    AvatarSimon Bame

    The same field works when I put in a number in the default value and it adds to the balance fine, but it doesn’t work when I use the populate dynamically option in advanced with the field points earned. (The mycred_amount is a hidden field but have tried it not hidden as well.)

    The only problem with setting the default value is that the points earned changes depending on the user input. Not sure how to proceed maybe it is not filling out the default value but the field itself if that makes sense?

    Thank you for your help so far, it is greatly appreciated.

    in reply to: Gravity forms add points from number field. #12757
    AvatarSimon Bame

    Ok, so I have managed to get mycred_amount field to populate dynamically using the advanced option and Allow field to be populated dynamically and then putting in the field number using a code snippet (below) I found. But because it seems to populate the field after submission it doesn’t update the user’s balance and no points are allocated at all even for submitting the form. But it shows in entries of Gravity forms that the amount box was filled out automatically.

    This is the snippet I found here https://gist.github.com/spivurno/7029518

    I did check that the mycred_amount works by putting an amount in default value and it did update the balance.

    But having trouble getting it to update from the field points earned.

    in reply to: Gravity forms add points from number field. #12691
    AvatarSimon Bame

    I see, but can I set this field (mycred_amount) to be hidden but be pre-populated by the field points earned? which is on the same form.

Viewing 8 posts - 1 through 8 (of 8 total)
11