Code Monkey home page Code Monkey logo

kk-star-ratings's Introduction

kk Star Ratings - A WordPress Plugin

icon-plugin-installs icon-plugin-downloads-per-day icon-plugin-downloads icon-wp-rating

icon-plugin-version icon-wp-version icon-wp-tested icon-php-version License

kk Star Ratings allows blog visitors to involve and interact more effectively with your website by rating posts.

This plugin has been renewed from the ground up as of v5.

Table of contents

Features

kk Star Ratings is a widely used star rating plugin for wordpress. Here are some highlighted features:

  • User defined amount of star ratings (5 as default) in your posts, pages and publicly accesible custom post types.

  • Structured data supporting google rich snippets showing the star ratings in search results which has the potential to drive more traffic to your website.

  • Widespread coverage of custom hooks.

  • Full control via options page. You can,

    • Enable or disable globally.

    • Disable star ratings in posts that belong to certain categories.

    • Choose where to show the star ratings. It can be on the homepage, in archives, in posts, in pages and/or in custom post types.

    • Control the structured data schema and type.

    • Restrict votings per unique ip.

    • Allow voting in archives.

    • Allow guests to vote.

    • Customize position within the post content.

    • Adjust the amount of stars.

  • And much more...

Installation

Auto

  1. Navigate to your wordpress plugins dashboard page.
  2. Upload the plugin zip file.
  3. Activate the plugin via the wordpress plugins dashboard page.
  4. Adjust the plugin options under the kk Star Ratings menu in wp-admin.

Manual

  1. Extract the plugin zip file.
  2. Upload/move the folder kk-star-ratings to the wp-content/plugins directory.
  3. Activate the plugin via the wordpress plugins dashboard page.
  4. Adjust the plugin options under the kk Star Ratings menu in wp-admin.

FAQs

What should I do if the structured data is not picked by search result pages?

Please have patience as we have no control over how google or any search engine indexes your pages. It might take some days or even weeks for the robots to crawl the ratings.

I have been using a version of this plugin prior to v5. Is it safe for me to update?

All previous ratings and options will be preserved. However, since v5 has been renewed from scratch, we do not support downgrading after upgrading to v5.

I found a bug or want to contribute.

The source of this plugin is located at Github. Feel free to post an issue or submit a pull request.

Changelog

Please see the CHANGELOG for more information on what has changed.

Version 4.x has been archived as of July 2021.

Version 3.x has been archived as of October 2019.

Version 2.x has been archived as of July 2019.

Version 1.x has been archived as of March 2016.

Contributing

Please see CONTRIBUTING and CONDUCT for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

Attribution

The pull request template and issue template have been adapted from the thephpleague's skeleton package.

License

The GPLv2 or later license. Please see the License File for more information.

kk-star-ratings's People

Contributors

charamza avatar gbretas avatar godthor avatar grappler avatar kamalkhan avatar leecollings avatar manooweb avatar nio-av avatar osaajani avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

kk-star-ratings's Issues

Image links not updated after domain changed

I've started to host my Wordpress instance on another IP address, but Kk star images are still taken from another domain (and it doesn't work):

Here is the CSS used per Chrome Dev Tools:

