• Resolved Sem

    (@svangeffen)


    Hi there,

    thanks for your nice plugin. I have a problem with the submission page. When a file has been submitted for review, then there are two buttons on the frontend page: approve and deny.

    When I click on one of these buttons, there’s no action. It also seems that the link of these buttons is ’empty’, doesn’t refer to a page or something else, just only “#”.

    Can you please take a look at this.

    Thanks in advance,

    Sem.

    https://www.ads-software.com/plugins/badgeos/

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

    (@tw2113)

    The BenchPresser

    Sorry for the brief delay svangeffen, was out of town at WordCamp San Francisco when you posted this. Playing catchup.

    Did you ever find a solution on your own to this? If you know about the javascript console in Firefox or Chrome, does it look like there are any errors related to this action? Also if you have a link I could check out, that’d help as well.

    Thread Starter Sem

    (@svangeffen)

    Hi Michael,

    no problem! I didn’t figure out, but I decided to use the backend of the site to approve / deny submissions, which works alright.

    Michael Beckwith

    (@tw2113)

    The BenchPresser

    Awesome. I’ll mark resolved for now.

    I’m having this same issue. The console is saying:

    Uncaught ReferenceError: badgeos_feedback is not defined badgeos-achievements.js?ver=1.1.0:4

    Neither Approve nor Deny work.

    Hi,

    I am using the latest version of BadgeOS and the approve/deny buttons do not work onthe front end and only a hashtag appears at the end of the URL “#”. Perhaps this issue should be re-opened. Thanks.

    Best regards,
    Belal

    Michael Beckwith

    (@tw2113)

    The BenchPresser

    Hi guys.

    Nah, the buttons should end with # as they’re not meant to take you anywhere.

    However, could either of you confirm whether you see something similar to

    var badgeos_feedback = {"type":"nomination","limit":"10","status":"all","show_filter":"1","show_search":"1","show_attachments":"false","show_comments":"false","ajax_url":"\/wp\/badgeos\/wp-admin\/admin-ajax.php","user_id":"1"};

    when you click view-source on your browser of choice? It’ll be towards the bottom of the output. Assuming I wouldn’t need to be logged in, I could double check as well if you provide urls.

    Also, just for some extra potential help, what attributes you’re using with the shortcodes to display these.

    Hi – I’m having this issue as well and no, I can’t find anything like that.

    Michael Beckwith

    (@tw2113)

    The BenchPresser

    Mona, what browser are you using? Are you familiar with the javascript console at all? If you’re on Chrome, you can access it via cmd+option+i on mac and I believe ctrl+shift+i or F12 on windows. If firefox, cmd+option+i. Once open, click the “console” tab. Once that’s open, could you refresh your page and tell me or screenshot any errors that come up.

    I’m thinking these cases may be javascript errors and this will help us determine where it’s failing for some people.

    Hi Michael,

    I’ve tried this in chrome, firefox as well as safari. It doesn’t work in any of them.

    I am not all that familiar with the javascript console, but followed your directions and just reloading the page didn’t cause any errors.

    But, when I clicked on the link to approve a submission I get an error.

    I was unable to find “var badgeos_feedback” in the source of my page.

    I’m not using any shortcodes to display the page. I just click on “View Post” after saving the page. Here’s the URL I’m working with: https://www.kag.org/service-record/demonfleet/

    Michael Beckwith

    (@tw2113)

    The BenchPresser

    Hrm, in both cases, Mona and qurgh, it looks to be that the wp_localize_script() code is not being loaded, or at least something else is failing to load and thus preventing it.

    I’m not seeing it myself, but it may be because I’m not logged in. Are either of you seeing badgeos-achievements.js being loaded when you check your browser developer tools or with view-source, when logged in?

    Yes, I do. – <script type=’text/javascript’ src=’https://darlingpropaganda.com/wp-content/plugins/badgeos/js/badgeos-achievements.js?ver=1.1.0′></script&gt;

    Let me know if you need to see more then that.

    Michael Beckwith

    (@tw2113)

    The BenchPresser

    As I’ve noted on GitHub for sure, I believe this is an ajax issue that we need to look into and confirm.

    Thanks! ?? Hope it’s figured out soon. I really like BadgeOS!

    So – I deleted a badge and redid it and now it works. Going to try with a few more. Sucks to redo them all, but would be worth it if it made them work. I’ve no idea why this happened. I noticed that when I was playing with the badgeOS log that every time a certain badge was awarded, it was also triggering another, unrelated badge. Weird.

Viewing 15 replies - 1 through 15 (of 29 total)
  • The topic ‘Buttons approve / deny not working (frontend)’ is closed to new replies.