• jimme595

    (@jimme595)


    Hi, in the changelog for v1.1 it says this problem is fixed but I have that version and can’t update the number of times from 1 for a specific achievement of type when the add-on is activated. Another strange problem I get is a load of code appearing in the badge description field if I toggle from visual to code. This appears:

    <div id="yui3-css-stamp" style="position: absolute !important; visibility: hidden !important;"></div>
    <div id="s2s">
    <div id="s2s-flyout" class="s2s-flyout-row dialog-box bottom" style="left: 0px; top: -38px;">
    <div id="hover-mask"></div>
    <ul>
    	<li id="searchlight-search" class="searchlight-search blr4 brr4"><a class="blr4 brr4" title="Web Search" target="_self"><span id="Web Search"> </span></a></li>
    </ul>
    </div>
    <a id="s2s-dummy-link" class="s2s-hide" target="_blank"></a></div>

    https://www.ads-software.com/plugins/badgeos-learndash-add-on/

Viewing 15 replies - 1 through 15 (of 16 total)
  • Michael Beckwith

    (@tw2113)

    The BenchPresser

    Not sure on the markup stuff showing up. It’s nothing coming from BadgeOS.

    Can you type out exact steps you’re taking so I can see about reproducing, regarding the steps.

    Thread Starter jimme595

    (@jimme595)

    Ok so I have BadgeOS 1.4.7, BadgeOS LearnDash Add-On v 1.0.1. Learndash v 2.1.4 and also the Congratulations add-on for BadgeOS incase that is helpful to know.

    So I have 10 quizzes in Leandash. I want my users to be able to complete the quizzes in any order. But if they complete 1 quiz they get a badge, 3 quizzes they get a badge, 6 they get a badge, 10 they get a badge.

    The only way I could see to do this was to create two achievement types. Achievement type A has 10 badges that are awarded every time the user completes a quiz, but are hidden to the user. Achievement type B is public and is awarded when the user gets an achievement of type ‘A’ a certain number of times.

    So for instance if the user completes 3 quizzes he will have three achievements of type A and will get awarded 2 achievements of type B (one for completing 1 quiz and one for completing 3 quizzes). However in the ‘required steps’ tab for type B badges I select ‘any achievement of type’ then select ‘A’ then change the number of times from 1. Hit save, all looks fine, then hit update post (or leave the post and come back to it), and the number has changed to 1.

    Michael Beckwith

    (@tw2113)

    The BenchPresser

    One thing to note, the changelog bullet point in 1.0.1 was no related to the value being saved, but to whether or not the input was disabled appropriately.

    That said, I believe I inadvertently caused this issue when I was trying to fix related UI issues.

    Could you please try with this copy? https://github.com/opencredit/BadgeOS-LearnDash-Add-on/archive/required-count-fix.zip and let me know if your issues are resolved. If they are, then I’ll get this fix released to everyone soon.

    Thanks for reporting the issue as well. I appreciate it.

    Thread Starter jimme595

    (@jimme595)

    Hi, that new version didn’t help for me, the number of times still reverts to 1 after updating the post.

    Just to note for others as I mentioned this earlier the code that was being entered in to my editor was caused by browser adware that I’ve now got rid of!

    Michael Beckwith

    (@tw2113)

    The BenchPresser

    Not sure what’s going on at this point then, because I’m managing to get it to save at this point after my edits.

    Thread Starter jimme595

    (@jimme595)

    Ok are you sure you posted the correct fix then? I honestly can’t save the field to more than 1 in ‘any achievement of type’ when I have this plugin activated.
    Thanks

    Michael Beckwith

    (@tw2113)

    The BenchPresser

    Yep, I linked to the correct zip/branch.

    Let’s try this. If you could please. Walk me through what you’re doing to create this achievement where it’s still happening. Provide me the value that you select for each part of the step creation, and what buttons you click afterwards.

    Example:
    Learndash Activity.
    Fails Quiz
    Any Quiz
    6 times.
    Click save steps.
    Click update post.

    Thread Starter jimme595

    (@jimme595)

    I enter:

    Any achievement of type
    Select ‘Type A’
    3 times
    Click save steps
    Click update post
    result: times reverts to 1.

    For Type A achievements I enter:

    Learndash Activity
    Pass Quiz
    Quiz Name
    1 time
    save
    update

    Hi Michael

    I had the same problem as jimme595: I could not save the number of “times”. I then installed your fix and now I can save it, your fix works well for me.

    BUT: I have another thing (bug) that does not work:

    If I set the roule:

    Learndash Activity
    Pass Any Quiz
    5 time(s)

    all works fine.

    If I want to address a specific quiz, I can’t even set a number in the field “times” (this field is locked to the value 1):

    Learndash Activity
    Passed Quiz
    “Quiz name”
    1 time(s)

    Is this a bug? Could you please help me with that? Thanks a lot
    Dominic

    Michael Beckwith

    (@tw2113)

    The BenchPresser

    I’ve never managed to figure out why original developers purposely limited it to 1, and it’s something that’s been in the plugin since before I came on to help with support for it. The limiting itself is not a bug.

    Thanks Michael

    I found a workaround. I post it here, perhaps it can help other users with the same issue.
    Set an invisible achievement type (“event-counter”) that is earned if:

    Learndash Activity
    Passed Quiz
    “Quiz name”
    1 time(s)

    and than set up a rule in the achievement I want to give my users for passing the Quiz “Quiz name” 10 times:

    Specific Achievement of Type
    event-counter
    10 time(s)

    This works fine.

    Best
    Dominic

    Michael Beckwith

    (@tw2113)

    The BenchPresser

    Doesn’t solve the overall issues at hand, to be fair, but it is one way to get around it at the moment.

    Are there other (better) ways? If yes, could you tell me how?

    Thanks
    Dominic

    Michael Beckwith

    (@tw2113)

    The BenchPresser

    None i know of at the moment.

    I am having the same problem with the Sensei add-on.

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Can't update 'times' field in required steps’ is closed to new replies.