(index):49
.kk-star-ratings .kksr-star.gray {
    background-image: url(http://MY.OLD.IP.ADDRESS/wp-content/plugins/kk-star-ratings/gray.png);
}

The following code is not used:

css.css?ver=2.5.1:24
.kk-star-ratings .kksr-star.gray {
    background-image: url(gray.png);
}

and I don't understand how to fix it. Tried to delete plugin and install again - doesn't help.

Access Control and extract count and rating per post

Hello,

I would like to use your plugin in a wordpress website but there are 2 things I didn't manage to clarify.

Is there a way to add extra access controls to the rating ? For instance, everybody can see the rating but only authenticated people can rate.

Is there a function to retrieve the count and rating of a post ? I would like to implement an aggregateRating in a custom schemaorg.

Thanks.

bhittani_plugin_kksr_js is not defined

Hello,

I have an error in my console with this plugin ! I really loved to use it but with this error my page is not displaying.
The error is : Uncaught ReferenceError : bhittani_plugin_kksr_js is not defined

Could you help ?

Thank you

Notice: A non well formed numeric value encountered

When using PHP 7.1.1, viewing the list of Pages in WP Admin displays the message:

Notice: A non well formed numeric value encountered

This is displayed in some locations in the table under the 'Order' and 'Readibility' columns, and is pointing to index.php at line 606.

loading KK Star Rating asyncron

If you use Google PageSpeed Insights, you will see that Google means it will be better if KK Star Rating CSS loading asyncron.

How to manage strars?

It will be a nice addon to have an start numer star for all single posts. Or manage the stars wthout enter the single post..

Rating total is wrong when IP voting is enabled

Hi , thanks for the awesome plugin

I have issue when IP based voting is enables, Voting total is reading old value after attempting to vote for the second time. It is disabled which is fine and as expected but the issue it reads the previous total voting

it seems when the Ajax return disabled ="True" , Hover not reading the updated total voting

waiting your feed back.

thanks again for your great plugin

Not showing up on Shortcode

The rating is enabled on all posts and when using the shortcode it's not working it's staying at the default position, how to override the position with shortcode?

Problem showing top 10

Hi, I am trying to show top 10 rated pictures, I cannot figure out how to do this Can you help me? The website is http://babyraters.com/top-10/ The plugin works very well everywhere else, but I am missing something - thanks in advance - Larry Newman

Display on home page and position

Hi,
I notice two problems :

  1. The ratings are displayed on home page, even if "show on home page" is disabled in settings. For info in my case, home page is a static page.
  2. On home page it shows on the top, even if the position is set to "bottom...". It happens also sometimes in other pages.

Thank for your support, and great plugin by the way.

Compatible with WP Fastest Cache

It will be nice, when KK Star rating will be compatible with WP Fastest Cache. You can vote multiple if the page with WP Fastest Cache will cache and you reload the page after a vote.

Change sorting

With version 2.6 of the plugin, widgets and shortcodes are displaying posts for total number of votes.

Is it possible to add option to sort by average?

How to get kk star rating out of description itemprop

my website is using marketpress for ecommerce and I can't seem to get kk star ratings out of the description field so that my schema and rich snippets are right .. as you can see below, the kk star rating and aggregaterating is within my description for my products. I need to be able to move the ratings outside that description so that my description for my product doesn't show like this: " 3.5 (86.67%) 3 votesScentsy WHITE TEA & CACTUS KITCHEN SOAP- A clean, crisp, and refreshing floral mix with green notes."
2018-05-08_12-14-46

The problem to save change!

Hello, developer!

After using some time, do not know for whatever reason, now I can not save any settings. Despite the "saved" message, however, things remain the same.

I realize that some other people have the same problem, but there is no way to solve it.

I like this lightweight plugin and do not want to switch to another complicated plugin!

Hope you will help!

Thanks very much.

Override star-placement with [kkstarratings] tag?

Would it be possible to allow users to use the [kkstarratings] code to override the automatic placement in a post?
I really love the plugin and like that you may exclude categories. As I have just begun using the plugin it's nice that all posts now have the ability to be "rated". However, I really would love the option to insert the "ratings" on specific places in some posts with the [kkstarratings] tag.
Would it be possible to change the code so that if a [kkstarratings] is in the text the automatic insertion (chosen in settings) would be left out?

Does it make sense?

I really hope that it is possible... :-)
Best wishes
Lars

Right to left star rating

Hi Kamal Khan
How can i change the hover effects for rating to RTL?
In other word i want to fill the stars from right. plz check the attached picture.
Thanks for your attention.
capture

Change color for "Thank You"

Hi,
I can't find the css-style for thankyou. I don't want the green.
It is too fast for firebug and it is not in the css.css.

Can You tell me the css-class?

Thank You,
Marion

KK-Star-Ratings Listify WP Job Manager Custom Post Type

Kamal:

I've been using this plugin for a while now on a bunch of sites. It works awesome. Never had a problem deploying it before until I tried to integrate it with a custom post type. I'm trying to substitute your rating system in Listify and figured out how to add the rating code to my template but can't get it to show up because it's a custom post type. How do I get it to recognize job_listing from WP Job Manager?

Hide after click on rating

Hi!
I want the rating field to disappear after someone clicks on the rating. How can I solve this?

Regards!

remove rating from a specific post

Hi,
I have enabled the rating on posts BUT if I dont want the rating to be visiable on a specific post how do I remove the rayings from that post?

Best regards

Not show stars rating in search result

It has been 3 weeks since I set rating for my article, already enabled Google Rich Snippets in setting but it doesn't show stars rating in search result.

Renew plugin from scratch

I am currently working on a framework and will be building the plugin from scratch so until then I will not be fixing the current issues as they will be deprecated.

Problem with https

Hi,

something doesn't seem to work with the $this->enqueue_css('', self::file_uri('css.css')). In the URL version of https the images are always played with http.

Javascript To Footer How To?

I want to move kk star ratings's javascript to footer:

<script type="text/javascript">var bhittani_plugin_kksr_js = {"nonce":"2a29e98257","grs":true,"ajaxurl":"https:\/\/tosunkaya.com\/wp-admin\/admin-ajax.php","func":"kksr_ajax","msg":"Makaleye Oy Verin","fuelspeed":400,"thankyou":"Te\u015fekk\u00fcrler :)","error_msg":"Bir hata olu\u015ftu :(","tooltip":"0","tooltips":[{"tip":"Be\u011fenmedim","color":"#FF2600"},{"tip":"\u0130yi De\u011fil","color":"#FFA200"},{"tip":"Eh i\u015fte","color":"#EEFF00"},{"tip":"\u0130yi","color":"#AEFF00"},{"tip":"S\u00fcper","color":"#00F508"}]};</script>

how to do this? It is automatically adding. Please help me.

my website: https://tosunkaya.com

I tried remove this code and add to footer, cache didnt work with.

<script type="text/javascript" defer src="/wp-content/plugins/kk-star-ratings/js.min.js"></script> to footer and remove code from plugin index.php

