Forum Replies Created
-
AuthorPosts
-
in reply to: Doesn't work witg comments #7110
I can’t confirm any of those, but it does look like another issue with some sort of php error preventing the rest of the page load.
in reply to: Community Add-On: cut the page #7109Javascript isn’t going to halt the page markup from loading in the way shown from your screenshots and view-source though.
If you don’t, turn on WP_DEBUG and refresh again. My bets are that it’s
bp_is_active
causing a fuss, which is from BuddyPress.in reply to: stats not updating #7108It’d be a manual process, but altering/removing the log data would be the best way to go about this at the moment. A rewrite for how it’s all done would not be a quick fix, and we have multiple customers to keep in mind with the topic as well.
in reply to: Monthly Top #7107There’s no straightforward way to do this, that I can immediately see.
We do have the following two filters that are applied before the final display of the leaderboard. Both are applied in the order I’m listing them.
apply_filters( 'badgeos_leaderboard_sort_leaders', $leaders, $metric ); apply_filters( 'badgeos_leaderboard_trim_leaders', $leaders, $original_leaders, $user_limit );
They’re from two different functions, but those functions are what are invoked one after the other.
I believe you should be able to use the $leaders variables passed in to grab the user’s achievements, and check for times that the user earned the achievement, and return based on that. I’m not sure offhand which filter would be best for the task.
It will also likely still display all of data for the metrics chosen, and not just for that timeframe you specify.
Best I can determine at this time.
in reply to: Community Add-On: cut the page #7096The community add-on is still heavily geared towards BuddyPress, and as I recall, we had some others report similar errors when they had the Community Addon enabled but not BuddyPress.
It’s definitely a PHP error going on with the sudden stop of the page rendering, but you may not have had error logging enabled enough.
I wager if you enabled BuddyPress, it’d work just fine.
in reply to: Incorrect numbers #7095For the wp11_posts part, we don’t prefix “badgeos” in them. If you still have the default achievement type of “Badges”, then the post type will be “badges”. If you set up an achievement named “Quests”, then the post type will be “quests”
The meta keys tend to be prefixed though, so those are likely gone.
Your three statements would take care of more than just user meta though, and if you were hoping to preserve the set up achievements, then you may need to re-set the details of what you had.
in reply to: stats not updating #7074Someone would need to alter the plugin to change what it’s querying, which wouldn’t necessarily be an easy task, depending on skill level.
I was not part of the decision behind what to base the reports on, so I’d need to ask others why they felt it was best to base it off the logs and not current status of the achievements/points/etc in their user meta. I could see reasons for going either way.
in reply to: Filters and pagination not working #7073What method are you using to display them here? One of the shortcodes? If yes, which? Some other way?
in reply to: stats not updating #7054I believe the reports are based on the logging system, and not the values directly associated with the user’s meta data. So it’s never really a live snapshot, at least not as live as it could be.
in reply to: Filter users by type i.e country #7050Sadly, I don’t have the time available to try and work out a solution for this type of customization request.
You can use the contact page at the top to contact Credly directly, and they should have more information for you for possible solutions.
in reply to: Filter users by type i.e country #7048This is going to be a custom implementation solution, as we don’t have anything for this type of thing out of box, and I don’t have any snippets that would help with this.
The biggest thing would be finding a way to query for users from just the specified country.
in reply to: Incorrect numbers #7017I recommend backing up the database before doing any of this, just in case.
The logs should be deleteable from your WP admin.
For the user meta, you can give this a go:
function denis_reset_user_data() { if ( !empty( $_GET ) && isset( $_GET['denis_reset'] ) ) { global $wpdb; $sort = "user_registered"; //Build the custom database query to fetch all user IDs $all_users_id = $wpdb->get_col( $wpdb->prepare( "SELECT $wpdb->users.ID FROM $wpdb->users ORDER BY %s ASC", $sort ) ); if ( !empty( $all_users_ids ) ) { foreach ( $all_users_ids as $users_id ) { delete_user_meta( $user_id, '_badgeos_points' ); } } } } add_action( 'init', 'denis_reset_user_data' );
It’ll query for all of the user IDs and loop over them, deleting the user meta value for
_badgeos_points
. You can add this to your theme’s functions.php file, and then to actually trigger it, you’ll need to add?denis_reset
to your url. Don’t forget to remove the function after done, when successful.in reply to: Send user email address #7016I know the Activity Code addon has timeout settings available to limit how many times a user can submit in a given time. Doesn’t look like the referring link one has that though.
You can set limits on how many times a user can earn any achievements with the core plugin.
in reply to: Installation #7015Replied to the email.
in reply to: Send user email address #7012Should be able to set the widget title to whatever you want when configuring the widget itself.
in reply to: Installation #7010Received the email, will check on it soon.
in reply to: Incorrect numbers #7005Been a little while since I looked at the MySQL for this, but I think a portion of this queries based on the logs that are present for the site. It should be possible to delete the logs if you really need to, but there wouldn’t be a way to “regenerate” based on the previous activity since the logs are what would be needed to regenerate that data in the first place.
That’d be fine if you’re willing to “start from scratch” though. I could also type up a WP_User_Query quick if you want to simply re-set everyone to zero points for your users, though that may not be the best idea overall, depending on what’s going on for the site.
Interesting. Sorry to hear the card was maxed out, but good to know there wasn’t something bigger going on with the site 🙂
I’ll let the right people know about this so we can see about avoiding confusion in the future for others.
in reply to: Send user email address #7003I’m not in a position where I am able to offer to do custom implementations and whatnot like that. Sorry. Best suggestion I have for that would be contacting BadgeOS directly via http://badgeos.org/contact/ and they’ll discuss options for how to possibly handle that.
For the displayed name part, do you mean what’s shown for each user in the leaderboard in their listed row? or something else?
in reply to: Adding extra columns #6947This may be something that’s fairly easy, or fairly complex depending on your developer skill level. The Reports addon has a hefty amount of moving parts in it to handle all of the data querying and displays.
I know we have some filters available inside the reports plugin, but I’m not as familiar with them as I could be, and haven’t ever had a chance to attempt altering displayed content. Essentially, I believe it should be able to be done, but I don’t know how without digging into things myself right now.
-
AuthorPosts