2017 © Pedro Peláez
 

wordpress-plugin wp-ulike

WP ULike enables you to add Ajax Like button into your WP and allowing your visitors to Like/unLike the posts, comments, activities & topics.

image

alimir/wp-ulike

WP ULike enables you to add Ajax Like button into your WP and allowing your visitors to Like/unLike the posts, comments, activities & topics.

  • Wednesday, June 27, 2018
  • by alimir
  • Repository
  • 5 Watchers
  • 44 Stars
  • 0 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 16 Forks
  • 8 Open issues
  • 10 Versions
  • 0 % Grown

The README.md

WP ULike

WP ULike GitHub Repository

If you’re looking for one of the best and fastest ways to add like and dislike functionality to your WordPress website, then the WP ULike plugin is for you! WP ULike is our ultimate solution to cast voting to any type of content you may have on your website. With outstanding and eye-catching widgets, you can have Like and Dislike Button on all of your contents would it be a Post, Comment, Activities, Forum Topics, WooCommerce products, you name it. Now you can feel your users Love :heart: for each part of your work., (*1)

It's time for WP ULike., (*2)

Features

  • Clean Design + Some standard eye-catching templates.
  • Professional Schema.org generator for each post type. [PRO]
  • Full Elementor Page Builder Support. [PRO]
  • Dislike button support with +8 creative templates. [PRO]
  • Display the likers of each button in linear or pop-up mode.
  • Simple, Stylish and user-friendly settings to easily customize your plugin.
  • Extract detailed reports and beautiful, useful and simple charts in an instant.
  • Support Custom Post Types, Comments, Activities & Topics.
  • Using various hooks and functions, you can easily customize this plugin.
  • We’re light-weight, fast, responsive and compatible with Google Schemas.
  • Full myCRED (points management system) Points Support.
  • Supporting UltimateMember & BuddyPress Profiles.
  • Ajax feature to update the data without reloading.
  • Visitors do not have to register or log in to use the Like Button.
  • Added automatically with filtering options (no Code required).
  • Different logging method options. (Cookie, IP, Username)
  • Notifications System. (Custom toast messages after each activity)
  • Flexible Shortcode with variable support.
  • Supporting the date in a localized format. (date_i18n)
  • BuddyPress adds activity & notifications support.
  • Simple custom style with color picker settings.
  • Support RTL & +20 language files.

More Information

Installation

For detailed setup instructions, visit the official Documentation page., (*3)

  1. You can clone the GitHub repository: https://github.com/Alimir/wp-ulike.git
  2. Or download it directly as a ZIP file: https://github.com/Alimir/wp-ulike/archive/master.zip

This will download the latest developer copy of WP ULike., (*4)

How To Use this plugin?

After installing and activating the plugin, go to the Settings panel and enable the "Auto Display" option for your target section (Currently for: Posts, Comments, BuddyPress activities & bbPress Topics.). Otherwise, you can use the manual way., (*5)

In order to insert Like button inside a content use the following shortcode:, (*6)

Display CTA button

[wp_ulike]

Parameters ( attributes ): * for (string) - select button type (Availabe Values: post, comment, activity, topic) * id (integer) - select specific item ID. (For manual usage) * button_type (string) - Set Button Type (Availabe Values: image, text) * style (string) - Choose the default template from the available list. * wrapper_class (string) - Extra Wrapper class, (*7)

Using shortcode in the PHP template:, (*8)

echo do_shortcode('[wp_ulike for="post" id="1" style="wpulike-heart"]');

How To Change The Counter Format?

Just add a filter on wp_ulike_format_number. e.g. If you want to remove + character, you need to make use of the sample code below:, (*9)

add_filter('wp_ulike_format_number','wp_ulike_new_format_number',10,3);
function wp_ulike_new_format_number($value, $num, $plus){
    if ($num >= 1000 && get_option('wp_ulike_format_number') == '1'):
    $value = round($num/1000, 2) . 'K';
    else:
    $value = $num;
    endif;
    return $value;
}

How To Remove "0" Count If There Are No Likes?

Make use of the wp_ulike_count_box_template filter as shown in the sample code below:, (*10)

add_filter('wp_ulike_count_box_template', 'wp_ulike_change_my_count_box_template', 10, 2);
function wp_ulike_change_my_count_box_template($string, $counter) {
    $num = preg_replace("/[^0-9,.]/", "", $counter);
    if($num == 0) return;
    else return $string;
}

How To Change The Login Alert Template?

Make use of the wp_ulike_login_alert_template filter as shown in the sample code below:, (*11)

add_filter('wp_ulike_login_alert_template', 'wp_ulike_change_login_alert_template', 10);
function wp_ulike_change_login_alert_template(){
    return '<p class="alert alert-info fade in" role="alert"><button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>Please login to your account! :)</p>';
}

How To Get Post Likes Number?

Make use of the following function in WP Loop:, (*12)

if (function_exists('wp_ulike_get_post_likes')):
    echo wp_ulike_get_post_likes(get_the_ID());
endif;

How To Get Comment Likes Number?

Make use of the following function in your comments loop:, (*13)

