Forum Replies Created
-
AuthorPosts
-
Ah, if I’m understanding correctly, you want the points isolated by achievement type, not overall points accumulated.
From everything I can find, tracing through the Leaderboard addon code, that’s going to need to be a custom implementation at this point. We have a function that handles the display of each leaderboard, and inside it fetches the data it needs for the current leaderboard.
Part of that data is some post meta for the leaderboard, that holds the leaders at that point. However, that current meta is going to be the total points, and not the separated out points like you’re looking for. You would likely need to tap into filters to get the right data saved as you need it, and possibly one of the filters inside the update_*_meta functions.
Sadly, I don’t have any sort of ready-to-paste code to offer a starting point from, and it will take some thinking through/testing/coding to accomplish at this point. We just don’t have it set up and ready for that type of separation.
Hi Ryan,
You should be able to do it by points by making sure that “Points” is one of the metrics to track and that it’s the default rank metric, in the settings area of each leaderboard.
in reply to: Problem using svg badges #6014Hmmm, I do not have an answer for that without a fair amount of research.
One thing needed to be kept in mind is that SVG images aren’t like pngs or jpgs. SVGs are actually made out of xml. You can view an svg in a browser and hit view source to see it all. Because of this,
<img>
tags do not work with them, you have to do<embed>
tags or iframes. I do know it’s possible to set WordPress to allow uploading them through the media library, but it’s still gonna take the extra care to display them.in reply to: Problem using svg badges #6001Let us know about any findings you come across or any other issues.
in reply to: Update Process is broken on some Addons #6000Well I can confirm you changed the right spot, why the session errors are being through remains a complete mystery.
Are they still showing up? or did they end up clearing themselves out eventually. Were you able to confirm the upgrade notice went away after the file change?
in reply to: Problem using svg badges #5997When it comes to image resolutions and whatnot, I’ve always found it’s better to upload large, and let the generated images scale down for you.
It sounds like you’re having an issue the resulting images being smaller than you intend and scaled up via css or so. I’d need an example link to confirm though.
in reply to: Update Process is broken on some Addons #5994Hmmm, very odd that that’s happening, but good to see you’re not being completely locked out, and are able to still edit things.
Could you pastebin.com what you have in the badgeos-reports.php file as is when the error is occurring? Or at least screenshot the part you changed.
The edits we made shouldn’t have a drastic effect on things, as we’re just updating a string used to check for updates and compare versions with.
in reply to: Problem using svg badges #5993If you’re getting clarity issues with the images you upload, I have to wonder if there’s some issue with the image processing that occurs when you upload the images. Have you checked each size generated and put on the server to see if they’re all being affected badly?
We don’t run them through anything extra than what WordPress core does for all images.
in reply to: Update Process is broken on some Addons #5989Hi Tobias, thank you for pointing these out. It looks like we have 2 cases of missed version variables that we forgot to update with the latest release from both.
These are version numbers that are related to checking for updates from EasyDigitalDownloads.
If you’re fine with touching the plugin code yourself, you can find the spots needing edited in the primary plugin file for each.
For Reports addon: badgeos-reports.php line 79. Needs to be set to 1.0.1 instead of the current 1.0.0.
For Auto Messages addon: badgeos-auto-messages.php line 61. Needs to be set to 1.0.1 instead of the current 1.0.0.
Once those two are fixed, the update notices should go away shortly.
I’ll be sure to note that we need to keep those two spots current with each release and we’ll get those fixed going forward.
in reply to: Problem using svg badges #5988Hi Ryan,
From my current understandings of SVG in general, and how they’re embedded in a page, we would need to do some hoop jumping to make them fully supported as embeddable directly through the BadgeOS code. Not sure how soon, if at all, we’d be able to implement it, and not sure how much use it has overall, to be honest. This is the first time using SVG has come up as a topic, really.
That said, there’s no reason why you couldn’t keep the source files as SVG and export them to a png file for use when uploading to the site. Probably not the most ideal answer or the one you were hoping for, but it’s the best I can offer at the current time.
in reply to: Current user rankings #5974Unless I made an error in the code, the gist above should return the rank for the user, but that doesn’t mean it can’t also return other data. It’s also going to be independent of the rendering of the leaderboard.
Depending on the settings you have for the leaderboard, you could amend the code to include points, rank, counts of each specified achievement type, and user ID.
Problem ends up being that I don’t know what your setup is like, so it’s not really a quick change for me to make assuredly, without just adding EVERY part of it.
You would also still need to call the function somewhere and format/output the results in your preferred way.
in reply to: Current user rankings #5960Hi J. Massey,
from the looks of it, the numbers in the display of a leaderboard is just an incremented counter variable, so it’s not something we have stored anywhere.
See if this makes sense to you, if you’re code savy. If not, then it may be above your head.
https://gist.github.com/tw2113/8e23aa678324cbf8a36f
I borrowed a lot from the insides of
badgeos_leaderboard_display_leaderboard
which is what outputs the table display. The orderby is going to be the same options from the leaderboard shortcode. You’ll be able to provide specific IDs or the current user automagically.Read the comments for some explanation, and feel free to ask questions. Also never be afraid to crack open the addon if you’re adventurous.
in reply to: Only 2 Achievement types showing in BuddyPress #5947Alright, here’s what I’ve found.
Array ( [jci-tielt-awards] => 4861 [av-vergadering-actie] => 4831 [av-plakker-actie] => 4021 [av-vergadering] => 3811 [gebruik-site] => 3780 [av-plakker] => 3754 [commissie] => 3732 [club-functie] => 3699 [vorming-2] => 2567 [vorming] => 2564 ) Array ( [0] => gebruik-site [1] => club-functie [2] => jci-brains-actie [3] => step [4] => jci-brain )
This first array is a list of all of the available achievements in your install.
The second array is the list of achievements earned by the user you pointed me to.
When the Community Addon is doing its thing and setting up its menus for the profile, it checks to see if an item in the 2nd list is present in the first list. If it is, it fetches the corresponding ID. This sets up the sub-menu tabs for grouping achievement types, before continuing to show each achievement earned by the user in that type.
I can’t confirm myself, but my suspicion is that at some point, you renamed the slugs for the JCI Brains Actie and JCI Brains achievement types to the vorming and vorming-2 slugs. However, the user had earned their achievements for those before the renaming, and the values stored in their user meta were not updated. Because of that, the two are not matching and thus not being displayed in the profile.
Hoping I’m right, or at least on the right path. Regardless, that’s why it’s not showing.
in reply to: Only 2 Achievement types showing in BuddyPress #5946Regarding the leaderboard update, could you try downloading a fresh copy from badgeos.org here and update the files manually?
in reply to: Only 2 Achievement types showing in BuddyPress #5938If you’re willing to provide access, that’ll be a lot more beneficial and timely for me to debug than just screenshots.
Email any creds to michael @ webdevstudios.com please
in reply to: Only 2 Achievement types showing in BuddyPress #5918Have you made sure the achievement types are set to be displayed in BP Use profiles? It should be a checkbox on the achievement type editor screen. When under BadgeOS > Achievement Types
Just pushed out 1.1.0.
Hi Rocky,
Shouldn’t be anything wrong with it in terms of actual functionality. However we do have some updates we need to push out that I hope to get done early this week. Stay tuned. Hopefully those new updates also clear up your persistent nag as well.
in reply to: How to install Add-on? #5876Hmm, very odd that it’s not marking it as updated, when I think you probably should be. I can’t find any stray version numbers that I may have missed that are used to check for updates either.
All of the data is stored in the database, and our x.x.1 version bump didn’t touch anything that is related to that, so you shouldn’t lose any data if you still run 1.0.0.
Still odd that it’s still listing as needing updated though.
in reply to: How to install Add-on? #5860Hi Douglas,
I need to check with some people regarding the license field for the Referral link addon, but the Congratulations addon should have its license field in BadgeOS > Settings page.
With that said, the licenses don’t unlock functionality, just automatic updates right from your WordPress Dashboard, so don’t worry about that, we’ll keep you taken care of.
-
AuthorPosts