Version Description
- Added: "Likes" option in BuddyPress activity filter.
- Added: Support of %COMMENT_PERMALINK% variable in buddypress comment activity option.
- Fixed: bbPress bug with buddypress notifications. (Blank notification problem)
- Fixed: Some other small bugs.
Download this release
Release Info
Developer | alimir |
Plugin | WP ULike |
Version | 2.5.1 |
Comparing to | |
See all releases |
Code changes from version 2.5 to 2.5.1
- admin/classes/class-settings.php +1 -0
- admin/classes/tmp/settings.php +2 -2
- inc/wp-functions.php +55 -10
- lang/wp-ulike-fa_IR.mo +0 -0
- lang/wp-ulike-fa_IR.po +56 -51
- readme.txt +11 -7
- wp-ulike.php +2 -2
admin/classes/class-settings.php
CHANGED
@@ -67,6 +67,7 @@ class wp_ulike_settings {
|
|
67 |
'<li>'.'<code>%POST_COUNT%</code> : ' . __('Display the likes count number',WP_ULIKE_SLUG) .'</li>'.
|
68 |
'<li>'.'<code>%POST_TITLE%</code> : ' . __('Display the post title',WP_ULIKE_SLUG) .'</li><hr>'.
|
69 |
'<li>'.'<code>%COMMENT_LIKER%</code> : ' . __('Display the liker name',WP_ULIKE_SLUG) .'</li>'.
|
|
|
70 |
'<li>'.'<code>%COMMENT_AUTHOR%</code> : ' . __('Display the comment author name',WP_ULIKE_SLUG) .'</li>'.
|
71 |
'<li>'.'<code>%COMMENT_COUNT%</code> : ' . __('Display the likes count number',WP_ULIKE_SLUG) .'</li>'.
|
72 |
'</ul>'
|
67 |
'<li>'.'<code>%POST_COUNT%</code> : ' . __('Display the likes count number',WP_ULIKE_SLUG) .'</li>'.
|
68 |
'<li>'.'<code>%POST_TITLE%</code> : ' . __('Display the post title',WP_ULIKE_SLUG) .'</li><hr>'.
|
69 |
'<li>'.'<code>%COMMENT_LIKER%</code> : ' . __('Display the liker name',WP_ULIKE_SLUG) .'</li>'.
|
70 |
+
'<li>'.'<code>%COMMENT_PERMALINK%</code> : '. __('Display the permalink',WP_ULIKE_SLUG) .'</li>'.
|
71 |
'<li>'.'<code>%COMMENT_AUTHOR%</code> : ' . __('Display the comment author name',WP_ULIKE_SLUG) .'</li>'.
|
72 |
'<li>'.'<code>%COMMENT_COUNT%</code> : ' . __('Display the likes count number',WP_ULIKE_SLUG) .'</li>'.
|
73 |
'</ul>'
|
admin/classes/tmp/settings.php
CHANGED
@@ -427,7 +427,7 @@
|
|
427 |
'default' => 0,
|
428 |
'label' => __('BuddyPress Custom Notification', WP_ULIKE_SLUG),
|
429 |
'checkboxlabel' => __('Activate', WP_ULIKE_SLUG),
|
430 |
-
'description' => __('Sends out notifications when you get a like from someone', WP_ULIKE_SLUG)
|
431 |
),
|
432 |
'bp_post_activity_add_header' => array(
|
433 |
'type' => 'textarea',
|
@@ -439,7 +439,7 @@
|
|
439 |
'type' => 'textarea',
|
440 |
'default' => '<strong>%COMMENT_LIKER%</strong> liked <strong>%COMMENT_AUTHOR%</strong> comment. (So far, %COMMENT_AUTHOR% has <span class="badge">%COMMENT_COUNT%</span> likes for this comment)',
|
441 |
'label' => __('Comment Activity Text', WP_ULIKE_SLUG),
|
442 |
-
'description' => __('Allowed Variables:', WP_ULIKE_SLUG) . ' <code>%COMMENT_LIKER%</code> , <code>%COMMENT_AUTHOR%</code> , <code>%COMMENT_COUNT%</code>'
|
443 |
),
|
444 |
'delete_logs' => array(
|
445 |
'type' => 'action',
|
427 |
'default' => 0,
|
428 |
'label' => __('BuddyPress Custom Notification', WP_ULIKE_SLUG),
|
429 |
'checkboxlabel' => __('Activate', WP_ULIKE_SLUG),
|
430 |
+
'description' => __('Sends out notifications when you get a like from someone', WP_ULIKE_SLUG)
|
431 |
),
|
432 |
'bp_post_activity_add_header' => array(
|
433 |
'type' => 'textarea',
|
439 |
'type' => 'textarea',
|
440 |
'default' => '<strong>%COMMENT_LIKER%</strong> liked <strong>%COMMENT_AUTHOR%</strong> comment. (So far, %COMMENT_AUTHOR% has <span class="badge">%COMMENT_COUNT%</span> likes for this comment)',
|
441 |
'label' => __('Comment Activity Text', WP_ULIKE_SLUG),
|
442 |
+
'description' => __('Allowed Variables:', WP_ULIKE_SLUG) . ' <code>%COMMENT_LIKER%</code> , <code>%COMMENT_AUTHOR%</code> , <code>%COMMENT_COUNT%</code>, <code>%COMMENT_PERMALINK%</code>'
|
443 |
),
|
444 |
'delete_logs' => array(
|
445 |
'type' => 'action',
|
inc/wp-functions.php
CHANGED
@@ -199,6 +199,8 @@
|
|
199 |
* @param String $type (Simple Key for separate posts by comments)
|
200 |
* @since 1.6
|
201 |
* @updated 2.0
|
|
|
|
|
202 |
* @return Void
|
203 |
*/
|
204 |
function wp_ulike_bp_activity_add($user_ID,$cp_ID,$type){
|
@@ -235,6 +237,10 @@
|
|
235 |
$COMMENT_LIKER = bp_core_get_userlink($user_ID);
|
236 |
$comment_template = str_replace("%COMMENT_LIKER%", $COMMENT_LIKER, $comment_template);
|
237 |
}
|
|
|
|
|
|
|
|
|
238 |
if (strpos($comment_template, '%COMMENT_AUTHOR%') !== false) {
|
239 |
$COMMENT_AUTHOR = get_comment_author($cp_ID);
|
240 |
$comment_template = str_replace("%COMMENT_AUTHOR%", $COMMENT_AUTHOR, $comment_template);
|
@@ -289,6 +295,19 @@
|
|
289 |
}
|
290 |
}
|
291 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
292 |
|
293 |
/**
|
294 |
* Get auther ID by the ulike types
|
@@ -340,30 +359,31 @@
|
|
340 |
*
|
341 |
* @author Alimir
|
342 |
* @since 2.5
|
|
|
343 |
* @return String
|
344 |
*/
|
345 |
-
add_filter( 'bp_notifications_get_notifications_for_user', 'wp_ulike_format_buddypress_notifications',
|
346 |
function wp_ulike_format_buddypress_notifications( $action, $item_id, $secondary_item_id, $total_items, $format = 'string' ) {
|
347 |
-
|
348 |
-
|
349 |
-
if (strpos($m[0], 'wp_ulike_') !== false) {
|
350 |
$custom_link = '';
|
|
|
|
|
351 |
//Extracting user id from the action value.
|
352 |
preg_match('/action_([0-9]+)/', $action, $user_ID);
|
353 |
$user_info = get_userdata($user_ID[1]);
|
354 |
$custom_text = __('You have a new like from', WP_ULIKE_SLUG ) . ' "' . $user_info->display_name . '"';
|
355 |
//checking the ulike types
|
356 |
-
if($
|
357 |
$custom_link = get_permalink($item_id);
|
358 |
}
|
359 |
-
else if($
|
360 |
$custom_link = get_permalink($item_id);
|
361 |
}
|
362 |
-
else if($
|
363 |
-
$
|
364 |
-
$custom_link = get_comment_link( $comment );
|
365 |
}
|
366 |
-
else if($
|
367 |
$custom_link = bp_activity_get_permalink( $item_id );
|
368 |
}
|
369 |
// WordPress Toolbar
|
@@ -376,11 +396,36 @@
|
|
376 |
'link' => $custom_link
|
377 |
), $custom_link, (int) $total_items, $custom_text, $custom_text );
|
378 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
379 |
return $return;
|
380 |
}
|
381 |
return $action;
|
382 |
}
|
383 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
384 |
/*******************************************************
|
385 |
bbPress Likes Functions
|
386 |
*******************************************************/
|
199 |
* @param String $type (Simple Key for separate posts by comments)
|
200 |
* @since 1.6
|
201 |
* @updated 2.0
|
202 |
+
* @updated 2.5 -> added : buddypress notifications support
|
203 |
+
* @updated 2.5.1 -> added : %COMMENT_PERMALINK% variable
|
204 |
* @return Void
|
205 |
*/
|
206 |
function wp_ulike_bp_activity_add($user_ID,$cp_ID,$type){
|
237 |
$COMMENT_LIKER = bp_core_get_userlink($user_ID);
|
238 |
$comment_template = str_replace("%COMMENT_LIKER%", $COMMENT_LIKER, $comment_template);
|
239 |
}
|
240 |
+
if (strpos($comment_template, '%COMMENT_PERMALINK%') !== false) {
|
241 |
+
$COMMENT_PERMALINK = get_comment_link($cp_ID);
|
242 |
+
$comment_template = str_replace("%COMMENT_PERMALINK%", $COMMENT_PERMALINK, $comment_template);
|
243 |
+
}
|
244 |
if (strpos($comment_template, '%COMMENT_AUTHOR%') !== false) {
|
245 |
$COMMENT_AUTHOR = get_comment_author($cp_ID);
|
246 |
$comment_template = str_replace("%COMMENT_AUTHOR%", $COMMENT_AUTHOR, $comment_template);
|
295 |
}
|
296 |
}
|
297 |
|
298 |
+
/**
|
299 |
+
* Display likes option in BuddyPress activity filter
|
300 |
+
*
|
301 |
+
* @author Alimir
|
302 |
+
* @since 2.5.1
|
303 |
+
* @return Void
|
304 |
+
*/
|
305 |
+
add_action( 'bp_activity_filter_options', 'wp_ulike_bp_activity_filter_options' ); // Activity Directory
|
306 |
+
add_action( 'bp_member_activity_filter_options', 'wp_ulike_bp_activity_filter_options' ); // Member's profile activity
|
307 |
+
add_action( 'bp_group_activity_filter_options', 'wp_ulike_bp_activity_filter_options' ); // Group's activity
|
308 |
+
function wp_ulike_bp_activity_filter_options() {
|
309 |
+
echo "<option value='wp_like_group'>". __('Likes') ."</option>";
|
310 |
+
}
|
311 |
|
312 |
/**
|
313 |
* Get auther ID by the ulike types
|
359 |
*
|
360 |
* @author Alimir
|
361 |
* @since 2.5
|
362 |
+
* @updated 2.5.1
|
363 |
* @return String
|
364 |
*/
|
365 |
+
add_filter( 'bp_notifications_get_notifications_for_user', 'wp_ulike_format_buddypress_notifications', 5, 5 );
|
366 |
function wp_ulike_format_buddypress_notifications( $action, $item_id, $secondary_item_id, $total_items, $format = 'string' ) {
|
367 |
+
global $wp_filter,$wp_version;
|
368 |
+
if (strpos($action, 'wp_ulike_') !== false) {
|
|
|
369 |
$custom_link = '';
|
370 |
+
//Extracting ulike type from the action value.
|
371 |
+
preg_match('/wp_ulike_(.*?)_action/', $action, $type);
|
372 |
//Extracting user id from the action value.
|
373 |
preg_match('/action_([0-9]+)/', $action, $user_ID);
|
374 |
$user_info = get_userdata($user_ID[1]);
|
375 |
$custom_text = __('You have a new like from', WP_ULIKE_SLUG ) . ' "' . $user_info->display_name . '"';
|
376 |
//checking the ulike types
|
377 |
+
if($type[1] == 'liked'){
|
378 |
$custom_link = get_permalink($item_id);
|
379 |
}
|
380 |
+
else if($type[1] == 'topicliked'){
|
381 |
$custom_link = get_permalink($item_id);
|
382 |
}
|
383 |
+
else if($type[1] == 'commentliked'){
|
384 |
+
$custom_link = get_comment_link( $item_id );
|
|
|
385 |
}
|
386 |
+
else if($type[1] == 'activityliked'){
|
387 |
$custom_link = bp_activity_get_permalink( $item_id );
|
388 |
}
|
389 |
// WordPress Toolbar
|
396 |
'link' => $custom_link
|
397 |
), $custom_link, (int) $total_items, $custom_text, $custom_text );
|
398 |
}
|
399 |
+
// global wp_filter to call bbPress wrapper function
|
400 |
+
if (isset($wp_filter['bp_notifications_get_notifications_for_user'][10]['bbp_format_buddypress_notifications'])) {
|
401 |
+
if (version_compare($wp_version, '4.7', '>=' )) {
|
402 |
+
// https://make.wordpress.org/core/2016/09/08/wp_hook-next-generation-actions-and-filters/
|
403 |
+
$wp_filter['bp_notifications_get_notifications_for_user']->callbacks[10]['bbp_format_buddypress_notifications']['function'] = 'wp_ulike_bbp_format_buddypress_notifications';
|
404 |
+
} else {
|
405 |
+
$wp_filter['bp_notifications_get_notifications_for_user'][10]['bbp_format_buddypress_notifications']['function'] = 'wp_ulike_bbp_format_buddypress_notifications';
|
406 |
+
}
|
407 |
+
}
|
408 |
return $return;
|
409 |
}
|
410 |
return $action;
|
411 |
}
|
412 |
|
413 |
+
/**
|
414 |
+
* Wrapper for bbp_format_buddypress_notifications function as it is not returning $action
|
415 |
+
*
|
416 |
+
* @author Alimir
|
417 |
+
* @since 2.5.1
|
418 |
+
* @return String
|
419 |
+
*/
|
420 |
+
function wp_ulike_bbp_format_buddypress_notifications($action, $item_id, $secondary_item_id, $total_items, $format = 'string')
|
421 |
+
{
|
422 |
+
$result = bbp_format_buddypress_notifications($action, $item_id, $secondary_item_id, $total_items, $format);
|
423 |
+
if (!$result) {
|
424 |
+
$result = $action;
|
425 |
+
}
|
426 |
+
return $result;
|
427 |
+
}
|
428 |
+
|
429 |
/*******************************************************
|
430 |
bbPress Likes Functions
|
431 |
*******************************************************/
|
lang/wp-ulike-fa_IR.mo
CHANGED
Binary file
|
lang/wp-ulike-fa_IR.po
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: WP ULike\n"
|
4 |
-
"POT-Creation-Date: 2017-
|
5 |
-
"PO-Revision-Date: 2017-
|
6 |
"Last-Translator: Alimir <alimir71@yahoo.com>\n"
|
7 |
"Language-Team: alimir.ir <info@alimir.ir>\n"
|
8 |
"Language: fa_IR\n"
|
@@ -57,12 +57,12 @@ msgid "Credits"
|
|
57 |
msgstr "دستاندرکاران"
|
58 |
|
59 |
#: ../admin/about.php:116 ../admin/stats.php:51
|
60 |
-
#: ../admin/classes/class-settings.php:
|
61 |
msgid "Support"
|
62 |
msgstr "پشتیبانی"
|
63 |
|
64 |
#: ../admin/about.php:117 ../admin/stats.php:52
|
65 |
-
#: ../admin/classes/class-settings.php:
|
66 |
msgid "FAQ"
|
67 |
msgstr "سؤالات متداول"
|
68 |
|
@@ -487,7 +487,7 @@ msgstr ""
|
|
487 |
"\">وردپرس يولايک را</a> انتخاب کرده ايد. طراحي و کدنويسي توسط <a href=\"%s\" "
|
488 |
"title=\"Wordpress ULike\" target=\"_blank\">علي ميرزائي</a>"
|
489 |
|
490 |
-
#: ../admin/admin.php:76 ../inc/wp-functions.php:
|
491 |
msgid "WP ULike"
|
492 |
msgstr "وردپرس یولایک"
|
493 |
|
@@ -600,7 +600,7 @@ msgid "Profile URL:"
|
|
600 |
msgstr "لینک پروفایل به:"
|
601 |
|
602 |
#: ../admin/classes/class-widget.php:452
|
603 |
-
#: ../admin/classes/class-settings.php:
|
604 |
#: ../admin/classes/tmp/settings.php:341
|
605 |
msgid "BuddyPress"
|
606 |
msgstr "بادی پرس"
|
@@ -719,11 +719,12 @@ msgid "Display the UltimateMemebr user profile url"
|
|
719 |
msgstr "نمایش پیوند مربوط به پروفایل های افزونه UltimateMemebr"
|
720 |
|
721 |
#: ../admin/classes/class-settings.php:66
|
|
|
722 |
msgid "Display the permalink"
|
723 |
msgstr "نمایش پیوند ارجاعی"
|
724 |
|
725 |
#: ../admin/classes/class-settings.php:67
|
726 |
-
#: ../admin/classes/class-settings.php:
|
727 |
msgid "Display the likes count number"
|
728 |
msgstr "نمایش شمارنده تعداد لایک ها"
|
729 |
|
@@ -731,24 +732,24 @@ msgstr "نمایش شمارنده تعداد لایک ها"
|
|
731 |
msgid "Display the post title"
|
732 |
msgstr "نمایش عنوان نوشته"
|
733 |
|
734 |
-
#: ../admin/classes/class-settings.php:
|
735 |
msgid "Display the comment author name"
|
736 |
msgstr "نمایش نام نویسنده دیدگاه"
|
737 |
|
738 |
-
#: ../admin/classes/class-settings.php:
|
739 |
msgid "Posts"
|
740 |
msgstr "نوشته ها"
|
741 |
|
742 |
-
#: ../admin/classes/class-settings.php:
|
743 |
-
#: ../admin/classes/class-settings.php:
|
744 |
-
#: ../admin/classes/class-settings.php:
|
745 |
-
#: ../admin/classes/class-settings.php:
|
746 |
#: ../admin/classes/tmp/settings.php:101 ../admin/classes/tmp/settings.php:207
|
747 |
#: ../admin/classes/tmp/settings.php:355 ../admin/classes/tmp/settings.php:481
|
748 |
msgid "Automatic display"
|
749 |
msgstr "نمایش خودکار"
|
750 |
|
751 |
-
#: ../admin/classes/class-settings.php:
|
752 |
msgid ""
|
753 |
"If you disable this option, you have to put manually this code on wordpress "
|
754 |
"while loop"
|
@@ -756,33 +757,33 @@ msgstr ""
|
|
756 |
"اگر این قابلیت را غیر فعال کنید، باید به صورت دستی این کد را در حلقه مطالب "
|
757 |
"وردپرس قرار دهید "
|
758 |
|
759 |
-
#: ../admin/classes/class-settings.php:
|
760 |
-
#: ../admin/classes/class-settings.php:
|
761 |
-
#: ../admin/classes/class-settings.php:
|
762 |
-
#: ../admin/classes/class-settings.php:
|
763 |
#: ../admin/classes/tmp/settings.php:170 ../admin/classes/tmp/settings.php:261
|
764 |
#: ../admin/classes/tmp/settings.php:415 ../admin/classes/tmp/settings.php:534
|
765 |
msgid "Users Like Box Template"
|
766 |
msgstr "قالب جعبه لایک کاربران"
|
767 |
|
768 |
-
#: ../admin/classes/class-settings.php:
|
769 |
-
#: ../admin/classes/class-settings.php:
|
770 |
-
#: ../admin/classes/class-settings.php:
|
771 |
-
#: ../admin/classes/class-settings.php:
|
772 |
msgid "Default Template:"
|
773 |
msgstr "قالب پیشفرض:"
|
774 |
|
775 |
-
#: ../admin/classes/class-settings.php:
|
776 |
#: ../admin/classes/tmp/settings.php:169 ../inc/classes/class-ulike.php:426
|
777 |
msgid "Users who have LIKED this post:"
|
778 |
msgstr "کاربرانی که این مطلب را پسندیده اند:"
|
779 |
|
780 |
-
#: ../admin/classes/class-settings.php:
|
781 |
#: ../admin/classes/tmp/settings.php:193
|
782 |
msgid "Comments"
|
783 |
msgstr "دیدگاه ها"
|
784 |
|
785 |
-
#: ../admin/classes/class-settings.php:
|
786 |
msgid ""
|
787 |
"If you disable this option, you have to put manually this code on comments "
|
788 |
"text"
|
@@ -790,13 +791,13 @@ msgstr ""
|
|
790 |
"اگر این قابلیت را غیر فعال کنید، باید به صورت دستی این کد را در متن دیدگاه "
|
791 |
"ها قرار دهید "
|
792 |
|
793 |
-
#: ../admin/classes/class-settings.php:
|
794 |
#: ../admin/classes/tmp/settings.php:260
|
795 |
msgid "Users who have LIKED this comment:"
|
796 |
msgstr "کاربرانی که این دیدگاه را پسندیده اند:"
|
797 |
|
798 |
-
#: ../admin/classes/class-settings.php:
|
799 |
-
#: ../admin/classes/class-settings.php:
|
800 |
msgid ""
|
801 |
"If you disable this option, you have to put manually this code on buddypres "
|
802 |
"activities content"
|
@@ -804,57 +805,57 @@ msgstr ""
|
|
804 |
"اگر این قابلیت را غیر فعال کنید، باید به صورت دستی این کد را در متن فعالیت "
|
805 |
"ها قرار دهید "
|
806 |
|
807 |
-
#: ../admin/classes/class-settings.php:
|
808 |
-
#: ../admin/classes/class-settings.php:
|
809 |
#: ../admin/classes/tmp/settings.php:414
|
810 |
msgid "Users who have liked this activity:"
|
811 |
msgstr "کاربرانی که این فعالیت را پسندیده اند:"
|
812 |
|
813 |
-
#: ../admin/classes/class-settings.php:
|
814 |
#: ../admin/classes/tmp/settings.php:435
|
815 |
msgid "Post Activity Text"
|
816 |
msgstr "متن فعالیت مطالب"
|
817 |
|
818 |
-
#: ../admin/classes/class-settings.php:
|
819 |
#: ../admin/classes/tmp/settings.php:441
|
820 |
msgid "Comment Activity Text"
|
821 |
msgstr "متن فعالیت دیدگاه ها"
|
822 |
|
823 |
-
#: ../admin/classes/class-settings.php:
|
824 |
#: ../admin/classes/tmp/settings.php:467
|
825 |
msgid "bbPress"
|
826 |
msgstr "بی بی پرس"
|
827 |
|
828 |
-
#: ../admin/classes/class-settings.php:
|
829 |
msgid "For more information:"
|
830 |
msgstr "برای اطلاعات بیشتر:"
|
831 |
|
832 |
-
#: ../admin/classes/class-settings.php:
|
833 |
msgid "Default settings have been reset."
|
834 |
msgstr "تنظیمات پیشفرض، بازیابی شد."
|
835 |
|
836 |
-
#: ../admin/classes/class-settings.php:
|
837 |
msgid ""
|
838 |
"Do you really want to reset all these settings to their default values ?"
|
839 |
msgstr "آیا از بازیابی تنظیمات پیشفرض مطمئن هستید؟!؟"
|
840 |
|
841 |
-
#: ../admin/classes/class-settings.php:
|
842 |
-
#: ../admin/classes/class-settings.php:
|
843 |
-
#: ../admin/classes/class-settings.php:
|
844 |
msgid "No options defined."
|
845 |
msgstr "هیچ تنظیماتی تعریف نشده است."
|
846 |
|
847 |
-
#: ../admin/classes/class-settings.php:
|
848 |
#, php-format
|
849 |
msgid "Select %s"
|
850 |
msgstr "انتخاب %s"
|
851 |
|
852 |
-
#: ../admin/classes/class-settings.php:
|
853 |
#, php-format
|
854 |
msgid "Remove %s"
|
855 |
msgstr "حذف %s"
|
856 |
|
857 |
-
#: ../admin/classes/class-settings.php:
|
858 |
msgid "No action defined."
|
859 |
msgstr "هیچ کاری تعریف نشده است."
|
860 |
|
@@ -1260,11 +1261,15 @@ msgstr "خطا: این متد وجود خارجی ندارد!"
|
|
1260 |
msgid "WP ULike Activity"
|
1261 |
msgstr "فعالیت های وردپرس یولایک"
|
1262 |
|
1263 |
-
#: ../inc/wp-functions.php:
|
|
|
|
|
|
|
|
|
1264 |
msgid "You have a new like from"
|
1265 |
msgstr "شما یک لایک جدید دریافت کرده اید! توسط :"
|
1266 |
|
1267 |
-
#: ../inc/wp-functions.php:
|
1268 |
msgid ""
|
1269 |
"This hook award / deducts points from users who Like/Unlike any content of "
|
1270 |
"WordPress, bbPress, BuddyPress & ..."
|
@@ -1273,31 +1278,31 @@ msgstr ""
|
|
1273 |
"و... را لایک/آنلایک کنند (بعلاوه افرادی که نوشته آنها لایک/آنلایک شده)، می "
|
1274 |
"توانند به ترتیب امتیازات مثبت و منفی دریافت کنند."
|
1275 |
|
1276 |
-
#: ../inc/wp-functions.php:
|
1277 |
msgid "Liking Content"
|
1278 |
msgstr "لایک نوشته"
|
1279 |
|
1280 |
-
#: ../inc/wp-functions.php:
|
1281 |
msgid "Liked Content"
|
1282 |
msgstr "نوشته لایک شده"
|
1283 |
|
1284 |
-
#: ../inc/wp-functions.php:
|
1285 |
msgid "Unliking Content"
|
1286 |
msgstr "لغو لایک نوشته"
|
1287 |
|
1288 |
-
#: ../inc/wp-functions.php:
|
1289 |
msgid "Unliked Content"
|
1290 |
msgstr "نوشته لغو لایک شده"
|
1291 |
|
1292 |
-
#: ../inc/wp-functions.php:
|
1293 |
msgid "Recent Posts Liked"
|
1294 |
msgstr "تازه ترین مطالب لایک شده"
|
1295 |
|
1296 |
-
#: ../inc/wp-functions.php:
|
1297 |
msgid "Recent Comments Liked"
|
1298 |
msgstr "تازه ترین دیدگاه های لایک شده"
|
1299 |
|
1300 |
-
#: ../inc/wp-functions.php:
|
1301 |
msgid "This user has not made any likes."
|
1302 |
msgstr "این کاربر، هنوز هیچ موردی را نپسندیده است."
|
1303 |
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: WP ULike\n"
|
4 |
+
"POT-Creation-Date: 2017-05-02 02:06+0330\n"
|
5 |
+
"PO-Revision-Date: 2017-05-02 02:07+0330\n"
|
6 |
"Last-Translator: Alimir <alimir71@yahoo.com>\n"
|
7 |
"Language-Team: alimir.ir <info@alimir.ir>\n"
|
8 |
"Language: fa_IR\n"
|
57 |
msgstr "دستاندرکاران"
|
58 |
|
59 |
#: ../admin/about.php:116 ../admin/stats.php:51
|
60 |
+
#: ../admin/classes/class-settings.php:112
|
61 |
msgid "Support"
|
62 |
msgstr "پشتیبانی"
|
63 |
|
64 |
#: ../admin/about.php:117 ../admin/stats.php:52
|
65 |
+
#: ../admin/classes/class-settings.php:112
|
66 |
msgid "FAQ"
|
67 |
msgstr "سؤالات متداول"
|
68 |
|
487 |
"\">وردپرس يولايک را</a> انتخاب کرده ايد. طراحي و کدنويسي توسط <a href=\"%s\" "
|
488 |
"title=\"Wordpress ULike\" target=\"_blank\">علي ميرزائي</a>"
|
489 |
|
490 |
+
#: ../admin/admin.php:76 ../inc/wp-functions.php:474
|
491 |
msgid "WP ULike"
|
492 |
msgstr "وردپرس یولایک"
|
493 |
|
600 |
msgstr "لینک پروفایل به:"
|
601 |
|
602 |
#: ../admin/classes/class-widget.php:452
|
603 |
+
#: ../admin/classes/class-settings.php:97
|
604 |
#: ../admin/classes/tmp/settings.php:341
|
605 |
msgid "BuddyPress"
|
606 |
msgstr "بادی پرس"
|
719 |
msgstr "نمایش پیوند مربوط به پروفایل های افزونه UltimateMemebr"
|
720 |
|
721 |
#: ../admin/classes/class-settings.php:66
|
722 |
+
#: ../admin/classes/class-settings.php:70
|
723 |
msgid "Display the permalink"
|
724 |
msgstr "نمایش پیوند ارجاعی"
|
725 |
|
726 |
#: ../admin/classes/class-settings.php:67
|
727 |
+
#: ../admin/classes/class-settings.php:72
|
728 |
msgid "Display the likes count number"
|
729 |
msgstr "نمایش شمارنده تعداد لایک ها"
|
730 |
|
732 |
msgid "Display the post title"
|
733 |
msgstr "نمایش عنوان نوشته"
|
734 |
|
735 |
+
#: ../admin/classes/class-settings.php:71
|
736 |
msgid "Display the comment author name"
|
737 |
msgstr "نمایش نام نویسنده دیدگاه"
|
738 |
|
739 |
+
#: ../admin/classes/class-settings.php:80 ../admin/classes/tmp/settings.php:87
|
740 |
msgid "Posts"
|
741 |
msgstr "نوشته ها"
|
742 |
|
743 |
+
#: ../admin/classes/class-settings.php:82
|
744 |
+
#: ../admin/classes/class-settings.php:91
|
745 |
+
#: ../admin/classes/class-settings.php:99
|
746 |
+
#: ../admin/classes/class-settings.php:107
|
747 |
#: ../admin/classes/tmp/settings.php:101 ../admin/classes/tmp/settings.php:207
|
748 |
#: ../admin/classes/tmp/settings.php:355 ../admin/classes/tmp/settings.php:481
|
749 |
msgid "Automatic display"
|
750 |
msgstr "نمایش خودکار"
|
751 |
|
752 |
+
#: ../admin/classes/class-settings.php:82
|
753 |
msgid ""
|
754 |
"If you disable this option, you have to put manually this code on wordpress "
|
755 |
"while loop"
|
757 |
"اگر این قابلیت را غیر فعال کنید، باید به صورت دستی این کد را در حلقه مطالب "
|
758 |
"وردپرس قرار دهید "
|
759 |
|
760 |
+
#: ../admin/classes/class-settings.php:82
|
761 |
+
#: ../admin/classes/class-settings.php:91
|
762 |
+
#: ../admin/classes/class-settings.php:99
|
763 |
+
#: ../admin/classes/class-settings.php:107
|
764 |
#: ../admin/classes/tmp/settings.php:170 ../admin/classes/tmp/settings.php:261
|
765 |
#: ../admin/classes/tmp/settings.php:415 ../admin/classes/tmp/settings.php:534
|
766 |
msgid "Users Like Box Template"
|
767 |
msgstr "قالب جعبه لایک کاربران"
|
768 |
|
769 |
+
#: ../admin/classes/class-settings.php:82
|
770 |
+
#: ../admin/classes/class-settings.php:91
|
771 |
+
#: ../admin/classes/class-settings.php:99
|
772 |
+
#: ../admin/classes/class-settings.php:107
|
773 |
msgid "Default Template:"
|
774 |
msgstr "قالب پیشفرض:"
|
775 |
|
776 |
+
#: ../admin/classes/class-settings.php:82
|
777 |
#: ../admin/classes/tmp/settings.php:169 ../inc/classes/class-ulike.php:426
|
778 |
msgid "Users who have LIKED this post:"
|
779 |
msgstr "کاربرانی که این مطلب را پسندیده اند:"
|
780 |
|
781 |
+
#: ../admin/classes/class-settings.php:89
|
782 |
#: ../admin/classes/tmp/settings.php:193
|
783 |
msgid "Comments"
|
784 |
msgstr "دیدگاه ها"
|
785 |
|
786 |
+
#: ../admin/classes/class-settings.php:91
|
787 |
msgid ""
|
788 |
"If you disable this option, you have to put manually this code on comments "
|
789 |
"text"
|
791 |
"اگر این قابلیت را غیر فعال کنید، باید به صورت دستی این کد را در متن دیدگاه "
|
792 |
"ها قرار دهید "
|
793 |
|
794 |
+
#: ../admin/classes/class-settings.php:91
|
795 |
#: ../admin/classes/tmp/settings.php:260
|
796 |
msgid "Users who have LIKED this comment:"
|
797 |
msgstr "کاربرانی که این دیدگاه را پسندیده اند:"
|
798 |
|
799 |
+
#: ../admin/classes/class-settings.php:99
|
800 |
+
#: ../admin/classes/class-settings.php:107
|
801 |
msgid ""
|
802 |
"If you disable this option, you have to put manually this code on buddypres "
|
803 |
"activities content"
|
805 |
"اگر این قابلیت را غیر فعال کنید، باید به صورت دستی این کد را در متن فعالیت "
|
806 |
"ها قرار دهید "
|
807 |
|
808 |
+
#: ../admin/classes/class-settings.php:99
|
809 |
+
#: ../admin/classes/class-settings.php:107
|
810 |
#: ../admin/classes/tmp/settings.php:414
|
811 |
msgid "Users who have liked this activity:"
|
812 |
msgstr "کاربرانی که این فعالیت را پسندیده اند:"
|
813 |
|
814 |
+
#: ../admin/classes/class-settings.php:99
|
815 |
#: ../admin/classes/tmp/settings.php:435
|
816 |
msgid "Post Activity Text"
|
817 |
msgstr "متن فعالیت مطالب"
|
818 |
|
819 |
+
#: ../admin/classes/class-settings.php:99
|
820 |
#: ../admin/classes/tmp/settings.php:441
|
821 |
msgid "Comment Activity Text"
|
822 |
msgstr "متن فعالیت دیدگاه ها"
|
823 |
|
824 |
+
#: ../admin/classes/class-settings.php:105
|
825 |
#: ../admin/classes/tmp/settings.php:467
|
826 |
msgid "bbPress"
|
827 |
msgstr "بی بی پرس"
|
828 |
|
829 |
+
#: ../admin/classes/class-settings.php:112
|
830 |
msgid "For more information:"
|
831 |
msgstr "برای اطلاعات بیشتر:"
|
832 |
|
833 |
+
#: ../admin/classes/class-settings.php:171
|
834 |
msgid "Default settings have been reset."
|
835 |
msgstr "تنظیمات پیشفرض، بازیابی شد."
|
836 |
|
837 |
+
#: ../admin/classes/class-settings.php:249
|
838 |
msgid ""
|
839 |
"Do you really want to reset all these settings to their default values ?"
|
840 |
msgstr "آیا از بازیابی تنظیمات پیشفرض مطمئن هستید؟!؟"
|
841 |
|
842 |
+
#: ../admin/classes/class-settings.php:314
|
843 |
+
#: ../admin/classes/class-settings.php:325
|
844 |
+
#: ../admin/classes/class-settings.php:349
|
845 |
msgid "No options defined."
|
846 |
msgstr "هیچ تنظیماتی تعریف نشده است."
|
847 |
|
848 |
+
#: ../admin/classes/class-settings.php:336
|
849 |
#, php-format
|
850 |
msgid "Select %s"
|
851 |
msgstr "انتخاب %s"
|
852 |
|
853 |
+
#: ../admin/classes/class-settings.php:337
|
854 |
#, php-format
|
855 |
msgid "Remove %s"
|
856 |
msgstr "حذف %s"
|
857 |
|
858 |
+
#: ../admin/classes/class-settings.php:361
|
859 |
msgid "No action defined."
|
860 |
msgstr "هیچ کاری تعریف نشده است."
|
861 |
|
1261 |
msgid "WP ULike Activity"
|
1262 |
msgstr "فعالیت های وردپرس یولایک"
|
1263 |
|
1264 |
+
#: ../inc/wp-functions.php:309
|
1265 |
+
msgid "Likes"
|
1266 |
+
msgstr "لایک ها"
|
1267 |
+
|
1268 |
+
#: ../inc/wp-functions.php:375
|
1269 |
msgid "You have a new like from"
|
1270 |
msgstr "شما یک لایک جدید دریافت کرده اید! توسط :"
|
1271 |
|
1272 |
+
#: ../inc/wp-functions.php:475
|
1273 |
msgid ""
|
1274 |
"This hook award / deducts points from users who Like/Unlike any content of "
|
1275 |
"WordPress, bbPress, BuddyPress & ..."
|
1278 |
"و... را لایک/آنلایک کنند (بعلاوه افرادی که نوشته آنها لایک/آنلایک شده)، می "
|
1279 |
"توانند به ترتیب امتیازات مثبت و منفی دریافت کنند."
|
1280 |
|
1281 |
+
#: ../inc/wp-functions.php:483
|
1282 |
msgid "Liking Content"
|
1283 |
msgstr "لایک نوشته"
|
1284 |
|
1285 |
+
#: ../inc/wp-functions.php:484
|
1286 |
msgid "Liked Content"
|
1287 |
msgstr "نوشته لایک شده"
|
1288 |
|
1289 |
+
#: ../inc/wp-functions.php:485
|
1290 |
msgid "Unliking Content"
|
1291 |
msgstr "لغو لایک نوشته"
|
1292 |
|
1293 |
+
#: ../inc/wp-functions.php:486
|
1294 |
msgid "Unliked Content"
|
1295 |
msgstr "نوشته لغو لایک شده"
|
1296 |
|
1297 |
+
#: ../inc/wp-functions.php:508 ../inc/wp-functions.php:542
|
1298 |
msgid "Recent Posts Liked"
|
1299 |
msgstr "تازه ترین مطالب لایک شده"
|
1300 |
|
1301 |
+
#: ../inc/wp-functions.php:513 ../inc/wp-functions.php:582
|
1302 |
msgid "Recent Comments Liked"
|
1303 |
msgstr "تازه ترین دیدگاه های لایک شده"
|
1304 |
|
1305 |
+
#: ../inc/wp-functions.php:558 ../inc/wp-functions.php:599
|
1306 |
msgid "This user has not made any likes."
|
1307 |
msgstr "این کاربر، هنوز هیچ موردی را نپسندیده است."
|
1308 |
|
readme.txt
CHANGED
@@ -4,8 +4,8 @@ Donate link: http://alimir.ir
|
|
4 |
Author: Ali Mirzaei
|
5 |
Tags: wp ulike, wordpress youlike plugin, like button, rating, vote, voting, most liked posts, wordpress like page, wordpress like post, wordpress vote page, wordpress vote post, wp like page, wp like post, wp like plugin, buddypress like system, buddypress votes, comment like system, voting button, wordpress, buddypress, statistics, stats likes, bbpress, bbPress like, WP-Translations, forums, community, credit, points, mycred, users, ultimate member
|
6 |
Requires at least: 3.5
|
7 |
-
Tested up to: 4.7.
|
8 |
-
Stable tag: 2.5
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -38,7 +38,7 @@ WP ULike is a WordPress plugin that also supports BuddyPress, bbPress and a numb
|
|
38 |
* Comment likes support.
|
39 |
* Supporting the date in localized format. (date_i18n)
|
40 |
* Full likes logs support.
|
41 |
-
* BuddyPress activity support.
|
42 |
* Simple user like box with avatar support.
|
43 |
* Custom Like-UnLike Texts fields.
|
44 |
* Simple custom style with color picker settings.
|
@@ -86,8 +86,6 @@ WP ULike has been translated into the following languages:
|
|
86 |
* Bosnian (Bosnia and Herzegovina)
|
87 |
* English (United Kingdom)
|
88 |
|
89 |
-
Would you like to help translate the plugin into more languages? [Join our WP-Translations Community](https://www.transifex.com/projects/p/wp-ulike/).
|
90 |
-
|
91 |
= About Author =
|
92 |
* My personal website: <a href="http://about.alimir.ir" target="_blank">Ali Mirzaei</a>
|
93 |
* Follow me on <a href="https://www.facebook.com/alimir1993" target="_blank">Facebook</a>
|
@@ -180,14 +178,20 @@ $the_query = new WP_Query(array(
|
|
180 |
* 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)
|
181 |
|
182 |
= Receive HTTP ERROR 500 on WP ULike > Statistics =
|
183 |
-
* Increasing Your WordPress Memory Limit in wp-config.php to fix this error. It is located in your WordPress site
|
184 |
-
* Next, you need to paste this code in wp-config.php file just before the line that says
|
185 |
<code>
|
186 |
define( 'WP_MEMORY_LIMIT', '256M' );
|
187 |
</code>
|
188 |
|
189 |
== Changelog ==
|
190 |
|
|
|
|
|
|
|
|
|
|
|
|
|
191 |
= 2.5 =
|
192 |
* Added: Buddypress custom notifications. (Sends out notifications when you get a like from someone)
|
193 |
* Added: A new function to get the number of likes on a single comment (wp_ulike_get_comment_likes)
|
4 |
Author: Ali Mirzaei
|
5 |
Tags: wp ulike, wordpress youlike plugin, like button, rating, vote, voting, most liked posts, wordpress like page, wordpress like post, wordpress vote page, wordpress vote post, wp like page, wp like post, wp like plugin, buddypress like system, buddypress votes, comment like system, voting button, wordpress, buddypress, statistics, stats likes, bbpress, bbPress like, WP-Translations, forums, community, credit, points, mycred, users, ultimate member
|
6 |
Requires at least: 3.5
|
7 |
+
Tested up to: 4.7.4
|
8 |
+
Stable tag: 2.5.1
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
38 |
* Comment likes support.
|
39 |
* Supporting the date in localized format. (date_i18n)
|
40 |
* Full likes logs support.
|
41 |
+
* BuddyPress add activity & notifications support.
|
42 |
* Simple user like box with avatar support.
|
43 |
* Custom Like-UnLike Texts fields.
|
44 |
* Simple custom style with color picker settings.
|
86 |
* Bosnian (Bosnia and Herzegovina)
|
87 |
* English (United Kingdom)
|
88 |
|
|
|
|
|
89 |
= About Author =
|
90 |
* My personal website: <a href="http://about.alimir.ir" target="_blank">Ali Mirzaei</a>
|
91 |
* Follow me on <a href="https://www.facebook.com/alimir1993" target="_blank">Facebook</a>
|
178 |
* 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)
|
179 |
|
180 |
= Receive HTTP ERROR 500 on WP ULike > Statistics =
|
181 |
+
* 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.
|
182 |
+
* 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.’
|
183 |
<code>
|
184 |
define( 'WP_MEMORY_LIMIT', '256M' );
|
185 |
</code>
|
186 |
|
187 |
== Changelog ==
|
188 |
|
189 |
+
= 2.5.1 =
|
190 |
+
* Added: "Likes" option in BuddyPress activity filter.
|
191 |
+
* Added: Support of %COMMENT_PERMALINK% variable in buddypress comment activity option.
|
192 |
+
* Fixed: bbPress bug with buddypress notifications. (Blank notification problem)
|
193 |
+
* Fixed: Some other small bugs.
|
194 |
+
|
195 |
= 2.5 =
|
196 |
* Added: Buddypress custom notifications. (Sends out notifications when you get a like from someone)
|
197 |
* Added: A new function to get the number of likes on a single comment (wp_ulike_get_comment_likes)
|
wp-ulike.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name:WP ULike
|
4 |
Plugin URI: http://preview.alimir.ir/developer/wp-ulike/
|
5 |
Description: WP ULike plugin allows to integrate a beautiful Ajax Like Button into your wordPress website to allow your visitors to like and unlike pages, posts, comments AND buddypress activities. Its very simple to use and supports many options.
|
6 |
-
Version: 2.5
|
7 |
Author: Ali Mirzaei
|
8 |
Author URI: http://about.alimir.ir
|
9 |
Text Domain: wp-ulike
|
@@ -12,7 +12,7 @@ License: GPL2
|
|
12 |
*/
|
13 |
|
14 |
//Do not change this value
|
15 |
-
define( 'WP_ULIKE_VERSION' , '2.5' );
|
16 |
define( 'WP_ULIKE_SLUG' , 'wp-ulike' );
|
17 |
define( 'WP_ULIKE_DB_VERSION' , '1.3' );
|
18 |
|
3 |
Plugin Name:WP ULike
|
4 |
Plugin URI: http://preview.alimir.ir/developer/wp-ulike/
|
5 |
Description: WP ULike plugin allows to integrate a beautiful Ajax Like Button into your wordPress website to allow your visitors to like and unlike pages, posts, comments AND buddypress activities. Its very simple to use and supports many options.
|
6 |
+
Version: 2.5.1
|
7 |
Author: Ali Mirzaei
|
8 |
Author URI: http://about.alimir.ir
|
9 |
Text Domain: wp-ulike
|
12 |
*/
|
13 |
|
14 |
//Do not change this value
|
15 |
+
define( 'WP_ULIKE_VERSION' , '2.5.1' );
|
16 |
define( 'WP_ULIKE_SLUG' , 'wp-ulike' );
|
17 |
define( 'WP_ULIKE_DB_VERSION' , '1.3' );
|
18 |
|