Forum Replies Created

Viewing 15 replies - 1 through 15 (of 55 total)
  • Thread Starter ashtonej

    (@ashtonej)

    I’ll try it. How do I make sure that the website cache is 24 hours or less?

    Thread Starter ashtonej

    (@ashtonej)

    The fix didn’t work

    Thread Starter ashtonej

    (@ashtonej)

    The troubleshooter did not find conflicts.

    {
      "systemData": {
        "PLUGINVERSION": {
          "system": "6.9.2",
          "req": "6.0.0",
          "type": "version",
          "name": "Blog2Social Version",
          "link": "https://www.ebcteflcourse.com/wp-admin/plugins.php",
          "success": true
        },
        "WORDPRESSVERSION": {
          "system": "5.9.2",
          "req": "4.7.0",
          "type": "version",
          "name": "Wordpress Version",
          "link": "https://www.blog2social.com/en/faq/index.php?action=artikel&cat=1&id=58&artlang=en",
          "success": true
        },
        "HEARTBEAT": {
          "system": true,
          "req": true,
          "type": "active",
          "name": "Wordpress Heartbeat",
          "link": "https://www.blog2social.com/en/faq/index.php?action=artikel&cat=1&id=58&artlang=en",
          "success": true
        },
        "PHPVERSION": {
          "system": "7.4.28",
          "req": "5.5.3",
          "type": "version",
          "name": "PHP Version",
          "link": "https://www.blog2social.com/en/faq/index.php?action=artikel&cat=1&id=58&artlang=en",
          "success": true
        },
        "PHPCURL": {
          "system": true,
          "req": true,
          "type": "active",
          "name": "PHP Curl",
          "link": "https://www.blog2social.com/en/faq/index.php?action=artikel&cat=1&id=58&artlang=en",
          "success": true
        },
        "PHPMBSTRING": {
          "system": true,
          "req": true,
          "type": "active",
          "name": "PHP mbstring",
          "link": "https://www.blog2social.com/en/faq/index.php?action=artikel&cat=1&id=58&artlang=en",
          "success": true
        },
        "PHPDOM": {
          "system": true,
          "req": true,
          "type": "active",
          "name": "PHP Dom",
          "link": "https://www.blog2social.com/en/faq/index.php?action=artikel&cat=1&id=58&artlang=en",
          "success": true
        },
        "MYSQLVERSION": {
          "system": "5.5.5",
          "req": "5.5.3",
          "type": "version",
          "name": "MySql Version",
          "link": "https://www.blog2social.com/en/faq/index.php?action=artikel&cat=1&id=58&artlang=en",
          "success": true
        },
        "HOTLINKPROTECTION": {
          "system": true,
          "req": true,
          "type": "active",
          "name": "Hotlink Protection (disabled)",
          "link": "https://www.blog2social.com/en/faq/index.php?action=artikel&cat=9&id=80&artlang=en",
          "success": true
        },
        "OPENSSL": {
          "system": true,
          "req": true,
          "type": "active",
          "name": "OpenSSL",
          "link": "https://www.blog2social.com/en/faq/index.php?action=artikel&cat=1&id=58&artlang=en",
          "success": true
        }
      },
      "blogData": {
        "blogUrl": "https://www.ebcteflcourse.com",
        "blogUserId": 1,
        "options": {
          "post_filters": {
            "searchPostTitle": "",
            "searchAuthorId": 0,
            "searchPostStatus": "",
            "searchPostShareStatus": "",
            "searchSchedDate": "",
            "searchPostCat": 0,
            "searchPostType": "",
            "postsPerPage": 25,
            "searchPostSharedById": 0,
            "searchSharedToNetwork": 0,
            "searchSharedAtDateStart": 0,
            "searchSharedAtDateEnd": 0
          },
          "last_visited_network": "2022-03-11 08:41:47",
          "link_no_cache": {
            "1": 0,
            "3": 1,
            "19": 1
          }
        },
        "WP_MEMORY_LIMIT": "40M",
        "max_execution_time": "300",
        "version": {
          "B2S_PLUGIN_USER_VERSION": 0,
          "B2S_PLUGIN_VERSION": "692",
          "B2S_PLUGIN_PERMISSION_INSIGHTS": 0,
          "B2S_PLUGIN_USER_VERSION_NEXT_REQUEST": 1647009554
        },
        "theme": "Divi"
      },
      "pluginData": [
        {
          "name": "Advanced Database Cleaner",
          "warning": false
        },
        {
          "name": "Asset CleanUp: Page Speed Booster",
          "warning": false
        },
        {
          "name": "Better Search Replace",
          "warning": false
        },
        {
          "name": "Blog2Social: Social Media Auto Post & Scheduler",
          "warning": false
        },
        {
          "name": "Business Reviews Bundle",
          "warning": false
        },
        {
          "name": "Classic Widgets",
          "warning": false
        },
        {
          "name": "Download After Email",
          "warning": false
        },
        {
          "name": "Duplicator",
          "warning": false
        },
        {
          "name": "Freesoul Deactivate Plugins",
          "warning": false
        },
        {
          "name": "Plugins Garbage Collector (Database Cleanup)",
          "warning": false
        },
        {
          "name": "Regenerate Thumbnails",
          "warning": false
        },
        {
          "name": "Shareaholic - Grow and Engage Your Audience",
          "warning": false
        },
        {
          "name": "Smash Balloon Instagram Feed",
          "warning": false
        },
        {
          "name": "SMTP Mailer",
          "warning": false
        },
        {
          "name": "Smush",
          "warning": false
        },
        {
          "name": "WordPress Importer v2",
          "warning": false
        },
        {
          "name": "WordPress Popular Posts",
          "warning": false
        },
        {
          "name": "WP Fastest Cache",
          "warning": false
        },
        {
          "name": "Yoast Duplicate Post",
          "warning": false
        },
        {
          "name": "Yoast SEO",
          "warning": false
        }
      ]
    }
    Thread Starter ashtonej

    (@ashtonej)

    Hi,

    It was the latest version available in the WP plugin list.

    I have been using Blog2Social free version for about one year. Today, for a reason I do not understand, it broke my site.

    Thanks,

    Jim

    ashtonej

    (@ashtonej)

    I managed to get a unique ID displayed on the certificate. It uses the order number.

    I am still trying to find the grade. Any suggestions appreciated.

    /*
    * Certificate fields
    */
    
    /* EWS Change - Custom Shortcode */
    function lpuniqueid_function() {
    	global $wpdb;
    	$userid = get_current_user_id();
    	$courseid = get_the_ID();
    	
    	$sql = "SELECT ref_id FROM wp_learnpress_user_items WHERE user_id = $userid AND item_id = $courseid;";
    	$refid = $wpdb->get_var($sql);
    	
    	$ordernumber = "#" . str_pad($refid, 10, '0', STR_PAD_LEFT);
    
        return $ordernumber;
    }
    add_shortcode('lpuniqueid', 'lpuniqueid_function');
    
    /* Adds new shortcode option to cert editor */
    add_filter( 'certificates/fields', function($fields) {
            $fields[] = array(
                   'name'  => 'uniqueid',
                   'icon'  => 'dashicons-clipboard',
                   'title' => __( 'Unique ID', 'learnpress-certificates' )
           );
            return $fields;
    });
    
    if (class_exists('LP_Certificate_Layer')) {
    class LP_Certificate_Shortcode_Layer extends LP_Certificate_Layer {
            public function apply( $data ) {
                   $this->options['text'] = do_shortcode('[lpuniqueid course_id="' . $data['course_id'] . ']');
            }
    }
    }
    ashtonej

    (@ashtonej)

    Hi All,

    @rotornut44 thanks for sharing the code.

    I am a WordPress and Learnpress novice. Do you know how I can read the order number and the grade for the person’s course? I would like to use your code as a basis for doing this but I do not know how to find the order number and grade.

    The idea is that the order number will be used as the unique certificate number and showing the person’s final grade on a certificate is always useful.

    I will share my result when it is working.

    Thanks,

    Jim

    Thread Starter ashtonej

    (@ashtonej)

    Thanks but this won’t work for what I need.

    I will apply my changes to Learnpress upgrades.

    Thread Starter ashtonej

    (@ashtonej)

    I found that what I want isn’t possible in Learnpress so I edited the checkout template and form to correct the confusing English on the Checkout form when it displays returning customer and new customer and changed the “Back to class” text to “Back to course”. I also added a div sith and id and class to the “Back to class” link.

    I know that if you don’t incorporate my changes, I’ll have to reapply the modification when you change versions.

    If possible, I recommend that you add functionality to tailor the words you display to customers. It will make the customer journey better.

    This worked for me.

    Create your own custom-built course list page.

    Add a 301 redirect to your .htaccess file that redirects the default Learnpress course page URL to the URL of your new course.

    On your custom-built page, make your HTML for each course and include an enrol or purchase button using shortcode [learn_press_button_enroll id=nnnn text=’enrol text’]
    [learn_press_button_purchase id=nnnn text=’purchase text’]. NOTE: nnnn is the WordPress post_id for the course.

    In the Learnpress settings tab “Courses”, select “Course” in the “Single Course Permalink” section. Make sure you select “Course” because if you select anything else by mistake your redirect will cause an endless loop.

    Thread Starter ashtonej

    (@ashtonej)

    Thanks Dharmesh. All working now.

    That explains it.

    My host uses PHP 5.5.31

    Will there be an upgrade to more modern PHP versions soon?

    Same here.

    It is causing problems. I cannot even disable it through WordPress because it does not display on the list of plugins.

    I had to go to the server and rename the directory to make it stop.

    Thread Starter ashtonej

    (@ashtonej)

    solved – conflict with “Autoptimize” plugin

    Thread Starter ashtonej

    (@ashtonej)

    Yes and here’s the code it creates.

    I used the one you suggested. It didn’t work. I then tried another. It didn’t work either.

    Here’s the code they created.

    <aside id=”text-55″ class=”widget widget_text”>
    <div class=”textwidget”>
    <div class=”ecwid-shopping-cart-product”>
    <div class=”ecwid ecwid-SingleProduct ecwid-Product ecwid-Product-51574744″ itemscope itemtype=”http://schema.org/Product&#8221; data-single-product-id=”51574744″>
    <div itemprop=”picture”></div>

    <div class=”ecwid-title” itemprop=”title”></div>

    <div itemtype=”http://schema.org/Offer&#8221; itemscope itemprop=”offers”>
    <div class=”ecwid-productBrowser-price ecwid-price” itemprop=”price”></div>
    </div>
    <div itemprop=”options”></div>
    <div itemprop=”addtobag”></div>
    </div>
    </div>
    </div>
    </aside>
    <aside id=”shortcode-widget-2″ class=”widget shortcode_widget”>
    <div class=”textwidget”>
    <div class=”ecwid-shopping-cart-product”>
    <div class=”ecwid ecwid-SingleProduct ecwid-Product ecwid-Product-51574744″ itemscope itemtype=”http://schema.org/Product&#8221; data-single-product-id=”51574744″>
    <div itemprop=”picture”></div>

    <div class=”ecwid-title” itemprop=”title”></div>

    <div itemtype=”http://schema.org/Offer&#8221; itemscope itemprop=”offers”>
    <div class=”ecwid-productBrowser-price ecwid-price” itemprop=”price”></div>
    </div>
    <div itemprop=”options”></div>
    <div itemprop=”addtobag”></div>
    </div>
    </div>
    </div>
    </aside>

    Thread Starter ashtonej

    (@ashtonej)

    FYI

    I create http://www.ebcteflcourse.com/ecwidmadridtest/

    It contains the embed code and also a shortcode pointing to the embed code.

    As you will see, nothing appears.

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