Michael 2013-05-25T17:09:51-04:00

Forum Replies Created

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

    Can everyone re-try saving the settings page with the license keys in place, or remove, save, and then re-add and re-save. I was doing some testing with the “active” indicator stuff, and I believe I found the issue(it was something on our side).

    Michael
    Member
    Post count: 649

    Can you re-try saving the settings page with the license, or remove, save, and then re-add. I was doing some testing with the “active” indicator stuff, and I believe I found the issue(it was something on our side).

    Michael
    Member
    Post count: 649

    Can you re-try saving the settings page with the license, or remove, save, and then re-add. I was doing some testing with the “active” indicator stuff, and I believe I found the issue(it was something on our side).

    Michael
    Member
    Post count: 649

    ” Also, in your account area, when I attempt to “manage sites” for these 2 add-ons, I go a blank “My Account” page. Any thoughts on these items?”

    Is this in reference to here on Badgeos.org or from within your WP install?

    We need to check on it still, but I wouldn’t worry too much about the “inactive” listing in your WP admin. They’re active on this side and that’s what’s important right now. You can always nudge us on here if something comes up too, just to check on things.

    Michael
    Member
    Post count: 649

    Activated the specified site for both addons. Let me know if you run into any other issues.

    Michael
    Member
    Post count: 649

    michael @ webdevstudios dot com will reach me.

    Please provide a link to this forum thread so I can be sure of context for the email. Thanks.

    Michael
    Member
    Post count: 649

    Not seeing any site listed as active on our end at the moment, but it does say the license is active.

    If you want, I can manually activate it for a domain. Just me know which one to set it for.

    Regardless, you should be good till next year, and we’ll be looking into why it’s possibly not showing as active from the user’s WP Admin.

    We’ll keep you taken care of one way or another.

    Michael
    Member
    Post count: 649

    Can you try things out again? I added a second early return from the function, before the get_current_screen function call, which should help prevent the issues.

    My current theory is that it is being determined to be the WP admin, but the emails are still being generated before the loading of the get_current_screen function itself. Thus being caught in the middle.

    I also made note for the issue on our issue tracker so that it will be fixed in a future version.

    Michael
    Member
    Post count: 649

    For the link, I’d recommend targeting it with some CSS. I’d recommend the CSS selector of .badgeos-congrats-achievement a {}

    If you are comfortable with WordPress filters, we can go that route as well, but I want to check with you before getting into details there.

    The Credly integration should be controllable via the BadgeOS settings page.

    Regarding the emails, I am assuming those settings are showing up in a frontend profile?

    Michael
    Member
    Post count: 649
    This reply has been marked as private.
    Michael
    Member
    Post count: 649

    Out of curiosity, do you have WP_DEBUG turned on at all? I wasn’t able to recreate the errors showing up in my localhost site, which has me wondering about the debugging detail.

    Michael
    Member
    Post count: 649

    The thing is that it shouldn’t be happening, and at least at the moment, you’re the only one reporting an issue with it. I’ll try some tests out to see if I can recreate, but I make no guarantees.

    Michael
    Member
    Post count: 649

    I do not believe we have any way to handle that type of request without someone diving into the code and WordPress filters. Basically when the leaderboard is building its data, before cached, one would need to check if one of the ranking users is one that needs to be excluded. If so, the user would be removed from the array of data before returned to be saved. Biggest potential issue is that if one does, then the numbers won’t necessarily add up to the max amount for that board as well, because the calculations won’t be re-run to fill the rest again.

    If we were to try and add a way to handle this out-of-box, we’d likely amend internal queries to exclude those marked for exclusion so it still fills the right amount.

    We just don’t have that right now.

    Michael
    Member
    Post count: 649

    It’s not a solution, but I can’t explain right now why it’s seeming to slip between the cracks of frontend vs admin at the time of the email sending. If it’s considered frontend at the time, then the filtering should be returning the unaltered $allowedposttags before it reaches the function. If it’s considered admin, then the function should exist, unless it somehow hasn’t been defined quite yet.

    Michael
    Member
    Post count: 649

    the validator for the license won’t go “http://subdomain.domain.com is the same as “http://www.domain.com”, this is something at the level of the eCommerce solution BadgeOS.org uses. It looks at the whole URL.

    Yes, it’s used for updates from the admin, as long as you’re still valid for the year or any renewals purchased, you’d be able to manually download the files from your account here at badgeos.org as well, but it’s more work.

    Michael
    Member
    Post count: 649

    Never hesitate to look through the addon’s code, it’s there for you to use as necessary.

    That said, this should get you started, but feel free to modify and amend as you see fit. I added comments to help explain why I did some things.

    // Set our details. alter as necessary.
    $leaderboard_id = 197;
    $leaders = badgeos_leaderboard_get_leaders( $leaderboard_id );
    $current_user = get_current_user_id();
    
    // Create an empty array to start with.
    $user_rank_data = array();
    //Iterate over our leaders.
    foreach( $leaders as $rank => $leader ) {
    	// If we have a match, act and fill our $user_rank_data array with some info.
    	if ( $current_user == $leader['user_id'] ) {
    		// Need to add one because arrays are zero-based in indexing.
    		$user_rank_data['rank'] = $rank + 1;
    		$user_rank_data['user_id'] = $leader['user_id']; //Simply re-store the value.
    		break; //We found what we needed, no need to continue.
    	}
    }
    
    Michael
    Member
    Post count: 649

    Odd. The snippet that I added is definitely there in your paste, but for some reason it’s still getting past it AND still erroring.

    Michael
    Member
    Post count: 649

    Dennis, you’ll want to deactivate from the dev site before activating on the live site. We have no way to determine what URLs are dev sites, so it just counts against your total. If you only have a 1 site license, then it gets used up until deactivated.

    We can deactivate on our end as well, if requested, so you can move where it’s activated at.

    Michael
    Member
    Post count: 649

    Can you open the badgeos-auto-messages.php file and check towards the end to see if it has the following code right before the get_current_screen() call?

    if ( !is_admin() ) {
    	return $allowedposttags;
    }
    

    If you are unsure, or would prefer someone else to, I can if you grant me an admin user long enough to check that much.

    Michael
    Member
    Post count: 649

    What version of Auto Messages do you have? I believe that one was fixed in 1.0.2.

Viewing 20 posts - 101 through 120 (of 649 total)