EDIT stars when editing comment?
-
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
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
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.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
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.Can you share the screenshot of your website general settings.
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'
);
}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' ); }Good idea, let me check.
I am using plugin_dir_url function to set the const variables:
https://tppr.me/23MRHThat’s supposed to decide the HTTP and HTTPS internally.
However, could you fix your issue by the above solution you suggested?Ok issue is now resolved, I made some changes my side, your code is correct
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
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://ww.wp.xz.cn/support/topic/warn-if-user-is-trying-to-leave-1-3-stars/
Good to know it’s fixed on your website π
The topic ‘EDIT stars when editing comment?’ is closed to new replies.