• Resolved MBV

    (@mbv)


    Hi,
    I’m using the plugin with Buddypress User Blog plugin to give badge for “Publish a new post” 1 x times, with max earnings of 1.

    Strangely, when I test, it seems to work. But it is actually not working for most live users. Out of the last 4 users, only 1 got awarded.

    I’ve enabled debug mode and log entries to see what happens. Nothing seems be logged when the award fails to be given.

    Can I get assistance to troubleshoot?

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Contributor Wooninjas

    (@wooninjas)

    Hi @mbv

    We have double-checked the plugin by awarding badges to the administrator, editor and subscriber user roles on publishing a post using BuddyPress User Blog plugin and found that it is working fine.

    Please note that the users who have already earned that badge will not be awarded again as you set max earning to 1.

    If this is not the case then try disabling all the plugins/add-ons except BadgeOS and Buddypress User Blog plugin and publish post using BuddyPress User Blog plugin if it is working fine then enable the plugins/add-ons one by one and check if there is any conflict with any other plugins/add-on.

    Thanks

    Plugin Contributor Wooninjas

    (@wooninjas)

    Hi @mbv

    Since we have not heard from you in a while, we are now closing this thread. If you still need help, don’t hesitate to let us know.

    Thanks

    Thread Starter MBV

    (@mbv)

    Hi, thanks for helping and sorry for the delay.

    I tested again to narrow it down, and have also deactivated non-essential plugins and changed theme.

    If I only type one or two words, the badge works. Same if I quickly copy pasting text.

    I have been able to narrow the issue down to replicate consistently…simply by manually typing in text, about 50 – 100 words will do it. Maybe it’s the time spent typing and in relation to the repeated auto-save – something to do with that is preventing the badge from being awarded.

    Could you please test again with that in mind (spend about 3 minutes typing on the blog post) to see if you can replicate the issue?

    Thanks.

    Plugin Contributor Wooninjas

    (@wooninjas)

    Hi @mbv

    We have debugged it more and found that the issue only occurs when you press the “Enter” button before clicking on the publish button. Actually, BuddyPress User Blog plugin saves the posts as revisions on press “Enter” button while BadgeOS doesn’t allow rewarding badges on publishing the post with more than 1 revisions.

    Please contact BuddyPress User Blog plugin and ask them “How to avoid saving revisions on press enter button?”

    Thanks

    Thread Starter MBV

    (@mbv)

    Thank you, I have contacted them and will see what they say.

    Plugin Contributor Wooninjas

    (@wooninjas)

    @mbv

    Please add a review here for us. It will encourage us to provide better support.

    Thanks.

    Thread Starter MBV

    (@mbv)

    Done!

    Thread Starter MBV

    (@mbv)

    In regards to mending the effects of this issue and move forward:

    1. Do I simply award the badge [Publish a new post” 1 x times, with max earnings of 1] manually for the previous awards to those users that were missed by the system?

    2. Do I need to fix up and ensure that the BadgeOS database/log is correct and accurate with the actual number of blog published posts? So that the badge for example 10 Blog Posts badge achievement is counted and awarded accurately? If I need to edit, which database table would I be looking for?

    Thanks!

    Plugin Contributor Wooninjas

    (@wooninjas)

    Hi @mbv

    1. Do I simply award the badge [Publish a new post” 1 x times, with max earnings of 1] manually for the previous awards to those users that were missed by the system?
    >> Yes, you can award the badges to the users manually that were missed by the system. Please follow the steps.

    1. Go to WP Admin->Users->Edit the user whom you want to award the badge manually
    2. Search for “Award an Achievement
    3. Select achievement type and award badge to the user

    2. Do I need to fix up and ensure that the BadgeOS database/log is correct and accurate with the actual number of blog published posts? So that the badge for example 10 Blog Posts badge achievement is counted and awarded accurately? If I need to edit, which database table would I be looking for?
    >> If you have awarded the badges manually to the user then no need to edit the database tables. However, It would be better to fix that issue for future BadgeOS versions as we have added triggers to the badges data too in the BadgeOS version that we are going to release soon.

    Thread Starter MBV

    (@mbv)

    I would like to continue with a related problem on this support thread, if I may…

    For the 10 Blog Post badge, users are now being awarded this badge before they have published 10 posts in total.

    The issue is because when they edit a post after publishing and then update the post, it counts the update as a new post. I am guessing this is because I set the post revision limit to 1 in order to fix the initial bug. Do you think so too?

    If so, what can I do? Please help again asap, thanks!

    Thread Starter MBV

    (@mbv)

    Suggestion: maybe the OSBadge plugin could distinguish between newly published posts vs updated posts eg. https://wordpress.stackexchange.com/questions/48678/check-for-update-vs-new-post-on-save-post-action

    Thread Starter MBV

    (@mbv)

    I don’t know if you are monitoring this old thread and so as haven’t heard from you after 11 days, I have started a new support topic here so that it may reach your attention: https://www.ads-software.com/support/topic/accurately-distinguish-between-newly-published-posts-vs-updated-posts/

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘“Publish a new post” award not always working’ is closed to new replies.