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: [Solved] Sobipro - Please Help
Pages: [1]   Go Down
  Print  
Author Topic: [Solved] Sobipro - Please Help  (Read 4096 times)
0 Members and 1 Guest are viewing this topic.
pepiw1
Newbie
*

Karma: 0
Offline Offline

Posts: 2


« on: March 05, 2012, 21:40:46 »

Hi,

I have installed Joomla 2.5 + JComments 2.3.0 Stable.

Can anyone help me to integrate JComments in Sobipro?   Angry
« Last Edit: May 30, 2012, 20:48:43 by smart » Logged
smart
Administrator
Hero Member
*****

Karma: 163
Offline Offline

Gender: Male
Posts: 2161



WWW
« Reply #1 on: March 05, 2012, 22:06:38 »

1. Open file /components/com_sobipro/usr/templates/default/entry/details.xsl
2. Find code (at the begin of file)::
Code: (xml)
<div style="clear:both;"></div>
and add:
Code: (xml)
<xsl:variable name="EntryId">
<xsl:value-of select="entry/@id" />
</xsl:variable>
<xsl:variable name="EntryName">
<xsl:value-of select="entry/name" />
</xsl:variable>

<xsl:value-of select="php:function( 'TplFunctions::JComments' , $EntryId, $EntryName )" disable-output-escaping="yes" />

3. Open file /components/com_sobipro/usr/templates/default/template.php
4. Find code:
Code: (php)
public static function Cfg(  $key, $def = null, $section = 'general'  )
{
return Sobi::Cfg( $key, $def, $section );
}
and add after:
Code: (php)
public static function JComments( $id, $title )
{
       $result = '';
         $comments = JPATH_SITE.'/components/com_jcomments/jcomments.php';
if (is_file($comments)) {
require_once($comments);
  $result = JComments::show($id, 'com_sobipro', $title);
}

return $result;
}
Logged

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

Karma: 0
Offline Offline

Posts: 2


« Reply #2 on: March 06, 2012, 01:47:35 »

Hi, smart

Thank you very much for your help. It works.  Wink
Logged
Mostarda
Newbie
*

Karma: 0
Offline Offline

Posts: 1


Email
« Reply #3 on: March 08, 2012, 01:50:23 »

Hello, thank you. Works fine for me.

I would to know if isnt possible that the jcomment box pull down the sobipro content. With configurations you posted, the jcomment box come before of the first content.

Thank you again.
Logged
fretties
Newbie
*

Karma: 0
Offline Offline

Posts: 1


« Reply #4 on: June 16, 2012, 02:36:18 »

Hello,

thanks for the code  Cheesy

How can i display jcomment under the entry and not above?
And i get no messagav after comment one entry. I can see the result only, if i refresh the page...
Can anyone help me please.

A little plugin for thid would be nice  Smiley

Thanks,
Marco
Logged
Bruntho
Newbie
*

Karma: 0
Offline Offline

Posts: 4


Email
« Reply #5 on: June 28, 2012, 05:04:59 »


And i get no messagav after comment one entry. I can see the result only, if i refresh the page...
Can anyone help me please.


Hello, i just posted a solution for this problem here : http://www.joomlatune.com/forum/index.php/topic,4520.0.html

I'm waiting the validation of the jComments team to see if something is wrong in my solution

Best,

Bruntho.
Logged
Pages: [1]   Go Up
  Print  
JoomlaTune Support Forum    JComments component    Integration with third-party extensions    Topic: [Solved] Sobipro - Please Help
 
Jump to: