blaagrrrl
Forum Replies Created
-
I still have the problem with the revoked badges. They are not being sent automatically to Credly. However, I was able to figure out how to enable badge earners to manually push a badge into Credly regardless if the badge is already in Credly or not. So at least that gives an option to send the badge to Credly for those revoked/reissued bagdges as well. I still would like every badge automatically, so it would be always the same process for earners.
Badge can now always be send to Credly manually because I commented out line 681 in /wp-plugins/badgeos/includes/credly.php.
// Bail if the badge isn't in Credly if ( ! credly_is_achievement_giveable( $badge_id, $user_id ) ) //return false;
I would really like avoid hacking the code for the plugin if possible. Does anybody have an alternative solution?
Thanks.The newest version of Search & Filter and WordPress 4.4 enabled now search results on the same page.
Thanks
In addition I get the following error
Unable to post message to https://backpack.openbadges.org. Recipient has origin https://backpack.openbadges.org.
postMessage ([native code], line 0) postMessage (issuer.js, line 498) (anonymous function) (issuer.js, line 616)
Service end point for assertions
{ "status":"ok", "uid":"12-1434409764-3", "recipient": { "type":"email", "hashed":true, "salt":"0ct3L", "identity": "sha256$a801ae9f00f7d7e2ac5e513ef5d764f44606ba7c187a12c36e526ca7b2923cd1" }, "image":"http:\/\/aisdwlbadges.org\/wp-content\/uploads\/2015\/06\/TELL-BLAZER-Environment.png", "issuedOn":1434409764, "badge":"http:\/\/aisdwlbadges.org\/api\/badge\/badge_class\/?uid=12", "verify": { "type":"hosted", "url":"http:\/\/aisdwlbadges.org\/api\/badge\/assertion\/?uid=12-1434409764-3" } }
Wasn’t sure if this is a problem with this plugin or with the Mozilla Open Badges modal, so I also put a post on the Open Badge Dev Group.
Forum: Plugins
In reply to: [BadgeOS] No email notifications for admin-awarded achievementsCalling the action hook in my theme’s functions.php worked.
Here is what I used:add_action( 'badgeos_award_achievement', 'super_badge_notification', 10, 2 ); function super_badge_notification( $user_id, $achievement_id ) { if($achievement_id == 12 || $achievement_id == 13 || $achievement_id == 54 || $achievement_id == 66 || $achievement_id == 156) { $user_data = get_userdata( $user_id ); $email = $user_data->user_email; if($achievement_id == 12 || $achievement_id == 13 || $achievement_id == 54){ $subject = sprintf( __( 'Badge Awarded: %s', 'badgeos' ), get_the_title( $achievement_id ) ); // set the email message $message = sprintf( __( 'You have completed all steps to receive your AISD World Language badge: Badge awarded: %1$s Awarded to: %2$s %3$s Visit %4$s (Your Account) to see all steps and completed badges you have received. Be sure to check the "AISD WL Badges" tab to see your completed badges.', 'badgeos' ), get_the_title( $achievement_id ), $user_data->display_name, get_permalink( $achievement_id ), get_site_url( '/' ) . '/members/' . $user_data->user_nicename . '/achievements/' ); } $message = array( 'email' => $email, 'subject' => $subject, 'message' => $message ); $default_message = array( 'email' => '', 'subject' => '', 'message' => '', 'headers' => '', 'attachments' => array() ); $email_message = wp_parse_args( $message, $default_message ); if ( ! empty( $email ) && ! empty( $email_message[ 'subject' ] ) && ! empty( $email_message[ 'message' ] ) && badgeos_can_notify_user( $user_id ) ) { call_user_func_array( 'wp_mail', array_values( $email_message ) ); } } }
Forum: Plugins
In reply to: [BadgeOS] No email notifications for admin-awarded achievementsJust wanted to verify that there is currently no notification sent out when all steps of an achievement have been completed. My test showed that behavior.
Also if I use the badgeos_award_achievement action can I exclude completed achievements as the users already get a notification for those. Won’t they get duplicates if this action is used?
Just marking this as resolved.
Here is the jQuery code I used to hide steps from the ‘Award an Achievement’ section in the user edit form. It’s just a temporary solution:
$(".user-edit-php .badgeos-table td:nth-child(2)").each(function(){ var badge_name = $(this).text(); if(badge_name.match(/^Submit(.*)/g) || badge_name.match(/^Earn(.*)/g) ){ $(this).closest("tr").hide(); } }); $(".wp-admin.user-edit-php .form-table #thechoices option[value='step']").remove();
Forum: Plugins
In reply to: [BadgeOS] Step achievements are not shown on user profile Achievements pageI was able to walk back all the code changes and used instead the solution as described in this BadgeOS Community Add On support post.
After I activated the BuddyPress Activity stream, I could see all the checkboxes on the Achievement Types edit page. I was able to check the checkbox for “Display earned achievements of this type in the user profile “Achievements” section.” and all the steps show now up under the Profile Achievement tab. Unfortunately there is no visual distinction between the completed Achievements and the Steps, but for my immediate needs, this is enough.
Forum: Plugins
In reply to: [BadgeOS Community Add-on] Second checkbox still missingI activated the Activity BuddyPress component: I can see now a total of three checkboxes on the Achievement Type edit page. This also solved the other problem; the 404 errors.
Maybe it is not typical to deactivate the Activity component on BuddyPress, but the option is there. I wasn’t aware of the required “BadgeOS Community Add On” dependency on the BuddyPress Activity component. This would be a good addition to the plugin installation documentation.
Thanks for your all your help.
NBlI was able to walk back all the code changes and used instead the solution as described in this BadgeOS Community Add On support post.
Forum: Plugins
In reply to: [BadgeOS] Step achievements are not shown on user profile Achievements pageI did find the badgeos_bp_member_achievements_content action and thought about overriding it in my theme’s function.php file. I will give it a try.
Thanks,
NBlAs in my other post the 404 error went away by commenting out the following if statement in your Badgeos-Community-Add-On:
bp-members.php class BadgeOS_Community_Members / public function setup_nav() line 182 if ( $slug && $can_bp_member_menu ) {
Forum: Plugins
In reply to: [BadgeOS Community Add-on] Second checkbox still missingFollowing BuddyPress components are active on my website:
- Extended Profiles
- Account Settings
- Notifications
- User Groups
Forum: Plugins
In reply to: [BadgeOS] Step achievements are not shown on user profile Achievements pageI made the steps appear by commenting out the following if statement in your Community-Add-On
bp-members.php line 182 if ( $slug && $can_bp_member_menu ) {
Is there a setting that I overlooked to make this happen without having to alter the plugin code?
For a while I was confused because I only could see one step, until I figured out that they are being split up into different sub menu tabs. I just wanted to mention it because the interface is not completely clear from the outset even though I am a trained web designer and developer.
I might be able to hide steps with some jQuery. I will try that next before I venture into recreating an admin page for the moderator.
NBl