Forum Replies Created

Viewing 15 replies - 16 through 30 (of 388 total)
  • Plugin Contributor Wooninjas

    (@wooninjas)

    Hi @justjesshere , @russelljcgps

    Apologies for the delayed response as we have been busy updating the plugin and launching our new website.

    Awarding badges based on other achievement is built-in in BadgeOS. Please follow the steps below.

    – Go to Dashboard -> BadgeOS -> Achievement type -> Create a new Badge
    – Select Completing Steps as earned by option
    – Go to the required steps section and select trigger “Specific Achievement of Type”
    – A new dropdown will appear, to select the Achievement type
    – After selecting the achievement type, another drop down will appear to select the badge that must be earned by the user in order to earn this new badge.
    – You can also add more prerequisite achievement/badges that user must be earned prior

    See Screenshot: https://drive.google.com/a/wooninjas.com/file/d/1BJj8zTSnmD0kGTXTCJYiNH1qpxm_YFsP/view?usp=drivesdk

    You can also use below triggers:
    – Any achievement of type: To award badges on earning any badge/achievement of the specific type
    – All achievement of type: To award badges when the user has earned all the badges of any specific achievement type

    Thanks

    Plugin Contributor Wooninjas

    (@wooninjas)

    Hi @russelljcgps,

    we are working on the BadgeOS new version which will be released soon.

    We have double-checked the add-on and found it is working fine. Please elaborate your issue a bit more.
    What specific BadgeOS trigger is not working?

    Thanks

    Plugin Contributor Wooninjas

    (@wooninjas)

    @jdembowski, I apologize for this. We completely overlooked this part of the guidelines, but we are the official support partners for the plugin and from what we have seen, it is a common practice to ask for the credentials, but of course not on a public forum. We will be careful next time.

    Plugin Contributor Wooninjas

    (@wooninjas)

    Hi @violinspiration,

    It seems that you are using BadgeOS achievement widget to display the achievements. Please make sure to select the badge type to display the badges on front-end widgets.

    See screenshot: https://drive.google.com/a/wooninjas.com/file/d/1GCyLUiZWf-1LqEKyGzSh5YE49Vpku6Q-/view?usp=drivesdk

    Thanks

    Plugin Contributor Wooninjas

    (@wooninjas)

    Hi @sararee,

    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

    Plugin Contributor Wooninjas

    (@wooninjas)

    Yes, BadgeOS plugin calculates the total number of user posts each time after a user post is published, and give an award if there is a match.

    BadgeOS saves users posts count to user meta table, so for example, if you have set 10 publish posts to award a badge. The user will be awarded a badge when published 10 posts and on publishing the 11th post, 12th post and so on as System checks the total count of the published posts. We will fix this issue too in the upcoming release.

    For now, you can set the badge max earning to 1 to avoid awarding badges to 11th published posts.

    Thanks

    Plugin Contributor Wooninjas

    (@wooninjas)

    Hi @mbv,

    Thanks for pointing us to this issue. We will fix the issue in the future release.

    Quick Fix:
    Add the below code snippets to active theme’s functions.php file. It will restrict BadgeOS to increase trigger count when existing posts/pages is updated.

    /**
     * Remove existing action hook
     */
    function remove_my_action(){
        remove_action( 'publish_post', 'badgeos_publish_listener', 0 );
        remove_action( 'publish_page', 'badgeos_publish_listener', 0 );
    }
    add_action( 'admin_init', 'remove_my_action' );
    
    /**
     * Listener function for post/page publishing
     *
     * This triggers a separate hook, badgeos_new_{$post_type},
     * only if the published content is brand new
     *
     * @since  1.1.0
     * @param  integer $post_id The post ID
     * @return void
     */
    function custom_badgeos_publish_listener( $post_id = 0 ) {
    
        // Bail if we're not intentionally saving a post
        if (
            defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE // If we're autosaving,
            || wp_is_post_revision( $post_id )            // or this is a revision
        )
            return;
    
        // Bail if we have more than the single, ititial revision
        $revisions = wp_get_post_revisions( $post_id );
        if ( count( $revisions ) > 0 )
            return;
    
        // Trigger a badgeos_new_{$post_type} action
        $post = get_post( $post_id );
    
        do_action( "badgeos_new_{$post->post_type}", $post_id, $post->post_author, $post );
    
    }
    add_action( 'publish_post', 'custom_badgeos_publish_listener', 0 );
    add_action( 'publish_page', 'custom_badgeos_publish_listener', 0 );

    Thanks

    Plugin Contributor Wooninjas

    (@wooninjas)

    Hi @sararee,

    You can use below function in Example.php file to add the additional points to the user’s account.

    badgeos_update_users_points( $user_id, $new_points )

    Other Useful Functions: https://badgeos.org/developers/functional-docs/interacting-with-user-data/

    Thanks

    Forum: Plugins
    In reply to: [BadgeOS] Community Add-on
    Plugin Contributor Wooninjas

    (@wooninjas)

    Hi @canadabri

    The current version of the add-on doesn’t have any compatibility issues with the latest version of WP/BadgeOS/BuddyPress/BBPress. However, we will update the repo soon with more interesting features.

    Thanks

    Plugin Contributor Wooninjas

    (@wooninjas)

    Hi @jguenther,

    We are going to release the new version of the add-on soon which will fix the mentioned issue so that Quiz badge (triggering Minimum Percentage Grade on a Quiz) will be awarded automatically when admin approve and award the points to the essay question. Thanks for pointing us to this issue.

    Just to inform: If any quiz has the passing percentage, let’s say 50% then Quiz and Course will be completed on the front end if user reached that threshold (50% – without adding essay question’s points). So the course badge and quiz badge will be awarded simultaneously.

    Thanks

    Plugin Contributor Wooninjas

    (@wooninjas)

    hi @airathalitov,

    We are going to release the new version of the add-on soon which will fix the PHP 7.2 compatibility issues. Thanks for pointing us to this issue.

    Plugin Contributor Wooninjas

    (@wooninjas)

    Hi @robnz,

    To award badges on completing a lesson, follow the steps:

    1. Go to Dashboard -> BadgeOS -> Badges (Badge Type)
    2. Create a New Badge
    3. On required steps, Select Learndash Activity -> Completed Lesson -> Specific Lesson or Any lesson (If you want to award on completing each lessons). See screenshot
    4. Save Required steps and publish the badge
    5. Now, that badge will be awarded to the user automatically when they complete the lessons

    Thanks

    Plugin Author Wooninjas

    (@wooninjas)

    Hi @pepijnkosman

    The add-on saves the schedules automatically so you won’t need to click on the save button. However, It is a PHP version compatibility issue and we are on it. We are going to update the add-on this week which will fix the issue.

    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.

    Plugin Contributor Wooninjas

    (@wooninjas)

    Hi @ccprog

    Our team of developers is currently working on BadgeOS – Gutenberg compatibility. We aim to do the bulk of the work so you won’t have to. BadgeOS team plans to facilitate all our current users, so in case you end up in a problem, we will be happy to help.

Viewing 15 replies - 16 through 30 (of 388 total)