Integration of jLike with Community polls

Enable jlike community polls plugin from backend

To show Like, Dislike  

  • File to  modify :Your_site/components/com_communitypolls/views/poll/tmpl/default.php
  • Code to put on Line number : 129 
	$show_comments = -1;
	$show_like_buttons = 1;

	$dispatcher	= JDispatcher::getInstance();
	JPluginHelper::importPlugin('content');
	$dispatcher->trigger('onBeforeDisplaylike', array ($show_comments, $show_like_buttons));

 To show Comments

  • Turn on commenting option from jlike community polls plugin.
  • Open file to  modify :Your_site/components/com_communitypolls/views/poll/tmpl/default.php
  • Put following code at the End of file
	$show_comments = 1;
	$show_like_buttons = 0;

	$dispatcher	= JDispatcher::getInstance();
	JPluginHelper::importPlugin('content');
	$dispatcher->trigger('onBeforeDisplaylike', array ($show_comments, $show_like_buttons));