Integration with components which requires override or hack

  • Integration with Jomsocial

      Jomsocial  currently

         1.profile
         2.videos
         3.events
         4.Group Discussion

1)Enable jLike jomsocial Plugin from backend
Override this file frontend/components/com_community/templates/default/like.html.php and replace all its content with code given below

defined ( '_JEXEC' ) or die ( 'Restricted access' ); $dispatcher = &JDispatcher::getInstance(); JPluginHelper::importPlugin('community'); $grt_response=$dispatcher->trigger('onBeforeDisplaylike',array());

  • Integration with jComments

        1)Enable jLike jcomments Plugin from backen

         2)Find these two lines of site/components/com_jcomments/tpl/tpl_comment.php around 104

        // show frontend moderation panel
      $this->getCommentAdministratorPanel($comment);

        And replace with

//Start jlike integration

$jlikeparams=array();

$jlikeparams['url']=$thisurl.'#comment-'.$comment->id; $jlikeparams['id']=$comment->id;

if($comment->comment) $jlikeparams['title']=$comment->comment;

else $jlikeparams['title']=$comment->author; $dispatcher = JDispatcher::getInstance(); JPluginHelper::importPlugin('jcomments'); $grt_response=$dispatcher->trigger('onAfterdisplayJcomment',array('jcomments.comment',$jlikeparams));

if($grt_response[0]) echo $grt_response[0]; //End jlike integration

 

 

  • Virtuemart

    components/com_virtuemart/views/category/tmpl/default.php line no 304

   

$dispatcher = &JDispatcher::getInstance();
JPluginHelper::importPlugin('content');    $grt_response=$dispatcher->trigger('onContentAfterTitle',array('com_virtuemart.productdetails',$product,array(),0));
 echo $grt_response[0];
  • Hikashop
Add these lines on line no 29 components/com_phocagallery/views/detail/tmpl/default.php
$dispatcher = &JDispatcher::getInstance();
JPluginHelper::importPlugin('content');
$grt_response=$dispatcher->trigger('onBeforeDisplaylike',array('com_phocagallery.detail',$this->item,array(),0));
echo $grt_response[0];
  • Redshop
components/com_redshop/views/category/tmpl/detail.php line no 575
$params['jlike_link']=$link;
$dispatcher = &JDispatcher::getInstance();
JPluginHelper::importPlugin('content');
$grt_response=$dispatcher->trigger('onAfterDisplayProduct',array( &$template_desc, &$params, $product ));
$data_add .= $grt_response[0];