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: Integration with SOBIPRO - please may a team member have a quick view on my code
Pages: [1]   Go Down
  Print  
Author Topic: Integration with SOBIPRO - please may a team member have a quick view on my code  (Read 5122 times)
0 Members and 1 Guest are viewing this topic.
Bruntho
Newbie
*

Karma: 0
Offline Offline

Posts: 4


Email
« on: June 28, 2012, 05:01:34 »

Hello all,

I used the sobipro member plugin to integrate jcomments, but i had somme erros when submitting comments.

Indeed, when i sent the comment, the form wasn't empty, i didnt receive any thank you message, notifications wasn't sent BUT comment was registered in the database, in the backoffice, and, after refresh the page or the comments, i could see it appears.

I had to do a condition in order to make it work properly :

(components/com_jcomments/jcomments.ajax.php)
around line 456

Code:
JCommentsObjectHelper::storeObjectInfo($comment->object_id, $comment->object_group, $comment->lang);

I had to insert a condition :

Code:
if($comment->object_group != 'com_sobipro')
JCommentsObjectHelper::storeObjectInfo($comment->object_id, $comment->object_group, $comment->lang);

Everythings works fine, but i dont know if this line is important for jComment... May a developper or a team member validate this correction ?

Thanks a lot,

Bruntho
Logged
smart
Administrator
Hero Member
*****

Karma: 163
Offline Offline

Gender: Male
Posts: 2161



WWW
« Reply #1 on: June 28, 2012, 11:22:31 »

This is not correct solution because it prevents storing information about commented object to database. This  modification decreases performance of JComments. And of course JComments modules will not show latest comments list correctly.

If you have any problem with 'storeObjectInfo' method we have to look more detail to JComments plugin for SobiPro (/components/com_jcomments/plugins/com_sobipro.plugin.php). It was created about year ago and seems it could have some compatibility issues with current SobiPro version.
Logged

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

Karma: 0
Offline Offline

Posts: 4


Email
« Reply #2 on: June 28, 2012, 16:35:14 »

Hello and thanks for your quick reply,

Everything seems to works perfectly... In the backend, when i click on the Title of my entry, i can see this URL

Quote
index.php?option=com_jcomments&task=go2object&object_id=53&object_group=com_sobipro&lang=en-GB&tmpl=raw

It seems to have been store correctly

(btw, we also modified the plugin, adding 2 methods as you provided in the sobipro forum)

Regards,

MCPC
Logged
smart
Administrator
Hero Member
*****

Karma: 163
Offline Offline

Gender: Male
Posts: 2161



WWW
« Reply #3 on: June 28, 2012, 17:38:04 »

Everything seems to works perfectly... In the backend, when i click on the Title of my entry, i can see this URL
If database table jos_jcomments_objects does not contain records or SobiPro objects - you will have low performance...

Quote
index.php?option=com_jcomments&task=go2object&object_id=53&object_group=com_sobipro&lang=en-GB&tmpl=raw
This is backend URL with redirect... I mean frontend urls... Install JComments Latest Comments, setup it to show comments from SobiPro and open some page (not SobiPro) where this module is published - you will got wrong links...

(btw, we also modified the plugin, adding 2 methods as you provided in the sobipro forum)
They aren't needed because JComments 2.3 contain plugin with new method getObjectInfo which replaces getObjectTitle and getObjectLink...

p.s. Today I've no free time to check integration with SobiPro because today is my birthday. I'm going to check this integration in few days and I will post a solution.
Logged

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

Karma: 0
Offline Offline

Posts: 4


Email
« Reply #4 on: June 28, 2012, 20:35:36 »

Quote
p.s. Today I've no free time to check integration with SobiPro because today is my birthday. I'm going to check this integration in few days and I will post a solution.

 Cheesy HAPPY BIRTHDAY then  Cheesy

And thanks to check it, i will follow the solution Smiley
Logged
xamire
Newbie
*

Karma: 0
Offline Offline

Posts: 3


« Reply #5 on: August 11, 2012, 22:17:02 »

Has anyone found out how to fix this? Like he said, when someone posts a comment in sobipro, it won't show them any validation of posting, or the post itself UNTIL you refresh the page. For now I've changed the "double post error" wording to include the need to refresh to users, but it's a lame one at best.
Logged
hfr
Newbie
*

Karma: 0
Offline Offline

Posts: 1


« Reply #6 on: October 09, 2012, 16:13:01 »

I'm going to check this integration in few days and I will post a solution.
Did you already have the time to check it? Would be very glad to have a solution for it!
Logged
Simpel
Newbie
*

Karma: 0
Offline Offline

Posts: 1


« Reply #7 on: February 13, 2013, 03:53:58 »

 Grin 

Well the first post works fine for me.  But please let me know or there are any changes yet. for now I use the changes in the first post.
Logged
Danyon
Newbie
*

Karma: 0
Offline Offline

Posts: 2


WWW Email
« Reply #8 on: March 26, 2013, 19:39:20 »

Thx Bruntho, it works perfect, though i had to strain my brain  Smiley
Logged

Pages: [1]   Go Up
  Print  
JoomlaTune Support Forum    JComments component    Integration with third-party extensions    Topic: Integration with SOBIPRO - please may a team member have a quick view on my code
 
Jump to: