• Resolved Garcia

    (@garcia)


    I’ve been fighting this issue for a few months now and it’s frustrating me on what the cause is.

    I am using the Gamipress Button add-on. There is a video in every post, after the user watches the video, there is a button that appears to “Collect Points” and watch the next video (episode). The user is redirected to the next post. A notification appears that they have received 100 points and it is logged correctly.

    However, the issue is that sometimes this doesn’t trigger as it should. I’ve created new accounts to test with. It seems like on the iPhone it has the most trouble, but sometimes on desktop it won’t trigger either.

    Here are my logs:
    https://ibb.co/3FvKxy8

    Here is the code that I have to generate a custom ID for the button:
    [gamipress_button type="submit" label="Collect BONK! Points & Watch Next Issue" id="issue_' . $nextproductid . '" class="button is-pink" onclick="location.href=\'/issue/' . $nextslug . '\';"]

    Here are my Achievement Screens:
    https://ibb.co/6RvN78b

    Here is what I have one of the Achievements set as:
    https://ibb.co/M6fDz6k

    This is what the frontend looks like in action…
    https://ibb.co/6ZMhZFX

    This is the code from web developer on the front end…
    <button type="submit" id="issue_734" class="gamipress-button button is-pink" form="" name="" value="" onclick="location.href='/issue/hoodwinked';" data-post="569" data-comment="0">Collect BONK! Points & Watch Next Issue</button>

    I tried to also do this with Gamipress Link, but I still have the same issues with it not always triggering.

    Really hope I can get this resolved.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Flavia Bernárdez Rodríguez

    (@flabernardez)

    Hi @garcia!

    Nice to talk to you today!

    Something you can try if your shortcode generated by PHP is ok is creating a test with a static shortcode. The problem could come from two sides:

    – Your PHP code
    – The browser is blocking the Javascript.

    Making the test with a static code, reduce the number of sides you have to check to get that working.

    So please, check if your static shortcode is working (typing it on a test page of WordPress) and if does, then you have to check your custom PHP code.

    Hope it helps!

    Thread Starter Garcia

    (@garcia)

    I wouldn’t mark this as resolved just yet.

    I’ve added the shortcode to vs PHP code and I am still having issues.

    1. An email is generated when the button is clicked.
    2. The notification is NOT generated like it should, and this is sporadic. Sometimes it works and sometimes it doesn’t.

    Here is the log for clicking the button.
    https://ibb.co/jLPvcW4

    It’s triggering 5 event triggers, and 8 total types of triggers for one click. Could that be the reason the notification isn’t popping up?

    Plugin Contributor Flavia Bernárdez Rodríguez

    (@flabernardez)

    May you have to perform the issue making a conflict test for discarding external conflicts. There is an explanation about how to perform this: https://gamipress.com/docs/troubleshooting/theme-and-plugins-conflict-test/

    1. If an email is generated, then check if you have email notifications activated when a user gets the achievement. That would be related to another config you have activated.

    2. Please check your javascript browser consola. It should have something to say. Anyway, that is something related to code customisation. You can give you support if you try the shortcode in a plain way. However, is you are triggering something like custom notifications and events, that is not supported by us. You will need an external agency that can help you.

    Hope it helps!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Event Triggers Inconsistently Triggers’ is closed to new replies.