• Is there any way for an administrator to add badges in bulk to several users?

    I’m a teacher and am using this plugin for my classes, so it is important for me to be able to award some badges for things that happen outside of the website. Going in and awarding an achievement to each student through their profile is very time consuming.

    Just wondering – the plugin is great overall! Thanks for providing it.

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

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

    (@tw2113)

    The BenchPresser

    Hi jshideler,

    Sadly, we don’t presently have any sort of UI for bulk awarding for multiple users at the same time. It would be possible and pretty straightforward using code, but I can’t expect all of our users to know how to do that and know how to troubleshoot/customize to their own needs either.

    I do have bulk awarding down as a requested feature/enhancement but nothing has been done with it yet.

    Thread Starter jshideler

    (@jshideler)

    Hey Michael,

    Thanks for the quick reply.

    I don’t suppose you could tell me which database tables house the badge/user relationships? I might be able to figure something out from there but was unable to spot it during brief glance through my site’s database.

    Michael Beckwith

    (@tw2113)

    The BenchPresser

    If you’re comfy with coding, I’d recommend doing the following.

    Do a query for the user(s) you want, and then loop over those users, and pass the user IDs into the following:

    badgeos_award_achievement_to_user( $achievement_id, $user_id, $this_trigger, $site_id, $args );

    You’ll need to know the achievement ID, which is going to be the post ID as achievements are all post types.

    Pseudo-code:

    $achievement_id = 523;
    foreach( $users as $user_id ) {
        badgeos_award_achievement_to_user( $achievement_id, $user_id );
    }

    It’ll do all the heavy lifting for you, hopefully seamlessly, but like I said, it does take some knowledge for knowing how to debug if something goes wrong.

    To answer one of your questions, the relationship is all user meta storing some post type data.

    I have several members asking for this functionality as well. Not so much for admin awarding badges, but for reviewing submissions.

    They love the “bulk actions” checkboxes for moving to trash, for example, and would like to be able to approve and deny submissions in the same fashion.

    Almost Ready ??

    Nothing fancy but it does the job ??

    More infos soon !

    Hi X-Raym,

    can you tell us a bit more about your two add-ons for BadgeOS?
    They seem to be available yet on your website but there are no details about what they are designed to do exactly… can you tell?

    thanks and have a nice week-end,

    Emilien

    Sorry, everything is at extremraym.com

    @emilienrbois
    Yep ??
    Not quite official now, I would like the LearnTimes Approval, so consider that it is in beta now,
    and so, please use it only on local install, and don’t forget to make database backup before applying Bulk Actions… There is no CTRL+Z, and it can add/delete metadatas (achievement) on a lot of users at the same time, so it it better to saved your database state before that.

    I personally tested it a lot during dev, but if you use it, please tell me if you found any problem, so I could fix it ASAP, before it goes official. ??

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Bulk Award Badge?’ is closed to new replies.