Michael

Forum Replies Created

Viewing 20 posts - 561 through 580 (of 649 total)
  • Author
    Posts
  • Michael
    Member
    Post count: 649

    Hmm, looks like the 1.0.5 version bump was 20 days ago, and my find was 13 days ago. So…it didn’t make it into the 1.0.5 version. Probably 1.0.6 once we get the the pull request merged and dealt with.

    Michael
    Member
    Post count: 649

    I’ll look into this a bit more tomorrow and likely regenerating fresh API keys for you. You won’t be re-bill for it, as the old keys would be invalidated.

    Michael
    Member
    Post count: 649

    Depends on which package you purchased, for the licenses part.

    For example, the Leaderboards addon has a single site for $35, up to 5 sites for $50, and up to 25 sites for $75. Just depends on which one you purchase, and I wager that each addon has similir setups for multiple sites. Turns into a really good deal if you’re planning to do a LOT of sites.

    Michael
    Member
    Post count: 649

    Well, to be technical, you can keep it all isolated to your install, you don’t need to share any of it with Credly, though it’s not bad if you do. Credly is like a central repository of sorts that you and others can use to store all of your achievements. I could use my account and sign up for 3 different sites that all integrate with Credly, and have 1 profile that shows my earnings from each site, instead of segmented profiles.

    That said, with this system, you also could make your own version of credly. Obviously that’d be a fair amount of work, but it could be done, and BadgeOS can be its own isolated environment.

    Just some food for thought 🙂

    Michael
    Member
    Post count: 649

    Do what you have to do, and let me know if I can help out with anything. Sorry we weren’t able to find a solution sooner though 🙁

    Michael
    Member
    Post count: 649

    This part should be all automatic. You log in with the form fields provided, and it fetches the information for you. If you want, I can try to debug this part as well if you send me the credly.com info. You should have a new email from me about login issues with the WP portion.

    Also so I know how careful I need to be, is this a live, being used site by students? or is this still in development and private?

    Michael
    Member
    Post count: 649

    You shouldn’t need to be doing anything with the Activity codes license key here. Sorry that I didn’t make that clear enough. I see I also didn’t indicate well enough that I meant the Credly Settings page inside your WP Admin, not from Credly.com.

    This is the field I’m talking about, from your BadgeOS > Credly Integration:
    http://cl.ly/image/0D0c1e0Z0e2N ( I deleted my key for the moment )

    If you don’t have the field and have a user/pass field, then just fill in your credly.com login credentials there and it will go fetch the value for you.

    Hopefully this is making more sense now 🙂

    Michael
    Member
    Post count: 649

    email them to me michael@webdevstudios.com please.

    Michael
    Member
    Post count: 649

    My test user is free version as well, but I don’t think that’s the issue. To regenerate, just visit your credly settings page, delete the key in the field, hit save, and then re-enter your credly login creds and hit save again. Should fetch a fresh copy that you can use.

    Michael
    Member
    Post count: 649

    Dean, do you think you could re-fetch an api key from the Credly settings page? I know we had recent changes related to that, and I’m wondering if you’re still on a non-working token for that. If that still doesn’t work, let me know and we’ll see what else we can figure out for this.

    Michael
    Member
    Post count: 649

    Dean, are you willing to grant me temporary access with the same user account? I can’t manage to recreate on my localhost setup, so I’m wondering if it’s something specific to your user/install.

    Michael
    Member
    Post count: 649

    I believe we already have that covered.

    $output .= apply_filters( 'badgeos_leaderboard_display_name', $user_data->user_login, $user_metrics['user_id'], $user_data );

    uses “user_login” by default, and we pass in the user_id and user_data in as extra parameters to utilize.

    If you need an example of how to change that, let me know and I can type one up for you.

    Michael
    Member
    Post count: 649

    in your badgeos-leaderboard.php file in the root directory for the plugin, you’ll find the following at line 49:

    add_action( 'plugins_loaded', array( $this, 'register_cpt' ) );

    simply change the plugins_loaded to init and you should be good.

    Let me know if that fixes it on your end as well, just to be certain.

    Michael
    Member
    Post count: 649

    Joseph, what versions of the plugin and WordPress are you using?

    Michael
    Member
    Post count: 649

    Good evening, Dave.

    We need to disregard my previous reply. I thought I had the solution but it was prickling the back of my neck after I replied, and I went ahead and investigated things further on the Leaderboard side.

    It IS our fault.

    In short, we were registering our custom post type before the init hook, which is not a good place to be. We didn’t have access to the $wp global variable and that was causing the issues.

    I tested this with the original values for the rewrite part in Leaderboards addon, and the permalinks plugin and both activated without trouble.

    I’m hoping to get the official fix out for this asap, and will press for it tomorrow morning, when our developers are around again. If you need me to point what to change where so you don’t need to wait for the fix, I can do that as well.

    I hope you don’t hold this against us or BadgeOS, we do what we can when we can, and this was actually a pretty important thing to get pointed out, so I appreciate you and the report.

    Michael
    Member
    Post count: 649

    So. I’ve traced my way through the code, and this is what I’ve come up with.

    In the Leaderboards plugin, we set the rewrite property to false, as told to do by the WordPress codex, if we don’t want rewrites to be part of the post type.

    Since my localhost environment gave me a stack trace for the error, I was able to narrow down where everything was coming from.

    Inside the custom-post-type-permalinks plugin, is a class that hooks onto the registered_post_type action hook, and does its thing. Including the following line:

    
    add_rewrite_tag( '%'.$post_type.'_slug%', '('.$args->rewrite['slug'].')','post_type='.$post_type.'&slug=' );
    

    The problem is that within this method used to do the rewrite setup, it just assumes that all post types are going to have the $args->rewrite[‘slug’] property. It never checks if that is actually set to false. So while it’s our plugin that triggers it, it’s a weak spot in the permalinks plugin that isn’t checking something it very likely should be, which is the presence of the slug and not a bool value.

    I tested by returning if the rewrite slug is false, and it activated correctly, how ever I imagine they need to do more than just that one spot to make it fit completely with their setup.

    If you want, I can leave the plugin author some feedback with this, or if you want to yourself. I’m fine with either way.

    Michael
    Member
    Post count: 649

    Hi Dave, I do owe you an apology. I’m sorry. I went ahead and installed the plugin and activated Leaderboards, and it did white screen on me. So thank you for the bug report, and we are now checking on it.

    Once again, I am sorry for being a bit terse with you earlier.

    Michael
    Member
    Post count: 649

    If you could please, enable debugging so that the white screen prints out the complete actual error occurring, and paste that to me.

    I’m looking at the register_post_type() call that we use in the Leaderboard and nothing is standing out regarding rewrites. It’s very similar to the achievement-type post type that we use to register all achievement types in the core plugin. The original error you posted doesn’t mention our Leaderboard addon at all, so I can’t say at all if it’s an issue actually coming from our plugin. Since I don’t have access to your site, I can’t check on any of this myself.

    I’m sorry you feel my support has been poor thus far, but I’m doing all I can from my end.

    Michael
    Member
    Post count: 649

    Sorry to hear that you’re experiencing issues.

    I have just done a code search on all of my local copies of BadgeOS plugins and none of them are even using the add_rewrite_tag function. I don’t believe the Leaderboard plugin is the culprit in this case.

    You’ll want to be a bit careful with this, but perhaps the information on this page can help give a better idea of what the real source is. https://codex.wordpress.org/Debugging_in_WordPress

    Michael
    Member
    Post count: 649
    in reply to: Poping-up time #3405

    We are working on an extension that’s meant for popups for all achievements, not just “big milestones” but I sadly don’t have an answer for when it will be done.

Viewing 20 posts - 561 through 580 (of 649 total)