Integration with Easydiscuss

  • Enable jlike Easydiscuss plugin from backend

1. To show jLike like/dislike button on post detailed view:

  • Please make sure you have set the "Posts" parameter to Yes in Backend of Easydiscuss component->Settings->general->Content Triggers->Content Events Triggers tab.

2.To show jlike buttons on Category detailed view(i.e. where a category and its belonging post are listed)

  • show jlike buttons after category title

 

       File to  override : /components/com_easydiscuss/themes/simplistic/frontpage.category.php
       Code to put on  number: 41-50

 

//Start-Integtation with Jlike 
$post_url='index.php?option=com_easydiscuss&view=categories&layout=listings&category_id='.$category->id; 
$dispatcher = JDispatcher::getInstance(); 
JPluginHelper::importPlugin('content','jlike_easydiscuss'); $response=$dispatcher->trigger('AfterEasydiscussTitle',array('com_easydiscuss.category',$post_url,$category)); if(!empty($response['0'])) echo $response['0']; //End-Integration with Jlike

Please make sure you embed this code in php start and end  tags if needed.

  • show jlike buttons after post title

           File to override: /components/com_easydiscuss/themes/simplistic/frontpage.post.php

Code to put on  after  close of<!-- Introtext --><div class="discuss-story-bd"> div.

//Start-Integtation with Jlike 
$post_url='index.php?option=com_easydiscuss&view=post&id='.$post->id; 
$dispatcher = JDispatcher::getInstance(); 
JPluginHelper::importPlugin('content','jlike_easydiscuss'); 
$response=$dispatcher->trigger('AfterEasydiscussTitle',array
('com_easydiscuss.post',$post_url,$post)); 
if(!empty($response['0'])) 
		echo $response['0']; 
//End-Integration with Jlike 

 

Note : Commenting not available. Also please make sure you embed this code in php start and end  tags if needed.