Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialMark Flavin
10,199 PointsWordpress Badges Plugin
This version will pull in your badges via your profile JSON and automatically add each badge to your sidebar.
12 Answers
Micah Cooksey
7,151 PointsThis is great, Mark! I'm sure lots of our members will benefit from this plugin.
Thanks for sharing!
Faye Bridge
4,879 PointsThanks for sharing this plugin in the forum Mark! As Micah said our members will love it! :)
Mark Flavin
10,199 PointsThank Micah and Faye :)
I also just patched it to version 1.2 which address some issues with JS and CSS files not showing up on some versions of wordpress as well an issue with the JS file grabbing user profile data.
Zac Gordon
Treehouse Guest TeacherMark Flavin thanks so much for your help with this! Did you update the official plugin here: http://wordpress.org/plugins/official-treehouse-badges-widgets-and-shortcodes/?
John Locke
9,450 PointsMark, if I wanted the less verbose descriptions on hover, just back to where this project forked on GitHub and just remove those lines that grab the description from Treehouse?
Graham Davidson
Courses Plus Student 14,966 PointsHow cool is that - loving the work Mark
Mark Flavin
10,199 Points@John you have a few options:
- Modify the plugin ( the js file )
- Use jQuery to select all the img and trim the attribute
- Wait till this evening (or tomorrow at the latest) and I will add a checkbox to disable the description :)
Mark Flavin
10,199 PointsSo I just took a look at the Treehouse JSON file and they do not have the full description in it.
Before I commit the code just looking for a bit of feedback:
If we want to add back the full description I can make it pull from the original YQL query but there will be a performance hit. This would be an option based on the user checking a box in the widget panel.
Question for ya'll is do you think have the extended description is worth the performance hit and if so do you think a checkbox is the best option for configuration.
John Locke
9,450 PointsThe performance hit isn't necessarily worth it to me for the extended description. It already takes a second to load the badges for me. A checkbox is a great way to go. I thank you, sir, for putting out such a great plug-in.
chrisfeld
3,332 PointsYou're a star Mark :)
Mark Flavin
10,199 PointsThanks Chris I am glad the plugin is useful!
Alexander Sobieski
6,555 PointsThanks!
Kevin Lozandier
Courses Plus Student 53,747 PointsIs there a version of the plugin that's separate from Wordpress? Would love to use it within a Node.js or Rails 4...
James Barnett
39,199 PointsThis plugin has been adapted to JQuery by Riley Hilliard.
Here's the tutorial/demo about how to make your own Treehouse Badges widget using JQuery
Mark Flavin
10,199 PointsKevin Lozandier
The original widget was built from the following JSFiddle feel free to fork and improve.
James Barnett
39,199 PointsMark Flavin - Speaking of forks I made this a while back, it's based on your & Riley's code.
Kevin Lozandier
Courses Plus Student 53,747 PointsJames Barnett: Thanks for the information; thank you @Mark Flavin for your original contribution as well.