Linux 软件免费装
Banner图

tinyRatings

开发者 ideag
更新时间 2018年6月13日 05:14
捐献地址: 去捐款
PHP版本: 4.6 及以上
WordPress版本: 4.9
版权: GPLv2 or later
版权网址: 版权信息

标签

like stars thumbs up ratings rate dislike 5 stars

下载

0.1.3 0.1.4 0.2.1 0.2.2

详情介绍:

tinyRatings is a fresh take on post ratings. It offers you simple rating styles - Like, Like/Dislike and the very traditional 5 stars rating. It takes advantage of the Rest API and the Dashicons font to deliver you fast, modern looking interface. Votes can be logged based on browser fingerprint (via FingerprintJS2 library), visitor's IP address, user id for logged in users. Unlike other similar plugins tinyRatings is not limited to posts, pages and custom post types. You can also insert ratings for categories, tags, other taxonomy terms and event for different sections in the post. Developers will find action and filter hooks that will allow them to use tinyRatings in pretty much any scenario. If you like my work and want to support development of my open source WordPress plugins, please consider becoming my patron at Patreon. Also, try out my other plugins: Banner photo credit: Glen Carrie / Unsplash.com

安装:

  1. Upload the plugin files to the /wp-content/plugins/tinyratings directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the 'Plugins' screen in WordPress
  3. Use the Settings -> tinyRatings screen to configure the plugin
  4. Insert ratings into your posts/pages via [tinyrating] shortcode

屏幕截图:

  • tinyRatings in action on Twenty Seventeen theme
  • tinyRatings in action on Twenty Seventeen theme
  • tinyRatings Settings page

升级注意事项:

0.1.0 Initial version

常见问题:

How do I insert the rating into post?

Use [tinyrating] shortcode, or <?php do_shortcode( '[tinyrating]' ); ?> if you want to insert it directly into a template.

How do I insert the rating into taxonomy term?

Use [taxrating] shortcode, or <?php do_shortcode( '[taxrating]' ); ?> if you want to insert it directly into a template.

How do I insert the rating for part of a post?

Use [listrating] shortcode, or <?php do_shortcode( '[listrating]' ); ?> if you want to insert it directly into a template.

Can I define my own use cases?

Sure, just use a custom type attribute for [tinyrating] shortcode. For example, the plugin settings page uses [tinyrating type="demo"] to display a demo rating.

What attributes does [tinyrating] shortcode have?

Here is the list of available attributes:

  • style - allows to choose rating appearance. Available styles currently include star (default), like, likedislike and updown.
  • id - object id.
  • type - object type, for example 'post', 'tax', 'list', 'demo', etc.
  • subtype - object subtype, for example 'page', 'category', post ID for lists, etc.
  • inline - changes the container div to display:inline-block.
  • float - floats the container div to the left or to the right.
  • active - pass false to disable new votes.
= How can I display top objects? Via [tinyrating_top] shortcode or using "tinyRatings Top List" widget.

What attributes does [tinyrating_top] shortcode have?

Here is the list of available attributes:

  • style - allows to choose rating appearance. Available styles currently include star (default), like, likedislike and updown.
  • type - object type, for example 'post', 'tax', 'list', 'demo', etc.
  • subtype - object subtype, for example 'page', 'category', post ID for lists, etc.
  • limit - How many top objects should be displayed.
  • list_type - Which type of list elements (<ul> or <ol>) should be used for the top list. By default, shortcode uses <ol> and widget - <ul>.
  • rating - pass false to disable display of ratings next to object names in the list.
  • float - gets passed down to [tinyrating] shortcode.
  • active - gets passed down to [tinyrating] shortcode.

更新日志:

0.2.2 0.2.1 0.2.0 0.1.4 0.1.3 0.1.2 0.1.1 0.1.0