Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

JoomlaTune Support Forum    JComments component    Integration with third-party extensions    Topic: Easyblog + Jcomment latest module problem
Pages: [1]   Go Down
  Print  
Author Topic: Easyblog + Jcomment latest module problem  (Read 2596 times)
0 Members and 1 Guest are viewing this topic.
Duvy
Newbie
*

Karma: 0
Offline Offline

Posts: 1


« on: July 15, 2011, 19:23:27 »

Hi guys!

I want to integrate Jcomments, to all the components, i use on my website, the only problem i have, is with the jcomment latest module.

In the module configuration these are the Sources:" com_content,com_k2,com_joomgallery,com_easyblog "

The first 3 works fine, i noticed some problem using the easyblog.

Both the Module, and the component cant find the easyblog posts link ( and title ):



I've found the following plugin, the code seemed to be right, bur the jcomment avoids using it for some reason.

joomla/components/com_jcomments/plugins/com_easyblog.plugin.php:
<?php
/**
 * JComments plugin for EasyBlog support
 *
 **/
class jc_com_easyblog extends JCommentsPlugin
{
   function getObjectTitle( $id )
   {
      $db = & JCommentsFactory::getDBO();
      $db->setQuery( "SELECT `title`, `id` FROM #__easyblog_post WHERE id='$id'");
      return $db->loadResult();
   }
 
   function getObjectLink( $id )
   {
      $_Itemid = JCommentsPlugin::getItemid( 'com_easyblog' );
      $link = JoomlaTuneRoute::_('index.php?option=com_easyblog&view=entry&id=' . $id . '&Itemid=' . $_Itemid);
      return $link;
   }
}
?>

Any idea?
Logged
Pages: [1]   Go Up
  Print  
JoomlaTune Support Forum    JComments component    Integration with third-party extensions    Topic: Easyblog + Jcomment latest module problem
 
Jump to: