Forum Replies Created
-
AuthorPosts
-
in reply to: Widget not working/showing since WP4.3. – URGENT #8854
Bruce, Tom, can both of you test this version of the plugin please? https://cloudup.com/cNdIjQICSP2 If either/both of you confirm that everything still works fine and as expected, I’ll release the change to everyone.
I finally found the apparent issue in that we were loading all of our included files at the
init
hook for WordPress, but that was proving too possibly be too late for the widget. Once I moved the loading back to theplugins_loaded
hook, the widget kicked in for me.Thanks for your cooperation and help.
in reply to: Leaderboard missing points #8835Just to be certain, have you tried having the leaderboard rebuilt? It’s cached a bit because of the queries used to make them, so it’s possible the cache is older.
Is this the ProfilePress that you mention? http://profilepress.net/
in reply to: Funky formatting in badge description #8821Where/how are you setting the description for this? It looks like encoding/sanitization is occurring.
in reply to: Widget not working/showing since WP4.3. – URGENT #8818Nope, haven’t managed to circle back around to this quite yet.
If I recall in my debugging, moving the widget file to like the main file seemed to have it work again, but my issues with that are that it convolutes that file, and isn’t what I consider a proper solution because it WAS working just fine before. If necessary, I can do a version of that for your case until a proper solution is determined, but it’s not something I’m going to release in mass right now. So far you and I are the only ones who have actually noticed it, or at least have reported the issue. I haven’t heard from anyone else about it yet.
in reply to: Points afterwards #8816You would need to go into each user profile in the admin and remove manually that way, or you could do some code-based meta-key removal if you’re so inclined. We don’t have a “kill switch” available at the moment that I can recall for user-earned achievement data.
in reply to: link to the achievements for the logged in user #8815Yes and no. Depends on how code-capable you are and how custom you can get. If you have a way to fetch the ID of a user whose profile you are viewing, there will be ways to filter output of something like the [badgeos_achievements_list] shortcode arguments. It’s very likely going to be a custom solution one way or another. Just a matter of determining what you have available at hand for your website.
in reply to: Points afterwards #8807Hi Stefan,
Updating the point values earned for a given achievement isn’t going to automatically adjust the point values for everyone who has already earned the achievement. To get this new point total reflected, you’d need to manually go through every user who has earned it and increase their point total by the difference between the old earned total and the new earned total. Once that’s done, you should be able to get the updated results with a rebuild action.
You’re going to want to conditionally set that value, as mentioned previously, because as is, it’s going to affect every instance of the shortcode as is right now. Need to do something like check if on a ProfilePress profile page and if so, which user. Otherwise, return the values unaffected.
in reply to: Widget not working/showing since WP4.3. – URGENT #8729No luck figuring out what’s going on, and it’s frustrating me why it’s not working for this specific add-on.
Is this for a BuddyPress profile? or some other profile setup?
It’s definitely possible, but not in a dynamic way without some coding.
This is very basic, and will affect EVERY instance of the
badgeos_achievements_list
usage.function fisher_profile_achievement_display( $out ) { $out['user_id'] = get_current_user_id(); return $out; } add_filter( 'shortcode_atts_badgeos_achievements_list', 'fisher_profile_achievement_display' );
Once I have some more information about situation for the website, I can help amend to conditionally affect the shortcode.
in reply to: Widget not working/showing since WP4.3. – URGENT #8725Sorry for the delay in response to this, yesterday was a travel day for a company gettogether and I will be delayed in responses for the week.
Regarding the issue at hand, it is causing me to scratch my head because I can’t see anything that would prevent it from showing up yet. So I need to investigate what’s going on exactly.
Will let you know.
in reply to: formatting for "claim a badge" widget #8673Forgot I need to be logged in to see the output in the screenshot, so I’ll wing it with the source code. Thanks for trying with that part anyway 🙂
I believe this CSS selector should be enough to accurately target the submit button there.
.badgeos-activity-code-wrapper .badgeos-activity-code-form-submit
You would want to touch on the
width
CSS property and increase it to more than what is presently there. If you’re familiar with your browser’s developer tools at all, that’s going to help a lot because I can’t guarantee all of the CSS affecting the button is exclusively from the Activity Codes Addon.in reply to: formatting for "claim a badge" widget #8668Hi Amanda
It’s definitely going to be CSS related for how to fix it, however, I highly recommend that you avoid editing the plugin’s CSS as future updates would remove all your customizations. It would be better to add your own CSS elsewhere that either loads after the plugin’s and has matching selectors, or have a more specific CSS selector so that it overrides regardless of location. This way, you won’t lose your customizations.
Regarding determining what to change, I would need to have a link to the actual website in order to provide more pinpointed line numbers and selectors to use.
in reply to: Filter out spammers #8667Yeah, I believe that’s going to be a BuddyPress thing. I can’t find anything about spam in WordPress core alone, both single site and multisite.
in reply to: Filter out spammers #8664We don’t have any built in way that I am aware of. Some good questions from my end are how they’re managing to earn achievements in the first place, at least enough to rank.
I believe there are spots in the addon that allow you to intercept on some level during the leader calculations, the question is how would you determine who is spam and who is legit.
in reply to: Active Users Report doesn't use range #8618Unsure. Looking at the code, we have this for our MySQL placeholder replacements in the active user query.
date( 'Y-m-d', $report->get_start_date() ), date( 'Y-m-d', $report->get_end_date() + DAY_IN_SECONDS ), date( 'Y-m-d', $report->get_start_date() ), date( 'Y-m-d', $report->get_end_date() + DAY_IN_SECONDS )
in reply to: Responsive Tables #8616Is it not possible to use the existing classes on the table tag with the tablesaw plugin? I get the feeling it should be possible to integrate it 3rd-party style, and still get some desired results.
in reply to: Exclude Site Admin from Leader Board #8615If I’m following my own comment above right, you would just need to add a callback to the filter mentioned above, and do something like a foreach loop on the
$leaders
data, which I believe would include user IDs, check the role of each iteration, and if it matches an admin, unset the value from the variable being looped. Would skew the total amount a little bit, but that may be just fine, depending on exactly how many administrators you have.in reply to: Responsive Tables #8612Filed as an enhancement ticket for the Leaderboard Addon. Can’t promise any timeframes at the moment, so do what you must in the meantime regarding a solution.
-
AuthorPosts