• Resolved blaagrrrl

    (@blaagrrrl)


    I created a custom automated email notification that is being sent to the recipient after someone earned a badge:
    What is the url link for downloading the Open badge (what are the required parameters)? I would like to include it in the email I am sending out.

    Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author learningtimes

    (@learningtimes)

    Hi @blaagrrrl ,

    Yes, there is a standard convention you can use to build the Open Badge image URL for a specific user. An example Open Badge image URL would be https://<yourwpsite.com>/wp-content/uploads/user_badges/1/Badge-101-28925.png. Here 1 is the user ID , 101 is the entry_id ( Primary Key of wp_badgeos_achievements table ) and 28925 is the WordPress Post ID for that particular Open Badge.

    Let me know in case I can help you further with this.

    Thanks

    Thread Starter blaagrrrl

    (@blaagrrrl)

    Thanks for your answer. Does that mean, I still need to bake the badge myself? The baked image of the badge isn’t automatically generated by BadgeOS? I just assigned an Open Badge to my own user profile and the https://<yourwpsite.com>/wp-content/uploads/user_badges/ folder is still empty.

    Thread Starter blaagrrrl

    (@blaagrrrl)

    There was a permission problem on the web server with the uploads/user_badges/ folder. The user_badges folder didn’t inherit the correct permissions from the upload folder when it was created by the plugin. Because it wasn’t writable the baked badge image couldn’t be saved by the BadgeOS plugin. I assume, because there was no badge image, the download link did not display in the user profile. Maybe the entire badge award process should have failed with an error if the baked image couldn’t be created? Just a suggestion. It could probably help others, if they need to troubleshoot.

    Thread Starter blaagrrrl

    (@blaagrrrl)

    Is there a way to get the entry_id from the achievement object (get_post( [achievement_id] )? Or do I need to run a custom query?

    Thread Starter blaagrrrl

    (@blaagrrrl)

    I got it all to work. It is great you added the Open badge features to the BadgeOS plugin. Thank you so much BadgeOS team!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘URL for download?’ is closed to new replies.