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] mod_jcomments and CB Tab do not link to comment correctly.
Pages: [1]   Go Down
  Print  
Author Topic: [SOLVED] mod_jcomments and CB Tab do not link to comment correctly.  (Read 5388 times)
0 Members and 1 Guest are viewing this topic.
spinner0205
Jr. Member
**

Karma: 0
Offline Offline

Posts: 11


« on: September 12, 2010, 02:37:39 »

I have both the mod_jcomments displayed on the front page of my site, and the Latest Comments tab for JComments on every users Community Builder profile. But neither link correctly to the comment that was made. It is integrated with JoomGallery and VideoFlow. For example, with JoomGallery when clicking the 'More...' link on a profile for the specific comment it takes you to the gallery page rather than the individual picture detail page the comment was made on, same for the mod_jcomments module on the home page. Also, for VideoFlow it does not do anything at all when clicking and justs stays on the same page. Is there any way to correct these so that they link to the page the comment was made on correctly?  Huh

Link to a user profile:
http://thatsactuallyfunny.webege.com/index.php/component/comprofiler/userprofile/Lillie

Click on Latest Comments tab and try clicking on any comment to view it. You will see what I mean. Some link to the gallery page because it was a comment made within com_joomgallery and some do not link anywhere because it was made in com_videoflow.

Thanks in advance.
« Last Edit: September 15, 2010, 04:35:59 by spinner0205 » Logged
smart
Administrator
Hero Member
*****

Karma: 163
Offline Offline

Gender: Male
Posts: 2161



WWW
« Reply #1 on: September 12, 2010, 02:57:03 »

JComments doesn't store link to commented objects but build them on the fly by using special plugins (see /components/com_jcomments/plugins). If some link generated wrong it means what some plugin needs to be corrected.

I couldn't check all plugins with all supported extensions. When I've made plugin for JoomGallery it worked fine for me. But may be with some of new versions of JoomGallery it might conflict. Give me more detailed information about used version of JoomGallery.

Regarding VideoFlow... I did't remember such extension and seems JComments hasn't plugin for it. All nessesary information about creation of such plugins is available on our site (see section for developers in right menu).
Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
spinner0205
Jr. Member
**

Karma: 0
Offline Offline

Posts: 11


« Reply #2 on: September 12, 2010, 03:09:58 »

Joomla version 1.5 in Legacy 1.0 mode
JComments version 2.2.0.0
JoomGallery version 1.5.5.2

Is there any way to request a plugin creation for a certain component that hasn't been done yet? Also, for JoomGallery what might I need to do to fix the plugin file?
Logged
smart
Administrator
Hero Member
*****

Karma: 163
Offline Offline

Gender: Male
Posts: 2161



WWW
« Reply #3 on: September 12, 2010, 03:20:26 »

Joomla version 1.5 in Legacy 1.0 mode
JComments version 2.2.0.0
JoomGallery version 1.5.5.2
Ok, I'll check with 1.5.5.2... BTW, I suggest you to update JComments 2.2.0.0 to 2.2.0.1

Is there any way to request a plugin creation for a certain component that hasn't been done yet?
Of course. For that I need name of extension, version and link where it could be downloaded. And as I'll have free time I'll make such plugin.
Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
spinner0205
Jr. Member
**

Karma: 0
Offline Offline

Posts: 11


« Reply #4 on: September 12, 2010, 03:26:27 »

The name of the extension is VideoFlow.

Link to latest version:
http://www.fidsoft.com/index.php?option=com_docman&task=cat_view&gid=39&Itemid=59
Latest Version is 1.1.1

It actually has integration with JComments already in the settings if that will make it any easier.  Wink
Logged
smart
Administrator
Hero Member
*****

Karma: 163
Offline Offline

Gender: Male
Posts: 2161



WWW
« Reply #5 on: September 12, 2010, 03:32:37 »

It already has such plugin, see here: JComments Plugin. And in plugin description where is information where it must be placed.
Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
spinner0205
Jr. Member
**

Karma: 0
Offline Offline

Posts: 11


« Reply #6 on: September 12, 2010, 03:36:24 »

