• Resolved Wayne

    (@waynep16)


    How do we see or edit stars on a comment?

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Author Fahid Javid

    (@fahidjavid)

    Hi Wayne,

    This is a fair system and there is no way to edit the stars/rating. Why you think there should be an option to edit?

    Regards,

    Fahid

    Thread Starter Wayne

    (@waynep16)

    well. I guess you’re right but atleast we need to see the rating on the back end in comments section so we know what the rating was or even add it to the new comment email also so when admin is moderating comments we see the stars

    Thread Starter Wayne

    (@waynep16)

    I think there is a bug in your new release, you are enquing font awesome to the back end in http so it doesnt show the stars

    In the console log I see an error

    Mixed Content: The page at ” was loaded over HTTPS, but requested an insecure stylesheet /plugins/stars-rating/includes/css/font-awesome.min.css?ver=4.7.0′. This request has been blocked; the content must be served over HTTPS.

    https://snipboard.io/oI80pU.jpg

    Plugin Author Fahid Javid

    (@fahidjavid)

    Hi Wayne,

    Delete the plugin and install it again, see if that fixes the issue.

    Also, ensure that your site URL is HTTPS in general settings.

    Regards,

    Fahid

    Thread Starter Wayne

    (@waynep16)

    Still no, your enque of wp-content/plugins/stars-rating/admin/css/stars-rating-admin.css?ver=1.0.0′ is done as http not https

    This request has been blocked; the content must be served over HTTPS.

    Plugin Author Fahid Javid

    (@fahidjavid)

    Can you share the screenshot of your website general settings.

    Thread Starter Wayne

    (@waynep16)

    Line 65 of stars-rating/includes/class-stars-rating.phpshould be something like this 

    public function enqueue_admin_scripts() {
    // Enqueue Font Awesome script with HTTPS
    wp_enqueue_style(
    'fontawesome',
    'https://' . PLUGIN_INCLUDE_URL . 'css/font-awesome.min.css',
    array(),
    '4.7.0'
    );
    }
    Thread Starter Wayne

    (@waynep16)

    My whole site is SSL , its just your admin page on edit-comments.php that is trying to load font-awesome insecure,

    Maybe can try something like ?

    public function enqueue_admin_scripts() {
        // Check if the site is served over HTTPS
        $protocol = is_ssl() ? 'https' : 'http';
    
        // Enqueue Font Awesome script with the appropriate protocol
        wp_enqueue_style(
            'fontawesome',
            $protocol . '://' . PLUGIN_INCLUDE_URL . 'css/font-awesome.min.css',
            array(),
            '4.7.0'
        );
    }
    

    Plugin Author Fahid Javid

    (@fahidjavid)

    Good idea, let me check.

    Plugin Author Fahid Javid

    (@fahidjavid)

    I am using plugin_dir_url function to set the const variables:
    https://tppr.me/23MRH

    That’s supposed to decide the HTTP and HTTPS internally.
    However, could you fix your issue by the above solution you suggested?

    Thread Starter Wayne

    (@waynep16)

    Ok issue is now resolved, I made some changes my side, your code is correct

    Plugin Author Fahid Javid

    (@fahidjavid)

    Yey! good to know ??

    Can you share the details what was causing the issue? So it can help others here if they encounter such issue?

    Thanks

    Thread Starter Wayne

    (@waynep16)

    Issue was, we are using WP multi site with sub domains for each site (on staging server) and the setting for individual domain was mapped to http not https ! this was changed and now all working.

    ps please check https://www.ads-software.com/support/topic/warn-if-user-is-trying-to-leave-1-3-stars/

    Plugin Author Fahid Javid

    (@fahidjavid)

    Good to know it’s fixed on your website ??

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘EDIT stars when editing comment?’ is closed to new replies.