Skip to content
This repository has been archived by the owner on Jul 25, 2023. It is now read-only.

Releases: JonMasterson/WordPress-Post-Like-System

WordPress Post Like System

01 Nov 00:10
Compare
Choose a tag to compare

A simple and efficient post like system for WordPress.

Updates for Version 0.5.3:

  1. Added back failsafe array check in post_user_likes() and post_ip_likes()

WordPress Post Like System

29 Oct 12:09
Compare
Choose a tag to compare

A simple and efficient post like system for WordPress.

Updates for Version 0.5.2:

  1. Added more security.
  2. Resolved new issues from 0.5.1 security update.

WordPress Post Like System

29 Oct 11:28
Compare
Choose a tag to compare

A simple and efficient post like system for WordPress.

Updates for Version 0.5.1:

  1. Added more security when pulling values.

WordPress Post Like System

29 Oct 00:35
Compare
Choose a tag to compare

A simple and efficient post like system for WordPress.

Updates for Version 0.5:

  1. You can now add the button to comments.
  2. You can now add multiple buttons for each post, and they will all update at once when you click any of them.
  3. SVG icons. In an effort to keep things light, the SVG has been added inline, with a simple html entity as a fallback. This way, we don't have to include a javascript fallback. The trade-off is that these inline icons are not cached. They are rather small, though. If you prefer to use Font Awesome or another icon solution, swap out the svgs in the get_liked_icon() and get_unliked_icon() functions with your own solution. Since it is a popular solution, I've included commented code for Font Awesome icons.
  4. The button will now work with or without javascript. Hooray for graceful degradation!
  5. All the text is now translatable. Find and replace 'YourThemesTextDomain' with your theme's text domain.
  6. Number formatting now included. For example, a like count of "1,250" will output as "1.25K". If you would prefer a different number format, update sl_format_count(); to your preference.
  7. Better IP address handling
  8. The time of the post/comment like is now recorded as post/comment meta. This allows us to properly perform proper meta queries to determine which posts have the most likes for a given time period.
  9. CSS only loader.
  10. Removed list queries.
  11. We no longer store an array of liked posts in user meta. As time goes by, this can lead to inconsistencies if posts are deleted. I could have built a clean-up function to find and remove deleted post ids from user meta, but it made more sense to stop adding this data to user meta. Especially since these posts can be retrieved with a meta query for all posts that have the user's ID attached (see show_user_likes(); for this query).

WordPress Post Like System

10 Aug 16:57
Compare
Choose a tag to compare

A simple and efficient post like system for WordPress.

Updates for Version 0.4:

  1. Replaced Font Awesome icon font & CSS with a much smaller icon font and CSS to support the three icons we use.
  2. Added new icon font.
  3. Added minified CSS and JS.
  4. Retained support for themes that still utilize Font Awesome.

WordPress Post Like System

12 May 14:33
Compare
Choose a tag to compare

A simple and efficient post like system for WordPress.

Updates for Version 0.3.3:

  1. Simplified/Fixed MultiSite support.

WordPress Post Like System

14 Mar 20:13
Compare
Choose a tag to compare

A simple and efficient post like system for WordPress.

Updates for Version 0.3.2:

  1. Added support for multisite installs

WordPress Post Like System

07 Mar 21:47
Compare
Choose a tag to compare

A simple and efficient post like system for WordPress.

Updates for Version 0.3.1:

  1. Removed jQuery FastClick plugin.
  2. Greatly simplified CSS.
  3. Simplified jQuery click function.
  4. Modified jQuery click function to work with AJAX-loaded content.
  5. Greatly simplified Like button markup
  6. Added "Like" and "Unlike" titles on hover
  7. Updated heart icon styles:
    1. Empty heart icon = unliked
    2. Full heart icon = liked
    3. Heart icons now change upon button click.
    4. Removed "X" symbol on hover if already liked to simplify markup/CSS.
    5. Added a loading animation

WordPress Post Like System

07 Mar 17:59
Compare
Choose a tag to compare

A simple and efficient post like system for WordPress.

Updates for Version 0.3:

  1. Removed jQuery FastClick plugin.
  2. Greatly simplified CSS.
  3. Simplified jQuery click function.
  4. Modified jQuery click function to work with AJAX-loaded content.
  5. Greatly simplified Like button markup
  6. Added "Like" and "Unlike" titles on hover
  7. Updated heart icon styles:
    1. Empty heart icon = unliked
    2. Full heart icon = liked
    3. Heart icons now change upon button click.
    4. Removed "X" symbol on hover if already liked to simplify markup/CSS.

WordPress Post Like System

02 Feb 01:29
Compare
Choose a tag to compare

A simple and efficient post like system for WordPress.

Updates for this version:

  • Added jQuery FastClick plugin to improve button reactivity on iOS.
  • Prefixed all CSS classes to avoid conflicts/issues
  • Use preventDefault() to avoid targeting top of page on click