Cool thanks, works perfect now, and if you can, just let me know on the JoomGallery conflict. Thanks for the help.
Logged
smart
Administrator
Hero Member
*****

Karma: 163
Offline Offline

Gender: Male
Posts: 2161



WWW
« Reply #7 on: September 14, 2010, 00:22:38 »

I've found the solution for JoomGallery 1.5.5.2...

1. Open file /components/com_jcomments/plugins/com_joomgallery.plugin.php
2. Find code:
Code: (php)
        $link = JoomlaTuneRoute::_('index.php?option=com_joomgallery&func=detail&id=' . $id . '&Itemid=' . $_Itemid);
and replace with:
Code: (php)
        $link = JRoute::_('index.php?option=com_joomgallery&view=detail&id=' . $id . '&Itemid=' . $_Itemid);

Thats all!
Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
spinner0205
Jr. Member
**

Karma: 0
Offline Offline

Posts: 11


« Reply #8 on: September 14, 2010, 02:41:07 »

Cool works great now but have a new problem it seems. Now nobody can post comments, (this started before you fix by the way). It shows the comment field and BB Code buttons properly but pressing the send button does nothing. I uninstalled and installed version 2.2.0.2 and still the same thing.
Logged
smart
Administrator
Hero Member
*****

Karma: 163
Offline Offline

Gender: Male
Posts: 2161



WWW
« Reply #9 on: September 14, 2010, 03:02:42 »

It sounds you've some problems with JavaScript... Make sure that all JComments scritps are loaded properly. Or give me a link to the page where comments are enabled and I'll check it myself.
Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
spinner0205
Jr. Member
**

Karma: 0
Offline Offline

Posts: 11


« Reply #10 on: September 14, 2010, 07:46:53 »

www.thatsactuallyfunny.com/index.php/pictures/animated/epic-colbert-dance-54#

Scroll to the bottom and try adding a comment. I enabled comments for unregistered users so you can try it.  Wink
« Last Edit: September 14, 2010, 08:42:16 by spinner0205 » Logged
smart
Administrator
Hero Member
*****

Karma: 163
Offline Offline

Gender: Male
Posts: 2161



WWW
« Reply #11 on: September 14, 2010, 14:24:53 »

Sorry but you site is offline and I couldn't check...
Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
spinner0205
Jr. Member
**

Karma: 0
Offline Offline

Posts: 11


« Reply #12 on: September 14, 2010, 17:46:32 »

There you go, sorry bout that forgot to leave it online.
Logged
smart
Administrator
Hero Member
*****

Karma: 163
Offline Offline

Gender: Male
Posts: 2161



WWW
« Reply #13 on: September 14, 2010, 20:14:42 »

It looks like you've conflict with some compression software. The source code of page is compressed and it is too hard to me to detect if JComments Javascripts properly included. But browser reports JavaScript error that 'jcomments is not defined' - this is occurs when we've problems with including JComments' scripts. Try to disable compression extension.
« Last Edit: September 14, 2010, 21:04:46 by smart » Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
spinner0205
Jr. Member
**

Karma: 0
Offline Offline

Posts: 11


« Reply #14 on: September 15, 2010, 04:27:54 »

EDIT: Didn't notice you edited your post to include what to do. Exactly right, I recall changing a setting in JCHOptimize to include all plugins and modules in its compression of files. Guess that's what messed it up. Thanks for all the awesome help. We can call this a solved problem!  Cheesy

Okay I completed uninstalled it again and removed all associated modules and plug ins, and made sure there was nothing left over in FTP.

Re-downloaded latest version of component and everything that goes with it (avatar plug in, CB profile plug in etc.) but only installed the component first. As expected it was still not functioning (send button just shoots you back to the top of the page and doesn't post the comment).

I noticed that it was retaining my configuration settings from before I uninstalled it, this tells me its not being completely removed, any idea where the files are hiding at that I need to remove manually by FTP?
« Last Edit: September 15, 2010, 04:33:24 by spinner0205 » Logged
Pages: [1]   Go Up
  Print  
JoomlaTune Support Forum    JComments component    Integration with third-party extensions    Topic: [SOLVED] mod_jcomments and CB Tab do not link to comment correctly.
 
Jump to: