AI助手支持GPT4.0
Counter allows you to count the likes and dislikes.
Counter可让您计算喜欢和不喜欢的次数。 p>
Counting is carried out using AJAX.
使用AJAX进行计数。 p>
Limitation of cheating over IP (from one IP can vote with 10 minutes intervals).
限制IP作弊(从一个IP可以每10分钟投票一次)。 p>
Simply place the template single.php function call inside the loop
只需将模板single.php函数调用放在循环内 p>
<?php while(have_post()):the_post(); ?> ?> <?php echo CS_Likes :: show_buttons_like(); ?>?><?php结束; ?>?> code> pre>Or use ID of post, if function call outside the loop或者,如果在循环外调用函数,则使用帖子ID p> <?php echo CS_Likes :: show_buttons_like($ post_id); ?>?> code> pre>To obtain the number of likes, use the function:要获得喜欢的次数,请使用以下功能: p> <?php $ likes_count = CS_Likes :: get_post_likes($ post_id); ?>?> code> pre>To obtain the number of dislikes, use the function:要获取不喜欢的次数,请使用以下功能: p> <?php $ dislikes_count = CS_Likes :: get_post_dislikes($ post_id); ?>?> code> pre>
<?php while(have_post()):the_post(); ?> ?> <?php echo CS_Likes :: show_buttons_like(); ?>?><?php结束; ?>?>
?>
?>
<?php echo CS_Likes :: show_buttons_like();
<?php结束;
code> pre>
Or use ID of post, if function call outside the loop
或者,如果在循环外调用函数,则使用帖子ID p>
<?php echo CS_Likes :: show_buttons_like($ post_id); ?>?> code> pre>To obtain the number of likes, use the function:要获得喜欢的次数,请使用以下功能: p> <?php $ likes_count = CS_Likes :: get_post_likes($ post_id); ?>?> code> pre>To obtain the number of dislikes, use the function:要获取不喜欢的次数,请使用以下功能: p> <?php $ dislikes_count = CS_Likes :: get_post_dislikes($ post_id); ?>?> code> pre>
<?php echo CS_Likes :: show_buttons_like($ post_id); ?>?>
To obtain the number of likes, use the function:
要获得喜欢的次数,请使用以下功能: p>
<?php $ likes_count = CS_Likes :: get_post_likes($ post_id); ?>?> code> pre>To obtain the number of dislikes, use the function:要获取不喜欢的次数,请使用以下功能: p> <?php $ dislikes_count = CS_Likes :: get_post_dislikes($ post_id); ?>?> code> pre>
<?php $ likes_count = CS_Likes :: get_post_likes($ post_id); ?>?>
To obtain the number of dislikes, use the function:
要获取不喜欢的次数,请使用以下功能: p>
<?php $ dislikes_count = CS_Likes :: get_post_dislikes($ post_id); ?>?> code> pre>
<?php $ dislikes_count = CS_Likes :: get_post_dislikes($ post_id); ?>?>
ol>
or
或 p>
原文出处:http://www.sanshu.cn/a/9207.html
群主管理都是支付大佬