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

Login with username, password and session length

JoomlaTune Support Forum    Other extensions    Modules    Topic: jcomments module wrong link to groupjive content
Pages: [1]   Go Down
  Print  
Author Topic: jcomments module wrong link to groupjive content  (Read 2197 times)
0 Members and 2 Guests are viewing this topic.
sorema
Newbie
*

Karma: 0
Offline Offline

Posts: 14


« on: December 02, 2010, 16:27:12 »

hi all,
i've been using till now groupjive and jcomments with this integration:
Code:
//integration jcomments//
global $mainframe;
$comments = $mainframe->getCfg('absolute_path') . '/components/com_jcomments/jcomments.php';
if (file_exists($comments)) {
  require_once($comments);
  $comments = JComments::showComments($d->id, 'com_groupjive', $d->subject);
  $_GJ_TEMPLATES->addContent($comments, 'center');
}
//end integration//

till last groupjive update to version 1.8.5 everything worked fine. but now the module gives a wrong link. it shows correctly the messages but as i click on the post it does not take to the post but to the category page..
i get this link:
http://www.mywebsite/index.php?option=com_groupjive&task=showfullmessage&idm=*myitemnumber*&groupid=*mygroupid*&Itemid=100283#comment-564

instead of:

http://www.mywebsite/index.php?option=com_groupjive&action=gj.core.bulletin.showfullmessage&idm=*myitemnumber*&groupid=*mygroupid*&Itemid=#comment-564


is there a way to solve? thank you!
Logged
sorema
Newbie
*

Karma: 0
Offline Offline

Posts: 14


« Reply #1 on: December 02, 2010, 16:32:20 »

aaaaaargH! i suddenly realized there are the plugins!! in plugin in fact i can figure out the output link and make the needed change!!
thanks for attention, sorry for bother hope to be useful to other users! Smiley
Logged
smart
Administrator
Hero Member
*****

Karma: 160
Offline Offline

Gender: Male
Posts: 2559



WWW
« Reply #2 on: December 02, 2010, 20:15:41 »

You can attach here fixed plugin version and I'll include it in the next JComments version.
Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
sorema
Newbie
*

Karma: 0
Offline Offline

Posts: 14


« Reply #3 on: December 03, 2010, 03:29:53 »

here it is!
Code:
<?php
/**
 * JComments plugin for GroupJive (http://www.groupjive.org/) support
 *
 * @version 2.0
 * @package JComments
 * @author Sergey M. Litvinov (smart@joomlatune.ru)
 * @copyright (C) 2006-2009 by Sergey M. Litvinov (http://www.joomlatune.ru)
 * @license GNU/GPL: http://www.gnu.org/copyleft/gpl.html
 **/

class jc_com_groupjive extends JCommentsPlugin
{
function getTitles($ids)
{
$db = & JCommentsFactory::getDBO();
$db->setQuery'SELECT id, subject as title FROM #__gj_bul WHERE id IN (' implode(','$ids) . ')' );
return $db->loadObjectList('id');
}

function getObjectTitle($id)
{
$db = & JCommentsFactory::getDBO();
$db->setQuery'SELECT subject FROM #__gj_bul WHERE id = ' $id );
return $db->loadResult();
}

function getObjectLink($id)
{
$_Itemid JCommentsPlugin::getItemid'com_groupjive' );
$db = & JCommentsFactory::getDBO();
$db->setQuery'SELECT group_id FROM #__gj_bul WHERE id = ' $id );
$gid $db->loadResult();
$link JoomlaTuneRoute::_('index.php?option=com_groupjive&amp;action=gj.core.bulletin.showfullmessage&amp;idm=' $id '&amp;groupid=' $gid '&amp;Itemid=' $_Itemid);
return $link;
}

function getObjectOwner($id)
{
$db = & JCommentsFactory::getDBO();
$db->setQuery'SELECT author_id FROM #__gj_bul WHERE id = ' $id );
$userid $db->loadResult();

return $userid;
}

function getCategories($filter '')
{
$db = & JCommentsFactory::getDBO();
$query "SELECT id AS `value`, name AS `text`"
"\n FROM #__gj_groups"
. (($filter != '') ? "\n WHERE id IN ( ".$filter." )" '')
"\n ORDER BY name"
;
$db->setQuery$query );
$rows $db->loadObjectList();

return $rows;
}
}
?>
Logged
Pages: [1]   Go Up
  Print  
JoomlaTune Support Forum    Other extensions    Modules    Topic: jcomments module wrong link to groupjive content
 
Jump to: