Michael

Forum Replies Created

Viewing 20 posts - 441 through 460 (of 649 total)
  • Author
    Posts
  • Michael
    Member
    Post count: 649
    in reply to: Challenge Points #5822

    Hi Nicole,

    Sorry about the delayed response to this part. From the sounds of it, the issues you’re having are actually stemming from BadgeOS core, and not the Leaderboard addon itself. That said, I would love to be given the chance to investigate further into the issues at hand, and see if there’s anything that can be fixed right away in your install, and if there’s any parts that need to be fixed in our core code. If the latter is part of the case, then chances are others are also experiencing them, or have the potential to, and getting those fixed ahead of time would benefit everyone.

    If you’re willing to grant me access temporarily, I would appreciate it. You can send some credentials for it to michael @ webdevstudios.com, so that they’re not posted to the forum here.

    Michael
    Member
    Post count: 649

    So I was looking through our codebase just now, trying to find some stuff for things I have cooking in my head, and came across these two functions:

    function badgeos_get_achievement_earners( $achievement_id = 0 ) {}

    function badgeos_get_achievement_earners_list( $achievement_id = 0 ) {}

    The latter uses the former. You can find them in the /badgeos/includes/achievement-functions.php if you want to see more information about what they do, or if you want something browser based, http://badgeos.org/api/ should do well enough.

    Michael
    Member
    Post count: 649

    The biggest issue with showing users by achievement ID is that we don’t store a list of users on achievement post meta. We only really store earned achievement data on the user, so it’d be a case of doing a search through all of the user meta for the specific badge ID and grab the user ID from matching rows.

    Once you get to huge amounts of users, that starts becoming a bit costly in the query weight/time.

    Michael
    Member
    Post count: 649

    Still have nothing readymade for you, truth be told. Not sure how code savy you are either. I’ve been working on a possible solution for half an hour and still haven’t hit anything that meets the need of user + count of achievement type + achievement type.

    I’ll share what I ended up with at this point, in case it helps you out or at least saves it for me to return to later if I need 🙂

    function darin_make_array( $object ) {
    	foreach( $object as $property ) {
    		foreach( $property as $key => $value ) {
    			$new_array[] = $value;
    		}
    	}
    	return $new_array;
    }
    
    $users = get_users( array( 'number' => 9999 ) );
    
    $calculated_users = array();
    foreach( $users as $user ) {
    	$achievements = get_user_meta( $user->ID, '_badgeos_achievements', true );
    	if ( '' != $achievements ) {
    		foreach ( $achievements as $achievement ) {
    			$data = darin_make_array( $achievement );
    			var_dump( array_count_values( $data ) );
    		}
    	}
    }
    
    Michael
    Member
    Post count: 649

    We don’t have anything like that readily available, and anything I produce myself would just likely be a similar attempt to what you’ve already tried.

    With that said, I am curious what you have already tried anyway, perhaps I can see some issue points and get it ironed out some more to be workable.

    Preliminary data gathering: by category you mean achievement type?

    Michael
    Member
    Post count: 649
    Michael
    Member
    Post count: 649

    So, regarding the Guest Achievements plugin. I remember looking it over earlier this summer and not completely getting how it worked. However, I looked it over again tonight, and I believe it makes notable more sense to me.

    In short-ish, when a visitor is browsing your site, and looking around, a PHP cookie gets set and incremented on when they visit achievement based pages/urls. These end up being the “achievements you may have earned” If they decide to make an account, and signup, and sign in, the plugin iterates over that saved cookie and tries to award what it can to the user at that time. Not all of them may get awarded, like any that require X number of comments, for example, but it’ll do what it can to award what it can.

    So that said, there’s no real configuration going on that you need to make for the addon specifically. However you would want a public-facing website where they could see potential achievements, if I’m reading the code right. That way the code knows what to try to award.

    It’s also a plugin that won’t work for logged in users, they need to be logged out before anything will get displayed.

    I hope this addresses the confusion about the plugin itself. I am not quite sure what may be going on with regards to the mentioned lessons above, and that may actually be a completely different forum topic to discuss in its own thread.

    Michael
    Member
    Post count: 649

    Hi Jennifer,

    Sorry for the delay in response. Just so I can better see what you’re seeing, the mentioned screenshots would be nice.

    Michael
    Member
    Post count: 649

    Sorry for the long delay, and I remember responding to that same thread on the wordpress.org forums last night regarding this one. Please see my answer there.

    Michael
    Member
    Post count: 649

    Hi Rebecca,

    Sorry for the delay in response to this. One of the available settings for the leaderboard should be what metric to sort by by default. The “Default Rank Metric” setting in your Leaderboard editor.

    Michael
    Member
    Post count: 649

    Hi Tom,

    sorry for the delay in response. I’m comprehending the why for this idea, I’m not quite comprehending exactly how you’re wanting to display it.

    “Why not show him in the center of the ranking with users in the same range?”

    Sort of like taking a slice of “lower ranked” users and dropping them in the middle of the markup?

    I know the leaderboard shortcode takes a limit attribute, which gets used to “limit” how many users to show at one point. An alternative solution to what you’re discussing would be just setting a really high limit so that all of the users get displayed.

    Michael
    Member
    Post count: 649

    Sorry about the long delay in response Suyck.

    Not sure if this is still proving troublesome or if you found a solution since, but it sounds like since you’re coming in from the “side”, necessary triggers aren’t being triggered to make the actual achievement awarded.

    Michael
    Member
    Post count: 649

    Sorry for the long delay Wes,

    I want to let you know that this has now been seen, and I am looking into it. I still haven’t completely figured out the details of it either, it’s eluded me.

    Michael
    Member
    Post count: 649

    Could you please provide a screenshot regarding the missing license code field for Guest Achievements?

    I have no answer myself, regarding the sent email, hopefully someone from LearningTimes has responded since this forum post.

    The progress bar and temporal limits are going to need to be custom done, as we have nothing out of the box for those. The status of a user and various achievements are all stored as user meta.

    A “skeleton idea” for the progress bar is grabbing all of the steps needed for a specific achievement and then grabbing the progress from user meta for the user, and doing the necessary calculations/matching to see how many are completed out of how many are needed.

    Michael
    Member
    Post count: 649

    The [badgeos_achievements] shortcode is built in such a way that it’s only able to do one per page. If I recall right, it’s regarding issues related to ajax and how that all works. I know I recall someone on the wordpress.org forums having found some tabbed solution that was actually working, but I don’t think he’s shared in detail how he managed to get it to work. I don’t have a custom solution worked out on my end either.

    Michael
    Member
    Post count: 649

    Hi Rodrigo,

    Sorry about the absence and long disruption of support service.

    Did you ever get a solution for this worked out? or are you still waiting on a working solution?

    Michael
    Member
    Post count: 649
    in reply to: Possible BUG #5725

    I believe this is a similar bug that you reported on the wordpress.org forum. I’ll probably answer that one there as I think it has a bit more information ready.

    Michael
    Member
    Post count: 649
    in reply to: Re-Direct #5724

    Hi Carl,

    Pleasure to see you here as well, I know I saw some wordpress.org topics from you and will be getting to those over the next few days, hopefully sooner than later.

    It should be pretty straightforward to add a javascript redirect inside a click event callback on the auto message close button. Let me know if you need a possible example of this, and I can see what I can come up with.

    Michael
    Member
    Post count: 649

    Hi Justin,

    Sorry for the very long delay in response to this. Is this still proving to be an issue? or did you manage to get it resolved since posting? I can check on things in our admin if necessary, as well as confirm complete deactivation from the test site if you provide what the url was for that.

    Let me know

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

    Hi Samy, sorry for the long delay in reply to this.

    The Congrats addon is actually a separate addon, and not an update to the Auto Messages addon. They are separate products.

Viewing 20 posts - 441 through 460 (of 649 total)