if (function_exists('wp_ulike_get_comment_likes')):
    echo wp_ulike_get_comment_likes(get_comment_ID());
endif;

How To Sort Most Liked Posts?

Make use of the following query on a loop:, (*14)

/**
 * Get most liked posts in query
 *
 * @param integer $numberposts      The number of items
 * @param array|string $post_type   Select post type
 * @param string $method            keep this as default value (post, comment, activity, topic)
 * @param string $period            Date period (all|today|yeterday|week|month|year)
 * @param string $status            Log status (like|unlike|dislike|undislike)
 * @return WP_Post[]|int[]          Array of post objects or post IDs.
 */
$wp_query = wp_ulike_get_most_liked_posts( 10, array( 'post' ), 'post', 'all', 'like' );

How Can I Create Custom Template In Users Liked Box?

We have provided some variables in setting panel. You can use them in textarea and then save the new options. Attention: %START_WHILE% And %END_WHILE% variables are very important and you should use them out of the frequent string. (Such as <li></li> tags sample in default template), (*15)

Receive HTTP ERROR 500 on WP ULike > Statistics

Increasing Your WordPress Memory Limit in wp-config.php to fix this error. It is located in your WordPress site's root folder, and you will need to use an FTP client or file manager in your web hosting control panel. Next, you need to paste this code in wp-config.php file just before the line that says That's all, stop editing! Happy blogging., (*16)

define( 'WP_MEMORY_LIMIT', '256M' );

Bugs

If you find an issue, let us know here!, (*17)

Support

Please visit the support forums., (*18)

The Versions

27/06 2018

dev-master

9999999-dev https://wordpress.org/plugins/wp-ulike

WP ULike enables you to add Ajax Like button into your WP and allowing your visitors to Like/unLike the posts, comments, activities & topics.

  Sources   Download

GPLv2 or later

The Requires

 

wordpress statistics like like button voting bbpress buddypress mycred

27/06 2018

v3.4

3.4.0.0 https://wordpress.org/plugins/wp-ulike

WP ULike enables you to add Ajax Like button into your WP and allowing your visitors to Like/unLike the posts, comments, activities & topics.

  Sources   Download

GPLv2 or later

The Requires

 

wordpress statistics like like button voting bbpress buddypress mycred

27/06 2018

dev-develop

dev-develop https://wordpress.org/plugins/wp-ulike

WP ULike enables you to add Ajax Like button into your WP and allowing your visitors to Like/unLike the posts, comments, activities & topics.

  Sources   Download

GPLv2 or later

The Requires

 

wordpress statistics like like button voting bbpress buddypress mycred

30/05 2018

v3.3.1

3.3.1.0 https://wordpress.org/plugins/wp-ulike

WP ULike enables you to add Ajax Like button into your WP and allowing your visitors to Like/unLike the posts, comments, activities & topics.

  Sources   Download

GPLv2 or later

The Requires

 

wordpress statistics like like button voting bbpress buddypress mycred

28/05 2018

v3.3

3.3.0.0 https://wordpress.org/plugins/wp-ulike

WP ULike enables you to add Ajax Like button into your WP and allowing your visitors to Like/unLike the posts, comments, activities & topics.

  Sources   Download

GPLv2 or later

The Requires

 

wordpress statistics like like button voting bbpress buddypress mycred

28/05 2018

3.3.x-dev

3.3.9999999.9999999-dev https://wordpress.org/plugins/wp-ulike

WP ULike enables you to add Ajax Like button into your WP and allowing your visitors to Like/unLike the posts, comments, activities & topics.

  Sources   Download

GPLv2 or later

The Requires

 

wordpress statistics like like button voting bbpress buddypress mycred

23/04 2018

3.2.x-dev

3.2.9999999.9999999-dev https://wordpress.org/plugins/wp-ulike

WP ULike enables you to add Ajax Like button into your WP and allowing your visitors to Like/unLike the posts, comments, activities & topics.

  Sources   Download

GPLv2 or later

The Requires

 

wordpress statistics like like button voting bbpress buddypress mycred

23/02 2018

dev-alimir_new_dev

dev-alimir_new_dev https://wordpress.org/plugins/wp-ulike

WP ULike enables you to add Ajax Like button into your WP and allowing your visitors to Like/unLike the posts, comments, activities & topics.

  Sources   Download

GPLv2 or later

The Requires

 

wordpress statistics like like button voting bbpress buddypress mycred

29/07 2017

2.8.x-dev

2.8.9999999.9999999-dev https://wordpress.org/plugins/wp-ulike

WP ULike enables you to add Ajax Like button into your WP and allowing your visitors to Like/unLike the posts, comments, activities & topics.

  Sources   Download

GPLv2 or later

The Requires

 

wordpress statistics like like button voting bbpress buddypress mycred

30/05 2017

2.6.x-dev

2.6.9999999.9999999-dev https://wordpress.org/plugins/wp-ulike

WP ULike enables you to add Ajax Like button into your WP and allowing your visitors to Like/unLike the posts, comments, activities & topics.

  Sources   Download

GPLv2 or later

The Requires

 

wordpress statistics like like button voting bbpress buddypress mycred