I’m just wondering.
]]>hi!
rhb_user_has_badge() function has an error in SQL.
Just change (rh-badges.php:481)
$badge_count = $wpdb->get_var($wpdb->prepare('SELECT COUNT(*) FROM ' . $wpdb->prefix . "rh_user_badges WHERE badge_id = %d AND user_id = $d;", $args['badge_ID'], $args['user_ID']));
to
$badge_count = $wpdb->get_var($wpdb->prepare('SELECT COUNT(*) FROM ' . $wpdb->prefix . "rh_user_badges WHERE badge_id = %d AND user_id = %d;", $args['badge_ID'], $args['user_ID']));
]]>
Esserq,
First of all, it’s a great plugin and I want to use it on my website. It’s still working with WordPress 3.3 RC2 (currently) and when I use the rhb_list_badges() function tag it shows all the badges I created.
Now I want this plugin to work with my website theme and show beneath the author’s information the badges he or she achieved.
If I use <?php rhb_list_badges() ?> it shows all the badges, what should I change in the code? Wanted to contact you on your website or mail, but those are not working anymore …
Hope to hear from you soon.
Kindes regards,
Drinkbaar