jillmandy
Newbie
Karma: 0
Offline
Posts: 8
|
 |
« on: January 02, 2009, 06:44:48 » |
|
I would like to see Jcomments intergrated with groupjive.
|
|
|
|
|
Logged
|
|
|
|
giuse
Newbie
Karma: 0
Offline
Posts: 5
|
 |
« Reply #1 on: January 02, 2009, 16:50:53 » |
|
I second that. Cheers
Giuse
|
|
|
|
|
Logged
|
|
|
|
|
smart
|
 |
« Reply #2 on: January 04, 2009, 19:44:54 » |
|
1. Open file /components/com_groupjive/groupjive.html.php 2. Find line: $tmpl->displayParsedTemplate( 'showfullmessage' ); add after this line following code: global $mainframe; $comments = $mainframe->getCfg('absolute_path') . '/components/com_jcomments/jcomments.php'; if (file_exists($comments)) { require_once($comments); echo JComments::showComments($d->id, 'com_groupjive', $d->subject); } That's all  This integration available in russian but I'm forgot to translate it to english 
|
|
|
|
|
Logged
|
|
|
|
jillmandy
Newbie
Karma: 0
Offline
Posts: 8
|
 |
« Reply #3 on: January 07, 2009, 17:22:42 » |
|
I don't seem to have the line you want me to find. I'm using GroupJive Pre -RC Testing Version (as this was the only groupjive I could find anymore)
|
|
|
|
|
Logged
|
|
|
|
|
smart
|
 |
« Reply #4 on: January 07, 2009, 21:17:40 » |
|
Ok, I'm make integration for older version. With GroupJive Pre -RC we need make it so: 1. Open file: /components/com_groupjive/groupjive.html.php 2. Find line: $_GJ_TEMPLATES->addContent($tmpl->getParsedTemplate( 'showfullmessage' ), 'center'); 3. Add after it code: 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'); }
I think it will work 
|
|
|
|
|
Logged
|
|
|
|
jillmandy
Newbie
Karma: 0
Offline
Posts: 8
|
 |
« Reply #5 on: January 07, 2009, 22:27:10 » |
|
YES!!!!!! It worked, that just made my day 
|
|
|
|
|
Logged
|
|
|
|
jillmandy
Newbie
Karma: 0
Offline
Posts: 8
|
 |
« Reply #6 on: January 18, 2009, 04:42:15 » |
|
Since I upgraded to Joomla 1.5.8 and had to re-install everything, this no longer works... 
|
|
|
|
|
Logged
|
|
|
|
|
smart
|
 |
« Reply #7 on: January 18, 2009, 16:32:32 » |
|
I think you forgot make some changes or make some mistake then add integration code. I'm check now this code on J1.5.9 and GroupJive Pre -RC and all works fine.
|
|
|
|
|
Logged
|
|
|
|
jillmandy
Newbie
Karma: 0
Offline
Posts: 8
|
 |
« Reply #8 on: January 18, 2009, 18:59:59 » |
|
I'll have to investigate because I never changed anything form the original settings. I just uploaded the files as I did before.... 
|
|
|
|
|
Logged
|
|
|
|
jillmandy
Newbie
Karma: 0
Offline
Posts: 8
|
 |
« Reply #9 on: January 27, 2009, 16:52:12 » |
|
it gives me this error on the front end when I do this....
Parse error: syntax error, unexpected T_GLOBAL, expecting T_FUNCTION in /home/uruz5961/public_html/components/com_groupjive/groupjive.html.php on line 353
Any help would be greatly appreciated.
|
|
|
|
|
Logged
|
|
|
|
|
svarmuza
Guest
|
 |
« Reply #10 on: February 06, 2009, 03:39:13 » |
|
Hello, I managed to implement Joomcomment to the groupjive when someone clicks group bulletin, but i would like to implement Joomcomment to the group's main page (so people can comment group, not bulletin). Is this somehow possible. Thanks, Sasa
|
|
|
|
|
Logged
|
|
|
|
and2y
Newbie
Karma: 0
Offline
Posts: 4
|
 |
« Reply #11 on: March 23, 2009, 20:20:57 » |
|
Ok, I'm make integration for older version. With GroupJive Pre -RC we need make it so: 1. Open file: /components/com_groupjive/groupjive.html.php 2. Find line: $_GJ_TEMPLATES->addContent($tmpl->getParsedTemplate( 'showfullmessage' ), 'center'); 3. Add after it code: 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'); }
I think it will work  hi it doesnt work ... there´s always a syntax error PLS HELP MEEEEE!!!!
|
|
|
|
|
Logged
|
|
|
|
|
smart
|
 |
« Reply #12 on: March 23, 2009, 22:36:40 » |
|
it doesnt work ... there´s always a syntax error can you show me this error text, please?
|
|
|
|
|
Logged
|
|
|
|
and2y
Newbie
Karma: 0
Offline
Posts: 4
|
 |
« Reply #13 on: March 23, 2009, 23:15:17 » |
|
hi
my errorcode:
Parse error: syntax error, unexpected ';', expecting T_FUNCTION in /home/.sites/552/site756/web/components/com_groupjive/groupjive.html.php on line 1576
i added it like this:
$tmpl->addObject( 'showfullmessage', $d);
$tmpl->addVar( 'showfullmessage', 'GJ_IS_OWNER', ($_CB_framework->myId() ==$d->author_id||$admin||ismoder($d->group_id, $_CB_framework->myId()))?"yes":"no");
$tmpl->addVar( 'showfullmessage', 'ITEMID', $Itemid);
$_GJ_TEMPLATES->addContent($tmpl->getParsedTemplate( 'showfullmessage' ), 'center'); 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');}
thanks 4 your help
andyy
|
|
|
|
|
Logged
|
|
|
|
|
smart
|
 |
« Reply #14 on: March 23, 2009, 23:45:23 » |
|
Parse error: syntax error, unexpected ';', expecting T_FUNCTION in /home/.sites/552/site756/web/components/com_groupjive/groupjive.html.php on line 1576 and what text is placed at line 1576 in this file? can you specify this line?
|
|
|
|
|
Logged
|
|
|
|
|