Plugin Directory

WP-Clap

Allow your visitors to leave messages(Clap) easily without typing a comment.

  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' file add the following line:
<?php if(function_exists('wp_clap')) { wp_clap(); } ?>

You can use the following functions in 'index.php' to show how many claps there are:

<?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 one claps,   '% Claps'    1.0
                           '%' is replaced by the number of claps.
mode            integer    Which number you want to show.                        0            1.0
                           0 = Total claps,
                           1 = Total clappers,
                           2 = Average claps.
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 Clap', '1 Clap', '% Claps', 1); // total clappers ?>
<?php get_wp_claps('0 Clap', '1 Clap', '% Claps', 2); // average claps ?>
<?php get_wp_claps('0 Claps', '1 Clap', '% Claps', 0, 0); // total claps with no link ?>

Custom CSS:

  • WP-Clap will load wp-clap-style.css .
  • If you want to use your own style, just check the style checkbox in 'Setting->WP-Clap'.

Requires: 2.7 or higher
Compatible up to: 3.0.5
Last Updated: 2010-9-12
Downloads: 2,328

Average Rating

4 stars
(4 ratings)

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1
100,1,1
100,2,2
100,1,1
100,1,1
100,1,1