Title: Muhammad Muhaimin's Replies | WordPress.org

---

# Muhammad Muhaimin

  [  ](https://wordpress.org/support/users/warnetsabily/)

 *   [Profile](https://wordpress.org/support/users/warnetsabily/)
 *   [Topics Started](https://wordpress.org/support/users/warnetsabily/topics/)
 *   [Replies Created](https://wordpress.org/support/users/warnetsabily/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/warnetsabily/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/warnetsabily/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/warnetsabily/engagements/)
 *   [Favorites](https://wordpress.org/support/users/warnetsabily/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 74 total)

1 [2](https://wordpress.org/support/users/warnetsabily/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/warnetsabily/replies/page/3/?output_format=md)
[4](https://wordpress.org/support/users/warnetsabily/replies/page/4/?output_format=md)
[5](https://wordpress.org/support/users/warnetsabily/replies/page/5/?output_format=md)
[→](https://wordpress.org/support/users/warnetsabily/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[LearnPress - Fill in Blank Question] This add-on needs to be updated](https://wordpress.org/support/topic/this-add-on-needs-to-be-updated/)
 *  Thread Starter [Muhammad Muhaimin](https://wordpress.org/support/users/warnetsabily/)
 * (@warnetsabily)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/this-add-on-needs-to-be-updated/#post-6727950)
 * Hi Zdenda, about the [fib] shortcode, it is nowhere in the plugin’s documentation.
   
   I think you see it directly in the plugin’s source code. And I found the attribute
   for correct answer there!
 *     ```
       if( 'fib' != $shortcode ) continue;
       $atts = shortcode_parse_atts( $matches[3][$k] );
       $atts = shortcode_atts(
           array(
               'fill'  => ''
           ),
           $atts
       );
       ```
   
 * So we should type in the editor like this:
 *     ```
       The quick [fib fill="brown"] fox jumps over the lazy dog.
       ```
   
 * But certainly we need **an easy option to insert the shortcode**.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[LearnPress - Fill in Blank Question] This add-on needs to be updated](https://wordpress.org/support/topic/this-add-on-needs-to-be-updated/)
 *  Thread Starter [Muhammad Muhaimin](https://wordpress.org/support/users/warnetsabily/)
 * (@warnetsabily)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/this-add-on-needs-to-be-updated/#post-6727866)
 * If LearnPress haven’t had the results section, then another method is to send
   the answers to the Instructor’s email.
 * **This is my trick:**
 * Because the editor is free to insert anything, I insert Jetpack contact form 
   into the answer section.
    The form will have to be submitted by clicking its 
   own button. Then the submitted texts will be sent to the Instructor’s email.
 * It’s so cool 😀
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[LearnPress - Fill in Blank Question] This add-on needs to be updated](https://wordpress.org/support/topic/this-add-on-needs-to-be-updated/)
 *  Thread Starter [Muhammad Muhaimin](https://wordpress.org/support/users/warnetsabily/)
 * (@warnetsabily)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/this-add-on-needs-to-be-updated/#post-6727865)
 * Thanks for your info, it’s a good start.
 * But I think the better approach for this question type is the answers should 
   be able to read by the Instructor.
 * ———-
    This is based on my experience when using Quiz Master Next (now Quiz And
   Survey Master). For the “Choice” types, the answers will be processed automatically
   to get points. But when users give answers to the “Open Answer” types, they won’t
   get points. **All the quiz results are able to read by Admin**.
 * Now the plugin has “Fill In The Blank” type. I haven’t tried it.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[LearnPress - WordPress LMS Plugin for Create and Sell Online Courses] Cannot use object of type LPR_Cart as array](https://wordpress.org/support/topic/cannot-use-object-of-type-lpr_cart-as-array/)
 *  Thread Starter [Muhammad Muhaimin](https://wordpress.org/support/users/warnetsabily/)
 * (@warnetsabily)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/cannot-use-object-of-type-lpr_cart-as-array/#post-6725238)
 * I don’t know whether this is a good idea or not.
    I tried to modify `/inc/cart/
   class.lpr-cart.php` based on this solution:
 * [http://stackoverflow.com/questions/18535885/why-does-my-php-array-give-me-cannot-use-object-of-type-stdclass-as-array](http://stackoverflow.com/questions/18535885/why-does-my-php-array-give-me-cannot-use-object-of-type-stdclass-as-array)
 * I converted all the `$_SESSION` assignments into object hierarchy.
 *     ```
       <?php
   
       /**
        * Class LPR_Cart
        *
        * Simple Cart object for now. Maybe need to expand later
        */
       class LPR_Cart{
           private static $instance = false;
           function __construct(){
               if( self::$instance ) return;
   
               if( !session_id() ) session_start();
               if( empty( $_SESSION->learn_press_cart ) ){
                   $_SESSION->learn_press_cart = array(
                       'cart_id'   => $this->generate_cart_id(),
                       'products'  => array()
                   );
               }
           }
   
           function get_cart_id(){
               return $_SESSION->learn_press_cart->cart_id;
           }
   
           function get_products(){
               return $_SESSION->learn_press_cart->products;
           }
   
           function get_sub_total(){
               $sub_total = 0;
               $products = $this->get_products();
               if( $products ) foreach( $products as $product ){
                   $sub_total += learn_press_is_free_course( $product['id'] ) ? 0 : floatval( learn_press_get_course_price( $product['id'] ) );
               }
               learn_press_format_price( $sub_total );
               return apply_filters( 'learn_press_get_cart_subtotal', $sub_total, $this->get_cart_id() );
           }
   
           function get_total(){
               $sub_total  = $this->get_sub_total();
               $total      = $sub_total;
               return apply_filters( 'learn_press_get_cart_total', $total, $this->get_cart_id() );
           }
   
           function generate_cart_id(){
               return md5( time() );
           }
   
           function add_to_cart( $course_id ){
   
               $course = get_post( $course_id );
               $price  = learn_press_get_course_price( $course_id );
               $quantity = 1;
   
               $_SESSION->learn_press_cart->products->$course_id = array(
                   'id'        => $course_id,
                   'quantity'  => $quantity,
                   'price'     => $price
               );
           }
   
           function empty_cart(){
               unset( $_SESSION->learn_press_cart->products );
               return $this;
           }
   
           function destroy(){
               unset( $_SESSION->learn_press_cart );
           }
           static function instance( $prop = false, $args = false ){
               if( !self::$instance ){
                   self::$instance = new self();
               }
               $ins = self::$instance;
               if( $prop ) {
                   $prop = 'get_' . $prop;
               }
               return $prop && is_callable( array( $ins, $prop ) ) ? call_user_func_array( array( $ins, $prop ), (array)$args ) : $ins;
           }
       }
       if( !is_admin() ) {
           $GLOBALS['learn_press_cart'] = LPR_Cart::instance();
       }
   
       function learn_press_get_cart( $prop = null ){
           return LPR_Cart::instance( $prop );
       }
   
       function learn_press_get_cart_description(){
           $products = learn_press_get_cart( 'products');
           $description = '';
           if( $products ){
               foreach( $products as $prop ){
                   $description .= get_the_title( $prop['id'] );
               }
           }
           return apply_filters( 'learn_press_cart_description', $description );
       }
   
       function learn_press_get_cart_course_url(){
           $products = learn_press_get_cart( 'products');
           $return = '';
           if( $products ){
               foreach( $products as $prop ){
                   $return = get_permalink( $prop['id'] ); break;
               }
           }
           return apply_filters( 'learn_press_cart_course_url', $return );
       }
   
       function learn_press_get_cart_total(){
           return learn_press_get_cart( 'total');
       }
       //learn_press_get_cart_description();
       ```
   
 * But I got this warning when I load a course page:
 * > Warning: Attempt to assign property of non-object in /home3/widyagm/public_html/
   > elektro/wp-content/plugins/learnpress/inc/cart/class.lpr-cart.php on line 15
 * The page was successfully loaded, then I tried take the course again, and I got
   this message in the page:
 * > Congratulation ! You have finished this course
 * But I **still haven’t enrolled** to the course.
    It’s not that easy 🙁
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[LearnPress - WordPress LMS Plugin for Create and Sell Online Courses] Still untranslatable strings](https://wordpress.org/support/topic/still-untranslatable-strings/)
 *  Thread Starter [Muhammad Muhaimin](https://wordpress.org/support/users/warnetsabily/)
 * (@warnetsabily)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/still-untranslatable-strings/#post-6551086)
 * I’ve updated to version 0.9.18.
 * Thanks for the fix ^_^
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[LearnPress - WordPress LMS Plugin for Create and Sell Online Courses] Missing option to set LearnPress profile page](https://wordpress.org/support/topic/missing-option-to-set-learnpress-profile-page/)
 *  Thread Starter [Muhammad Muhaimin](https://wordpress.org/support/users/warnetsabily/)
 * (@warnetsabily)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/missing-option-to-set-learnpress-profile-page/#post-6722803)
 * It seems that the “Profile” page is automatically created.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[LearnPress - WordPress LMS Plugin for Create and Sell Online Courses] Still untranslatable strings](https://wordpress.org/support/topic/still-untranslatable-strings/)
 *  Thread Starter [Muhammad Muhaimin](https://wordpress.org/support/users/warnetsabily/)
 * (@warnetsabily)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/still-untranslatable-strings/#post-6551085)
 * I’ve posted it here:
 * [https://wordpress.org/support/topic/still-untranslatable-strings#post-7445209](https://wordpress.org/support/topic/still-untranslatable-strings#post-7445209)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[LearnPress - WordPress LMS Plugin for Create and Sell Online Courses] Still untranslatable strings](https://wordpress.org/support/topic/still-untranslatable-strings/)
 *  Thread Starter [Muhammad Muhaimin](https://wordpress.org/support/users/warnetsabily/)
 * (@warnetsabily)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/still-untranslatable-strings/#post-6551083)
 * I’ve updated to version 0.9.17, but those 3 strings are still untranslatable.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[LearnPress - WordPress LMS Plugin for Create and Sell Online Courses] Still untranslatable strings](https://wordpress.org/support/topic/still-untranslatable-strings/)
 *  Thread Starter [Muhammad Muhaimin](https://wordpress.org/support/users/warnetsabily/)
 * (@warnetsabily)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/still-untranslatable-strings/#post-6551038)
 * Please add those 3 strings to the translation in the next version. So I don’t
   have to modify them after every update.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[LearnPress – Backup & Migration Tool] Where to import courses?](https://wordpress.org/support/topic/where-to-import-courses/)
 *  Thread Starter [Muhammad Muhaimin](https://wordpress.org/support/users/warnetsabily/)
 * (@warnetsabily)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/where-to-import-courses/#post-6562571)
 * With version 0.9.2, I can import now.
    But there are some exceptions:
    - The Import botton only shows to Instructors. It won’t show to Administrators.
      In fact, Administrators can create courses too. Moreover, they can change 
      the course author.
    - The Import botton won’t show when the course list is empty.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[LearnPress - WordPress LMS Plugin for Create and Sell Online Courses] Still untranslatable strings](https://wordpress.org/support/topic/still-untranslatable-strings/)
 *  Thread Starter [Muhammad Muhaimin](https://wordpress.org/support/users/warnetsabily/)
 * (@warnetsabily)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/still-untranslatable-strings/#post-6550947)
 * I’ve updated to version 0.9.13.3, only these strings remaining:
 * `inc/admin/meta-boxes/fields/class.course-lesson-quiz.php`
    line 120: `placeholder
   ="Enter the section name and hit enter"` line 172: `placeholder="Enter the section
   name and hit enter"` line 215: `placeholder="Type section's name and hit enter"`
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Zerif Lite] Adding a Favicon](https://wordpress.org/support/topic/adding-a-favicon-4/)
 *  [Muhammad Muhaimin](https://wordpress.org/support/users/warnetsabily/)
 * (@warnetsabily)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/adding-a-favicon-4/#post-5923451)
 * With WordPress 4.3, now we can set the site icon from Customizer.
 *   Forum: [Reviews](https://wordpress.org/support/forum/reviews/)
    In reply to:
   [[Zerif Lite] It is awesome, but…](https://wordpress.org/support/topic/it-is-awesome-but-1/)
 *  Thread Starter [Muhammad Muhaimin](https://wordpress.org/support/users/warnetsabily/)
 * (@warnetsabily)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/it-is-awesome-but-1/#post-7993853)
 * Can I submit my translation?
    it’s Indonesian.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Yoast SEO - Advanced SEO with real-time guidance and built-in AI] Google search results only showing path and no longer url](https://wordpress.org/support/topic/google-search-results-only-showing-path-and-no-longer-url/)
 *  [Muhammad Muhaimin](https://wordpress.org/support/users/warnetsabily/)
 * (@warnetsabily)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/google-search-results-only-showing-path-and-no-longer-url/#post-6466754)
 * I don’t know.
    But the Google’s documentation page shows the example screenshot,
   only breadcrumb path in it, no URL. Maybe Yoast want to comply with Google’s 
   standard.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Yoast SEO - Advanced SEO with real-time guidance and built-in AI] Google search results only showing path and no longer url](https://wordpress.org/support/topic/google-search-results-only-showing-path-and-no-longer-url/)
 *  [Muhammad Muhaimin](https://wordpress.org/support/users/warnetsabily/)
 * (@warnetsabily)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/google-search-results-only-showing-path-and-no-longer-url/#post-6466742)
 * It is called **Breadcrumbs**.
    and that’s normal, because it is one of recommended
   tools to **Enhance Presentation in Search Results**.
 * [https://developers.google.com/structured-data/breadcrumbs](https://developers.google.com/structured-data/breadcrumbs)

Viewing 15 replies - 1 through 15 (of 74 total)

1 [2](https://wordpress.org/support/users/warnetsabily/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/warnetsabily/replies/page/3/?output_format=md)
[4](https://wordpress.org/support/users/warnetsabily/replies/page/4/?output_format=md)
[5](https://wordpress.org/support/users/warnetsabily/replies/page/5/?output_format=md)
[→](https://wordpress.org/support/users/warnetsabily/replies/page/2/?output_format=md)