• Resolved Reflecting

    (@reflecting)


    I just set up Badges OS. I first set two achievement types: Badges which was already there by default and Steps. However, when I added individual badges and steps for those badges they all got added individually as Achievement Types. I didn’t think much of it, but when I tested my site as a non-admin user who hadn’t earned any badges, I’m only seeing “No steps to Display at this time.” It works perfectly when I test it as admin, but when at a different level (I’m using S2 Members) it shows nothing…doesn’t show what other people have earned and doesn’t show what I can earn.

    site is https://www.optionmillionaires.com and I’m running the latest version of everything…WordPress, BuddyPress, bbPress…

    https://www.ads-software.com/plugins/badgeos/

Viewing 4 replies - 16 through 19 (of 19 total)
  • Thread Starter Reflecting

    (@reflecting)

    I think it was a CDN issue as I think I finally got it resolved now. As far as the plugin conflict goes, the my developer who helped us to integrate the SMS plugin that we have in place currently couldn’t see what the issue was either. He said it would help if he knew what specific global variable was not being referenced so he could investigate further. Do you have more specific information for me? We really want to be able to use this plugin, but just can’t currently. I am looking into another SMS solution, but it would also need to be integrated into the site and I’m not 100% positive what the issue was to begin with that caused the conflict.

    Michael Beckwith

    (@tw2113)

    The BenchPresser

    $GLOBAL[‘badgeos’] is the one we store our PHP object instance in.

    The function used by the ajax to fetch achievement data:

    function badgeos_get_achievement_types_slugs() {
    
    	// Assume we have no registered achievement types
    	$achievement_type_slugs = array();
    
    	// If we do have any achievement types, loop through each and add their slug to our array
    	if ( isset( $GLOBALS['badgeos']->achievement_types ) && ! empty( $GLOBALS['badgeos']->achievement_types ) ) {
    		foreach ( $GLOBALS['badgeos']->achievement_types as $slug => $data )
    			$achievement_type_slugs[] = $slug;
    	}
    
    	// Finally, return our data
    	return $achievement_type_slugs;
    }

    For whatever reason with that plugin active, we were getting very wonky results out of the $GLOBALS['badgeos']->achievement_types part of it.

    Thread Starter Reflecting

    (@reflecting)

    Thank you for the specifics. Do you think it could be an issue of too many plugins trying to call for level specific information at the same time in general? Wondering too about having different plugins all accessing the user profile area…For example, the gd bbPress Toolbox adds a signature form, the sms plugin adds a phone number field, the buddypress of course is integrated, and of course S2 Members. Not sure…just guessing.

    Michael Beckwith

    (@tw2113)

    The BenchPresser

    No, I can’t think of that being of any specific issue here. The parts I outlined above have nothing to do with that anyway.

Viewing 4 replies - 16 through 19 (of 19 total)
  • The topic ‘Only Admin Can View Achievements Page’ is closed to new replies.