WordPress Plugin: WP-Clap

中文说明版本在第二页

WordPress Plugin:

WP-Clap (Version 1.4)

Description:

Not everyone wants to leave a comment, and you don't know who have read your post without feedback. WP-Clap helps you make your visitors leave simple feedback without type a comment.

WP-Clap will creat a clap area after your post. Just like the comment area, your readers can clap for your post after reading, but they do not need to type anything. You can also use our function in your homepage to show how many claps the posts have, just like how many comments there are.

Download:

WP-Clap 1.4 (download)

Requires Version:

WordPress 2.7 or higher.

I don't know whether WP-Clap can work at WP 2.5 or lower, but you can have a try.

Supported Languages:

  • US English/en_US (default)
  • 简体中文/zh_CN (Ariagle)
  • 日本語/ja_JP (晓晓)
  • Dutch/nl_NL (Marcel)

Installation:

  • 1. Unzip archive to the '/wp-content/plugins/' directory
  • 2. Activate the plugin through the 'Plugins' menu in WordPress
  • 3. Go to 'Setting->WP-Clap', and change the setting
  • 4. If you Check the options of the 'Display', you do not need to pay attention to the following content
  • 5. (If you uncheck the above options) In your 'single.php' (or other files you want clap such as page.php) file add the following lines:

<?php if(function_exists('wp_clap')) { wp_clap(); } ?>

  • 6. You can use the following functions in 'index.php' to show how many claps your posts have:

<?php if(function_exists('get_wp_claps')) { get_wp_claps(zero, one, more, mode, link, echo, post_id); } ?>

Parameters of get_wp_claps():

Name Type Description Default Versions
zero string Text to display when there are no claps. 'No Claps' 1.0+
one string Text to display when there is one clap. 'One Clap' 1.0+
more string Text to display when there are more than 1 claps,

'%' is replaced by the number of claps.

'% Claps' 1.0+
mode integer Which number you want to show.

0 = Total claps,

1 = Total clappers,

2 = Average claps.

0 1.0+
link integer 0 = No link, 1 = A link to the clap area. 0 1.0+
echo integer 0 = echo, 1 = return value. 1 1.0+
post_id integer Target post. Generally you do not need to set it. 0 1.0+

Using Examples:

As the function get_wp_claps(), generally you do not neet to reset the $link, $echo and $post_id. There are some examples:

<?php get_wp_claps('No Claps', 'One Clap', '% Claps'); // total claps ?>
<?php get_wp_claps('0 Clapper', '1 Clapper', '% Clappers', 1); // total clappers ?>
<?php get_wp_claps('No Clap', 'One Clap', '% Claps', 2); // average claps ?>
<?php get_wp_claps('0 Claps', '1 Clap', '% Claps', 0, 0); // total claps with no link ?>

Frequently Asked Questions:

  • How to display the Clap Area?
    There are 2 ways to display the clap area:

    • 1. In the 'Setting->WP-Clap' page, check the options of 'Display' and the clap area will be inserted into where you want.
    • 2. Add the following line to where you like to display it():
      <?php if(function_exists('wp_clap')) { wp_clap(); } ?>
      For example, in the 'single.php' file, you can add it before
      <?php comments_template(); ?>
  • How to display the number of claps in the index?
    There are 2 ways to display the number of claps:

    • 1. In the 'Setting->WP-Clap' page, check the option 'Auto insert frequency into post and excerpt' of 'Display', and the number of claps will be inserted into the right top of the post and excerpt. Posts can be also clapped here.
    • 2. You can use the function get_wp_claps(). Go to Installation to learn the parameters of this function.
  • Widget
    Sorry, WP-Clap doesn't have widget now. Maybe widget will appear at the next version.
  • The Clap Area's style is wrong in my blog!
    We can not make sure that the WP-Clap's default style suits for everyone's themes. You can check the style option in the WP-Clap setting page and add your custom style to your theme's 'style.css' file.

Screenshots

wp-clap-01
Clap Area

clap_f
The number of claps.

wp-clap-02-s
Options

Don't forget to clap for this post!

分页: 1 2
Twitter Follow me on Twitter | Tencent Follow me on Tencent | Follow me on Moefou

相关日志

让你的Picasa畅通无阻 - Picasa相册排毒手记
让你的Picasa畅通无阻 - Picasa相册排毒手记

MP-Ukagaka伪春菜插件 for WordPress 萌化你的博客
MP-Ukagaka伪春菜插件 for WordPress 萌化你的博客

乐园新装:Glassy Garden 绿迎新春
乐园新装:Glassy Garden 绿迎新春

