Forum Replies Created

Viewing 15 replies - 1 through 15 (of 23 total)
  • The website is kickmymath.com, and it happens when I try to log in from the main page.

    I’m getting an error since this update. I’ve pasted it below, but I can’t figgure out what has triggered it.

    Fatal error: Uncaught phpmailerException: Invalid address: (setFrom) wordpress@[MyDomain] in /home/chromeac/public_html/kickmymath.com/wp-includes/class-phpmailer.php:1023 Stack trace: #0 /home/chromeac/public_html/kickmymath.com/wp-includes/pluggable.php(352): PHPMailer->setFrom('wordpress@[MyDo...', 'WordPress', false) #1 /home/chromeac/public_html/kickmymath.com/wp-content/plugins/wordfence/lib/wordfenceClass.php(5998): wp_mail('michael@kocher....', '[Wordfence Aler...', 'This email was ...') #2 /home/chromeac/public_html/kickmymath.com/wp-content/plugins/wordfence/lib/wordfenceClass.php(1468): wordfence::alert('[Wordfence Aler...', 'A user with use...', '152.26.179.25') #3 /home/chromeac/public_html/kickmymath.com/wp-includes/class-wp-hook.php(300): wordfence::loginAction('kocher') #4 /home/chromeac/public_html/kickmymath.com/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(NULL, Array) #5 /home/chromeac/public_html/kickmymath.com/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #6 /home/chromeac/publ in /home/chromeac/public_html/kickmymath.com/wp-includes/class-phpmailer.php on line 1023

    @learningtimes Will BadgeOS work with PHP 7? I’m getting pressured into upgrading, but won’t if it’s not yet ready. Thanks for all your awesome work!

    Thread Starter mkocher

    (@mkocher)

    Hello,
    Is there any update on this? We are worried about security by not updating these plugins.

    Thread Starter mkocher

    (@mkocher)

    We are wondering if BadgeOS will be supporting future versions of LearnDash. It’s an awesome way to gamify education, but if LearnDash can’t be compatible with it, could you recommend either another LMS that is compatible, or recommend another achievement plugin?

    Thread Starter mkocher

    (@mkocher)

    Any idea when it will be safe to update?

    You can do it if you implement the myCRED point management system plugin. It has all the infrastructure to let you do just about anything with points, and it works well with BadgeOS. All you’ll need to do is award myCRED points for each badge and use that instead of the BadgeOS points.

    Thread Starter mkocher

    (@mkocher)

    Thanks!

    Thread Starter mkocher

    (@mkocher)

    Thanks so much. I’ll pass it on and keep working. 🙂

    Thread Starter mkocher

    (@mkocher)

    The streak is the count of how many days a user has earned BadgeOS points in a row. It’s stored in the user meta. If they miss a day the streak is set to zero.

    I’ve uploaded a copy if you would like to take a look:
    http://spanish-academy.ca/project/badgeos-add-on.zip

    If it helps, a previous attempt is here:
    http://spanish-academy.ca/project/rejected.zip

    The rejected version was just a modified community add-on, but it had a different method of awarding the badge (rather than enter a value, it just had a bunch of repeated code).

    Thanks for taking a look.

    Thread Starter mkocher

    (@mkocher)

    I was able to modify the plugin so it would give a point based on the percentage, but I’ve been too busy working on an activity streak plugin and a new school project to continue. I’m a noob with PHP and javascript, so these things take me ages. 🙂

    What I have now is an option that gives 1 point per percentage if you meet the minimum passing requirements. So if you get 85%, you get 85 points. I suppose it would be fairly easy to add a multiplier field, but I would rather figure out how to bring in the actual number of quiz points, as that would be a far more powerful option in the long run.

    If I make any progress I’ll post it here.

    Thread Starter mkocher

    (@mkocher)

    Thanks! I’ll look there.

    Thread Starter mkocher

    (@mkocher)

    I’m only a very beginner when it comes to php and javascript, but I might be able to do this on my own if I could figure out how this add-on gets the quiz score from LearnDash.

    I see in the rules-engine.php (line 214) where it checks a grade ( $percentage < $object_arg1 ), but my problem is I can’t seem to figure out where the percentage item is calculated from.

    If you could point me there, that would be a big help!

    Thread Starter mkocher

    (@mkocher)

    Ya, I for what I was building I didn’t want a link.

    Thread Starter mkocher

    (@mkocher)

    I’m not great with php and couldn’t get array_slice() to work right, but I did get it to work by using this. It’s overkill but it does the job and allows the flexability to show the newest X badges. It’s based off the widget.

    This is the short code I made, but you can modify with little trouble.

    function badgetype_achievement($atts) {
    
    $badge_atts = shortcode_atts(array(
            'badgetype' => '',
            'show' => '1',
            'size' => '1000',
            'class' => '',
       		 ), $atts );
    
       		$badgetype = $badge_atts['badgetype'];
    		$number_to_show = $badge_atts['show'];
    		$size = $badge_atts['size'];
    		$badge_type_class =  $badge_atts['class'];
    		$image_size = array($size,$size);
    
    		$thecount	= 0;
    
    	$set_achievements = array($badgetype);
    
    	$stuff = array(
    	'user_id'          => 0,     // The given user's ID
    	'achievement_type' => $badgetype, // A specific achievement type
    	);
    
    $achievements = badgeos_get_user_achievements( $stuff );
    
    			//show most recently earned achievement first
    			$achievements = array_reverse( $achievements );
    
    	foreach ( $achievements as $achievement ) {
    
    			$img = badgeos_get_achievement_post_thumbnail( $achievement->ID, $image_size, 'wp-post-image' );
    			$thumb	= $img ? '<a style="margin-top: -25px;" class="badgeos-item-thumb" href="' . esc_url( $permalink ) . '">' . $img . '</a>' : '';
    		echo '<li id="widget-achievements-listing-item-' . absint( $achievement->ID ) . '" ' . $credly_ID . ' class="'. esc_attr( $badge_type_class )  . esc_attr( $item_class ) . '">';
    						echo $thumb;
    						echo '<a class="widget-badgeos-item-title ' . esc_attr( $class ) . '" href="' . esc_url( $permalink ) . '">' . esc_html( $title ) . '</a>';
    						echo '</li>';
    
    						$thecount++;
    
    						if ( $thecount == $number_to_show && $number_to_show != 0 ) {
    						break; }				
    
    	}
    
    }
    add_shortcode('hugebadge','badgetype_achievement');
Viewing 15 replies - 1 through 15 (of 23 total)