WordPress.org

Plugin Directory

Changeset 1647729


Ignore:
Timestamp:
04/28/17 21:57:55 (2 months ago)
Author:
alimir
Message:

Upgraded to V2.5 (readme.txt fixed)

Location:
wp-ulike
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wp-ulike/tags/2.5/readme.txt

    r1647724 r1647729  
    130130 
    131131*   Function: 
    132 `<?php if(function_exists('wp_ulike')) wp_ulike('get'); ?>` 
     132`if(function_exists('wp_ulike')) wp_ulike('get');` 
    133133*   Shortcode: 
    134134`[wp_ulike]` 
     
    137137* You can adding your changes on `wp_ulike_format_number` function with a simple filter. for example, if you want to remove the "+" character you can use this filter: 
    138138<code>  
    139 <?php 
    140139add_filter('wp_ulike_format_number','wp_ulike_new_format_number',10,3); 
    141140function wp_ulike_new_format_number($value, $num, $plus){ 
     
    147146    return $value; 
    148147} 
    149 ?> 
    150148</code> 
    151149 
     
    153151* Use this function on WP Loop: 
    154152<code>  
    155 <?php 
    156153if (function_exists('wp_ulike_get_post_likes')): 
    157154    echo wp_ulike_get_post_likes(get_the_ID()); 
    158155endif; 
    159 ?> 
    160156</code> 
    161157 
     
    163159* Use the following function in your comments loop: 
    164160<code>  
    165 <?php 
    166161if (function_exists('wp_ulike_get_comment_likes')): 
    167162    echo wp_ulike_get_comment_likes(get_comment_ID()); 
    168163endif; 
    169 ?> 
    170164</code> 
    171165 
     
    173167* Use this query on your theme: 
    174168<code>  
    175 <?php 
    176     $the_query = new WP_Query(array( 
    177     'post_status' =>'published', 
    178     'post_type' =>'post', 
    179     'orderby' => 'meta_value_num', 
    180     'meta_key' => '_liked', 
    181     'paged' => (get_query_var('paged')) ? get_query_var('paged') : 1 
    182     )); 
    183 ?> 
     169$the_query = new WP_Query(array( 
     170'post_status' =>'published', 
     171'post_type' =>'post', 
     172'orderby' => 'meta_value_num', 
     173'meta_key' => '_liked', 
     174'paged' => (get_query_var('paged')) ? get_query_var('paged') : 1 
     175)); 
    184176</code> 
    185177 
     
    197189== Changelog == 
    198190 
    199 = 2.5= 
     191= 2.5 = 
    200192* Added: Buddypress custom notifications. (Sends out notifications when you get a like from someone) 
    201193* Added: A new function to get the number of likes on a single comment (wp_ulike_get_comment_likes) 
  • wp-ulike/trunk/readme.txt

    r1647722 r1647729  
    130130 
    131131*   Function: 
    132 `<?php if(function_exists('wp_ulike')) wp_ulike('get'); ?>` 
     132`if(function_exists('wp_ulike')) wp_ulike('get');` 
    133133*   Shortcode: 
    134134`[wp_ulike]` 
     
    137137* You can adding your changes on `wp_ulike_format_number` function with a simple filter. for example, if you want to remove the "+" character you can use this filter: 
    138138<code>  
    139 <?php 
    140139add_filter('wp_ulike_format_number','wp_ulike_new_format_number',10,3); 
    141140function wp_ulike_new_format_number($value, $num, $plus){ 
     
    147146    return $value; 
    148147} 
    149 ?> 
    150148</code> 
    151149 
     
    153151* Use this function on WP Loop: 
    154152<code>  
    155 <?php 
    156153if (function_exists('wp_ulike_get_post_likes')): 
    157154    echo wp_ulike_get_post_likes(get_the_ID()); 
    158155endif; 
    159 ?> 
    160156</code> 
    161157 
     
    163159* Use the following function in your comments loop: 
    164160<code>  
    165 <?php 
    166161if (function_exists('wp_ulike_get_comment_likes')): 
    167162    echo wp_ulike_get_comment_likes(get_comment_ID()); 
    168163endif; 
    169 ?> 
    170164</code> 
    171165 
     
    173167* Use this query on your theme: 
    174168<code>  
    175 <?php 
    176     $the_query = new WP_Query(array( 
    177     'post_status' =>'published', 
    178     'post_type' =>'post', 
    179     'orderby' => 'meta_value_num', 
    180     'meta_key' => '_liked', 
    181     'paged' => (get_query_var('paged')) ? get_query_var('paged') : 1 
    182     )); 
    183 ?> 
     169$the_query = new WP_Query(array( 
     170'post_status' =>'published', 
     171'post_type' =>'post', 
     172'orderby' => 'meta_value_num', 
     173'meta_key' => '_liked', 
     174'paged' => (get_query_var('paged')) ? get_query_var('paged') : 1 
     175)); 
    184176</code> 
    185177 
     
    197189== Changelog == 
    198190 
    199 = 2.5= 
     191= 2.5 = 
    200192* Added: Buddypress custom notifications. (Sends out notifications when you get a like from someone) 
    201193* Added: A new function to get the number of likes on a single comment (wp_ulike_get_comment_likes) 
Note: See TracChangeset for help on using the changeset viewer.