Voting like button

Categories

Component ID

2859516

Component name

Voting like button

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Downloads

268

Component created

Component changed

Component body

This module allows to integrate the Voting like button into your Drupal website.

Features

  • Votinglike module allows visitors to like and dislike anonymously the following Drupal entities: nodes, comments, user.
  • Fully customizable through settings.
  • All labels texts can be changed.
  • Appearance is controlled through CSS.
  • Built-in styles.

Get Likes and Dislikes count in template

Suppose you are using "bartik" theme and you want to display Likes and Dislikes count on the Article page:

  1. Enable "Auto-synching likes into local database" on VotingLike module configuration page (/admin/config/search/votinglike)
  2. Insert the following code in the /themes/bartik/templates/node.tpl.php:
    <?php
    $like_button = votinglike_output('node', $node ->nid, TRUE);
    echo $like_button;
    ?>