Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter rlilleker

    (@rlilleker)

    Michael,

    Thanks for your reply.

    I’ve just tested it with the following scenarios:

    1. Set up achievement A and achievement B
    To earn achievement A, user must:
    a) Comment on a post
    b) Earn achievement B (which can be claimed by activity code)

    2. Set up achievement A, achievement B and achievement C
    To earn achievement A, user must:
    a) Earn achievement B (which is admin-awarded only)
    b) Earn achievement C (which can be claimed by activity code)

    Both test cases worked as expected and the user was automatically awarded with the correct achievement after completing the steps required.

    So, perhaps your theory about the log-in not counting is correct?
    Thanks
    Richard

    Unfortunately, I’m still experiencing the ‘badgeos_feedback’ is not defined error when clicking on the ‘Approve’ or ‘Deny’ buttons.

    Checked my version of badgeos_achievements.js file and the code is up-to-date.

    Am I perhaps missing something?

    Thread Starter rlilleker

    (@rlilleker)

    I’ve made a little more progress…

    The achievement which was returned the “No access” error message when the activity code was entered was a single achievement which was also a step for earning another achievement.

    Here’s how it was setup:

    Achievement A

    Requires Steps (in order):

    1. Login to website
    2. Claim Achievement B

    Achievement B
    Earned by entering activity code

    Correct me if I’m wrong, but my theory was that a user would be able to obtain Achievement A by firstly logging into the website and then claiming Achievement B by entering an activity code. Upon entering the code and being awarded with achievement B, the user should automatically be awarded with achievement A.

    However, when entering the code for achievement B, the “No access” message was being displayed.

    I went into Achievement A and removed step 2, leaving only the login step. I then re-added the second step which requires the user to claim achievement B.

    Strangely, after do this, I was able to claim achievement B by entering the activity code without any problems.

    Do you have any ideas what may have caused this issue?

    I hope this helps – I’m guessing there could be some sort of conflict somewhere in the code?

    Thanks
    Richard

    Thread Starter rlilleker

    (@rlilleker)

    Just to add….it looks like the “no access” error message is being triggered by the badgeos_activity_code_submit function in the activity codes achievement-functions.php file.

    It checks to see if a user can earn the achievement:

    badgeos_user_has_access_to_achievement( $user_id, $achievement->ID )

    and if not, it fires the “No access to [ACHIEVEMENT NAME] at this time” error message.

    I’ve looked through the badgeos_user_has_access_to_achievement function in the rules-engine.php file and can’t seem to see any reason why it would be returning a false value.

    Thread Starter rlilleker

    (@rlilleker)

    The achievement only has the activity code as the requirement.

    Thanks
    Richard

    Thread Starter rlilleker

    (@rlilleker)

    Hi,

    We’re currently running WordPress version 3.9.1 with BadgeOS version 1.3.3 and Activity Codes add-on version 1.0.0.

    We were wondering if the add-on is multi-site compatible?

    Thanks
    Richard

    Can’t seem to access the premium forum, unfortunately.

Viewing 6 replies - 1 through 6 (of 6 total)