Giter Site home page Giter Site logo

imdb-post-ratings's Introduction

IMDB Post Rating

This is a simple yet another rating plugin.

Features

  1. Creates a table {wpprefix}_imdb_rating
  2. Using IMDB_Post_Ratings::init()->rating_input(); inside a post, provides a 10 star rating. Change the number using the filter ip_base_rating. Cool huh?
  3. You can give a rating, also then can remove the rating, give again, remove again, give again…

Functions

  1. IMDB_Post_Ratings::init()->rating_input( $post_id ) Inserts the rating star bars.
  2. IMDB_Post_Ratings::init()->get_top_rated() - get top rated posts. Supports 3 parameters, post_type, limit, offset
  3. IMDB_Post_Ratings::init()->get_rating( $post_id ) - returns rating for single post.

Screenshot

screenshot

Author

Tareq Hasan

imdb-post-ratings's People

Contributors

tareq1988 avatar

Stargazers

Cat  avatar Travis Holt avatar  avatar  avatar Sasha Beg avatar Ciprian Popescu avatar Chathura avatar Bharat Mandava avatar John Parris avatar Anup Debnath avatar

Watchers

 avatar James Cloos avatar saasfreelancer avatar Chathura avatar  avatar

Forkers

indian2020 wir

imdb-post-ratings's Issues

Multiple instances on same page

Hi Tareq Hasan,

I want to thank you for this plugin and explain a little problem that i have:

I implemented the plugin in my theme, works perfect in single pages but i have a problem when i put the rating_input on index.php page, when the rating appears in more than one post all the rating inputs have the last vote and all the vote numbers move at the same time when i'm hovering with mouse.

I know the problem is caused because they have the same class, but im a complete noob in jquery, i tried to append the post_id to the classes without succes :(...

Can you give me some help to resolve this?

Thank you from Catalonia.

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.