WordPress Plugin: WP No Keyword 防关键字屏蔽插件
WordPress Plugin: WP No Keyword 防关键字屏蔽插件

WordPress插件推荐: Picasa Image Express
WordPress插件推荐: Picasa Image Express

春节献礼:27P秀丽女模芋iPhone/iPod壁纸 + Lo全新主题
春节献礼:27P秀丽女模芋iPhone/iPod壁纸 + Lo全新主题

下一篇 »

拍手

无力吐槽,就来拍下手吧~
现在已有388次拍手,平均拍手23次。

“WordPress Plugin: WP-Clap”有 63 条吐槽

  1. 晓晓吐槽曰:

    顶一下……

  2. hslx111吐槽曰:

    不知道和inove能不能合得来,那个拍手的图标如果能再优化一下就更好了...

  3. decmes吐槽曰:

    拍手居然可以刷~~(lll ーдー)

  4. xorms吐槽曰:

    give me five~

  5. Akibarika吐槽曰:

    刷拍手=w=

  6. Pete吐槽曰:

    This looks like a fun plugin but you may want to consider another name such as WP-Applause. The word "clap" has another meaning in English that isn't so pleasant as "applause". A minute or two spent in Wikipedia will demonstrate what I mean :)

    • Ariagle吐槽曰:

      I have considered that, but in some japanese blogs, a widget named "Clap" is used like this plugin. So I finally decided to use this name. :)

      • Pete吐槽曰:

        I'll be trying it on my WPMU blog soon but I may edit the name :)

        • Ariagle吐槽曰:

          Wish you success~ :)

          • Akibarika吐槽曰:

            还好没用slap>..< 不过同意老外的说法,clap比较多的意思还是拍击。而中文的意思拍手为喝彩,所以applause更符合大意。。。不过日文的拍手意味鼓掌
            PS:其实太咬文嚼字了,都一个意思=w=

  7. Marcel Bokhorst吐槽曰:

    Hi, I like the idea of WP-Clap very much! Just an idea: automatically inserting clap into posts is easier for a lot of users (in stead of manual editing of files). Take a look at Cli.gs and Tweet how I realized that if you like. If you want a Dutch translation, just send me the .po(t) file. Kind Regards.

    • Ariagle吐槽曰:

      Thank you, that's a good idea, I will add it to the next version. The .po file is in the 'languages' directory of WP-Clap, and you can use the default file 'wp-clap.po' to translate it. :)

  8. lovee吐槽曰:

    看来似乎应该设置防止刷拍手的东西=w=

  9. shuxiong吐槽曰:

    这个插件系2.84里面有错误啊,只要没有拍手过的文章,就会报错了!希望出新版本修正这个问题!

  10. Marcel吐槽曰:

    If you sent me an e-mail I will reply with the Dutch translations.

  11. baron吐槽曰:

    Works great, thank you

  12. Adlina吐槽曰:

    Oh, this is nice! I don't have to rely on CGI WebClap so much anymore :D

  13. Wendell Fernandes吐槽曰:

    Hey u thnx. Keep up the great work!

  14. Dreamix吐槽曰:

    园长很强大~

  15. Iron_Feet吐槽曰:

    挺有创意的小东东,我喜欢

  16. Iron_Feet吐槽曰:

    请问,您是通过什么来判断重复拍手的?
    Cookie?IP?
    我担心会出现有人恶意不停地重复拍手~

    • Ariagle吐槽曰:

      只要点一次就会在对应人头下+1拍手数,并没有做过多限定。你可以只显示“拍手人数”,这样就相当于只允许拍手一次了。代价是未留言过的人都被归入“匿名”而只算作一次。

  17. Iron_Feet吐槽曰:

    @Ariagle: 谢谢您的解答!

  18. walklty吐槽曰:

    我发现在编辑文章的时候有个自定义域wp_claps,好像修改器一样啊=。=

  19. Iron_Feet吐槽曰:

    希望博主在下一个版本中,可以在后台添加对日志拍手数的一栏。比方说一个表格
    postid posttitle clapcount
    并可以给予排序查看。
    这个只是建议,如果博主工作繁忙,可以直接无视此评论:P

  20. skorpyo吐槽曰:

    hi,
    please help me, i picked the option of auto insertion but I have the clap block/button on pages too, how can I make it show only on posts.

    • Ariagle吐槽曰:

      I am sorry to say that it can not be showed only on posts in this version(1.1). I will add a new option which make it only show on posts or pages in the next version.

  21. Iron_Feet吐槽曰:

    请告知一下,新版本1.2里面Container的书写规则。
    我想将其放入一个Class为under的DIV底部,我输入了div.class,好像没有达到预期效果,请解答一下

  22. Vinayy吐槽曰:

    In my WordPress installation (2.8.4), I logged in as a subscriber and I found I am able to edit the WP-Clap settings. It should Not be so. Only the Admin should be able to do so.

    Only WP_Clap was there in the Settings (as a subscriber). Nothing else. This is Not safe because any subscriber can change WP_Clap settings.

    You need to remove this anomaly from WP_Clap and we are waiting for an upgrade.

  23. [...] Zur WP-Clap-Plugin-Seite geht es übrigens hier…. [...]

  24. 贱贱狗吐槽曰:

    老实说,如果没有醒目巨大的拍手标志,俺是基本不会记得按拍手的。

  25. Jenny吐槽曰:

    This is such an awesome plugin. I'm using it on my site. :D

  26. Sakura Martinez吐槽曰:

    Great plugin! I'm already using this on my site but, I have a question with the design. I changed the clap image to a different one that is 180x174 and, it made the text go down. I want to make it so that the text (inputted through notice textbox in the WP Clap Options page) be side by side with the image, how do I do that?

    I hope you can help me with this since I have wanted so badly to add a webclap-thingy on my blog ever since I saw it on those japanese blogsites.

    Thank you and more power!

    • Ariagle吐槽曰:

      Open the file "wp-clap-style.css" in this plugin's folder,
      and find the string : ".wp_clap_img"(no quotes),
      delete the following line : "display:block;",
      and add a new line : "float:left;".
      If it does not work or you have any othor questions or I do not answer correctly, send me an email:
      Email

  27. 貓魚吐槽曰:

    最近用上了,感謝感謝XDDD
    有一個小小意見想提,當鼠標在拍手人頭像那裡停留時會顯示他的名字,可否在名字後面加上拍手次數?
    本來是想將次數直接重疊到頭像右下角的,但無奈span支援東西太少~~~

    • Ariagle吐槽曰:

      你可以直接到后台编辑wp-clap.php文件,找到create_clap函数,里面有相关的HTML。在1.3版本中,有关拍手头像的HTML大约是在247到283行,$clap['claps']表示各人的拍手次数,将它加在你想要的地方就行了。
      不过这样改的话,下次插件升级的时候就又复原了,还得再自己改一次…

      • 貓魚吐槽曰:

        可否無恥的求在下次升級的時候加入這個顯示……就一了百了了XDDD

        • Ariagle吐槽曰:

          好吧我会尝试在下一个版本中加入自定义HTML模板功能,以适应各种制定需求。但是我不能确定什么时候会有空更新,所以在此之前你还是手动改插件吧 XD

  28. Venusxx吐槽曰:

    Good good study and day day up!

  29. Clap user吐槽曰:

    Hi! Great work!
    Only one problem: how can I reset the values of one of my posts?
    In order to test it I clapped my own article, and now that I know it works I'd like to cancel my clapping. :P

    • Ariagle吐槽曰:

      I‘m sorry to say that there is no way to cancel your clapping now... If you certainly want to do that, login your phpmyadmin, search 'wp_clap' for meta_key and your post's id for post_id in the wp_postmeta table, the clapping data is in the meta_key. You can modify it but it may be difficult to read.

  30. Anibute吐槽曰:

    Nice, but since it takes some time to fill this form, don't you think that users can type in a one liner?

  31. Dianso吐槽曰:

    体验下去

  32. 阿植吐槽曰:

    Warning: Invalid argument supplied for foreach() in /home/www/cwcity/hosting/v/p/vpulpify/htdocs/blog/wp-content/plugins/wp-clap/wp-clap.php on line 247
    请问这个是怎么回事OTL

    • Ariagle吐槽曰:

      也许是中途你的日志的自定义域的数据格式出了些问题。在插件更新之前请先尝试清空出错日志的wp_clap字段并重新安装插件。

  33. [...] WP-Clap:拍手插件,我喜欢(喂) [...]

  34. [...] WP-Clap:拍手插件,我喜欢(喂) [...]

  35. AYAKI吐槽曰:

    伪春菜插件和这个拍手插件,在wp 3.0的子站中好象都没办法设置。
    拍手插件,在子站中设定过之后直接转到主站去,并且无法在分站显示。
    (伪春菜可以在分站显示,但是却无法独立设定,也是设定好之后会转到主站插件的设置页面)
    请问这个有什么办法吗……;;w;;

吐个槽吧

欢迎光临~
伪春菜for WordPress插件V1.4已经发布,猛击这里获取~
战场原