add_action('wp_enqueue_scripts', array($kkStarRatings_obj, 'js'));

This didnt work. Please help.

Feature Request: Ability to check for a custom post type so schema.org spec could be changed.

I'm just giving the plugin a try. It is indeed very straight forward and easy to set up, thanks!

Anyway, I believe users would benefit a lot more if they could fit the ratings to the right schema.org spec. The plugin could offer an option to choose custom post types such as product, recipe, book, movies etc, and then output the proper schema.org spec for the ratings. I believe this way the content being served by WordPress would be more coherent for generating the Google Rich Snippets. Those custom post types are very generic and a lot of sites are focused on those kind of content nowadays.

Being able to output the right schema.org spec would be great! Another extra option could allow the user to define his/her own schema.org spec.

I use WordPress for a food restaurant website to display a custom food menu post type, I also use WooCommerce Plugin. This custom post type is already set up so that Google can display rich snippets, but what I'm missing is the schema.org AggregateRating spec.

I'll do my best to build this options myself as I'm not a dev, and if they fit well perhaps I could make a PR.

Thanks in advance.

Voting not working on mobile

The voting is not working on mobile devices, nor are the starts populating. Do you have a solution already built into the plugin?

Half of my visitors are on mobile devices so it would be great if I could have mobile users vote.

Developers needed! Help to improve the plugin!

Hi there. I hope all of you are doing well!

Although this is a great plugin, I haven't seem any new features and updates in a very long time. So I thought it'd be a valid point to invite the plugin's users who are comfortable with programming to come up with a few enhancements and updates.

Anyone interested on helping to enhance this plugin?


While using the plugin I've managed to:

  • Completely redesign the settings page with a new UI, making it responsive and a bit more elegant.
  • Internationalize the whole plugin allowing translations.

New options

  • Added "Show on Post Types" option, to allow the star ratings to be displayed under custom post types.
  • Added new "Custom Position" option so users are free to set a position with their own custom css.

This is a work in progress, HOWEVER,
As I'm not a developer, I'm missing the skills to build the functions as they should be... I've created the functions, and although they're working, I'm sure they're totally messed by my lack of programming knowledge.

Todo:

  • Create a "get post types" function that gets all the not built_in custom post types and returns an array of options.

  • Create a new form element "select multiple" field under markup.class.php to grab the options from the "get post types" function.

  • Create a kind of is_post_type() function to check against the array of selected post types, so we can filter for which custom post types to display the star ratings when the option "Show on Post Types" is enabled.

For anyone interested on trying and improving my version of the KK Start Ratings, please go on and mess around with the plugin files under the following repository: https://github.com/monecchi/KK-Star-Ratings-New-UI.git

captura de tela 2016-11-30 as 22 15 41

Can not save setting

Hello developer,

I have problem with saving change of setting after using for a time. At the beginning I can save and reset the rating normally. The problem may related when I switch to unique voting from non unique voting and for the cache plugin, I still can do multi votes from 1 IP, that might cause a wrong statistic and conflict

Fix bug change size of star

Hello everyone,
In option, use can setting height and width of star image. But it display wrong.
To fix this bug:
in file index.php, line 129,130,131.
replace that line by

echo $star_gray || $star_w != 24 ? '.kk-star-ratings .kksr-star.gray { '.($star_gray ? 'background-image: url('.$star_gray.'); ' : '').($star_w != 24 ? 'background-size: '.$star_w.'px; ' : '').'}' : '';
echo $star_yellow || $star_w != 24 ? '.kk-star-ratings .kksr-star.yellow { '.($star_yellow ? 'background-image: url('.$star_yellow.'); ' : '').($star_w != 24 ? 'background-size: '.$star_w.'px; ' : '').'}' : '';
echo $star_orange || $star_w != 24 ? '.kk-star-ratings .kksr-star.orange { '.($star_orange ? 'background-image: url('.$star_orange.'); ' : '').($star_w != 24 ? 'background-size: '.$star_w.'px; ' : '').'}' : '';

Help with ratings not in google

Is there an update to the version I have, because it doesn't seem to be working like it used to. Which is really sad. Version 2.6 - been using plugin for years and seems like it just stopped really working .. also, was wondering if you could help me get it out of the area it shows up in on my product page .. drives me crazy that it's way down there instead of by the product. Example: https://www.scentswarmers.com/buy/scentsy/zen-rock-2

Error in Failure Console

When i go to my homepage and use the failure console, this JS failure is shown.

TypeError: k[l] is undefined
c.fn.kkstarratings.fetch/<.success/<()
.each()
c.fn.kkstarratings.fetch/<.success()
m.Callbacks/j()
m.Callbacks/k.fireWith()
x()
.send/b()

Problems to save changes !!

Hello!

I'm having trouble saving some changes to the plugin settings, for example I tried to activate the "Unique Based On User IP" option, I click save but it does not save the settings, not even for any other option I'm getting.

can anybody help me?

Thank you!

Source Code is a mess

Hi Kamal,
The plugin is adding a lot of \\\ in the source code of my web pages.
It is even too heavy to view the code in a browser.
What am I doing wrong?
Best L
NB : kk star ratings is not activated right now!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.