roblund
Forum Replies Created
-
Forum: Plugins
In reply to: [BadgeOS] Points reset after updating profileHi Michael, I couldn’t figure out the problem so I wiped my hands of the code and have used the User Meta plugin successfully to edit profiles from the front end. Good news is that points remain after updating the profile. Thanks for your help.
Forum: Plugins
In reply to: [BadgeOS] Points reset after updating profileHi Michael,
I haven’t solved it yet, but I haven’t spent much time looking for a solution. All I know is that the points remain when updating from the WP dashboard but are reset when updating from the front end page. I might end up removing the display of points from the page and use the BadgeOS widget instead and see if the error still occurs…
Forum: Plugins
In reply to: [BadgeOS] Points reset after updating profileStill having the problem. Could it have anything to do with this function?
//BadgeOS user points shortcode function badgeos_get_users_points_shortcode($user_id = 0) { // Use current user's ID if none specified if ( ! $user_id ) $user_id = wp_get_current_user()->ID; // Return our user's points as an integer (sanely falls back to 0 if empty) return absint( get_user_meta( $user_id, '_badgeos_points', true ) ); } add_shortcode( 'badgeos_get_users_points', 'badgeos_get_users_points_shortcode' );Forum: Plugins
In reply to: [YOP Poll] Yop Poll Dashboard MessageThanks it works!
Forum: Plugins
In reply to: [BadgeOS] Points reset after updating profileHere’s an example of one of the custom functions. The others functions are similar.
Forum: Plugins
In reply to: [BadgeOS] New badges being duplicated with default thumbs up imageThanks for all your help with this Michael I’ll see what I can come up with…
Forum: Plugins
In reply to: [BadgeOS] New badges being duplicated with default thumbs up imageThat’s it, as soon as I passed in an achievement type the rogue badges disappeared. If I still want to display all achievement types would the best way be to create a new function for each?
Forum: Plugins
In reply to: [BadgeOS] New badges being duplicated with default thumbs up imageThere is a url but you would need to be a member to view the page. Here is a screenshot of the entire page, let me know if a screenshot is not good enough. Thanks for your help with this.
Forum: Plugins
In reply to: [BadgeOS] New badges being duplicated with default thumbs up imageCurrently there is nothing at all in the post editor. I think that the problem originates when I create a new achievement. The duplicate badge images are added to my media library this is the name of one of the files:
af2e834c1e23ab30f1d672579d61c25a_154.PNGThe duplicate badges are also being shown on the wordpress profile page /wp-admin/profile.php as well.
Forum: Plugins
In reply to: [BadgeOS] New badges being duplicated with default thumbs up imageHi Michael,
The code is being used on a template file called profile.php here is the code.
Forum: Plugins
In reply to: [Join My Multisite] Change default settingsThe YD WPMU Sitewide Options plugin did exactly what I wanted. Thank you
Forum: Plugins
In reply to: [BadgeOS] Earned User Achievement WidgetThanks Michael, I found something that works for my situation. I am able to display the users earned badges from the main site on new sites and change the default widget title using the following code in the appropriate template file:
<?php switch_to_blog(1); get_sidebar(); the_widget( 'earned_user_achievements_widget', 'title=My Latest Badges', 'before_title=<h3 class="style-sidebar">&after_title=</h3>' ); restore_current_blog(); ?>Forum: Plugins
In reply to: [BadgeOS] Change file to display achievementsGreat, thanks