-
AuthorPosts
-
August 2, 2011 at 10:05 pm #166991
Had JAComment 1.0.2 working with GPSTools extension (although it seemed to prevent googlemaps from loading correctly if page refreshed), however, can’t get JAComment 1.0.3 to work at all. Please can you let me know if there are any obvious errors in the code below that calls JAComment from the GPSTools extension:
}else if($gpsConfig[G_COMMENT_SYSTEM] == “jacomment”){
if(!JRequest::getInt(‘print’) && file_exists(JPATH_SITE.DS.’components’.DS.’com_jacomment’.DS.’jacomment.php’) && file_exists(JPATH_SITE.DS.’plugins’.DS.’system’.DS.’jacomment’.DS.’jacomment.php’)){
$_jacCode = “#{jacomment(.*?) contentid=(.*?) option=(.*?) contenttitle=(.*?)}#i”;
$_jacCodeDisableid = “#{jacomment(s)off.*}#i”;
$_jacCodeDisable = “#{jacomment(s)off}#i”;
if(!preg_match($_jacCode, $this->track->description) && !preg_match($_jacCodeDisable, $this->track->description) && !preg_match($_jacCodeDisableid, $this->track->description)) {
echo ‘{jacomment contentid=’.$this->track->id.’ option=’.$option.’ contenttitle=’.$this->track->title.’}’;
}Stork11 FriendStork11
- Join date:
- March 2011
- Posts:
- 2273
- Downloads:
- 0
- Uploads:
- 142
- Thanks:
- 55
- Thanked:
- 431 times in 393 posts
August 3, 2011 at 8:03 am #404298Hello,
Could you provide me with your site information (your site URL, your site admin account) and your FTP account? So I can diagnose this problem.
Please use the following ticket link to update your information: http://support.joomlart.com/index.php?/Tickets/Ticket/View/78076
Best regards.
1 user says Thank You to Stork11 for this useful post
Stork11 FriendStork11
- Join date:
- March 2011
- Posts:
- 2273
- Downloads:
- 0
- Uploads:
- 142
- Thanks:
- 55
- Thanked:
- 431 times in 393 posts
August 4, 2011 at 7:42 am #404452<em>@justinsmith 257213 wrote:</em><blockquote>Had JAComment 1.0.2 working with GPSTools extension (although it seemed to prevent googlemaps from loading correctly if page refreshed), however, can’t get JAComment 1.0.3 to work at all. Please can you let me know if there are any obvious errors in the code below that calls JAComment from the GPSTools extension:
}else if($gpsConfig[G_COMMENT_SYSTEM] == “jacomment”){
if(!JRequest::getInt(‘print’) && file_exists(JPATH_SITE.DS.’components’.DS.’com_jacomment’.DS.’jacomment.php’) && file_exists(JPATH_SITE.DS.’plugins’.DS.’system’.DS.’jacomment’.DS.’jacomment.php’)){
$_jacCode = “#{jacomment(.*?) contentid=(.*?) option=(.*?) contenttitle=(.*?)}#i”;
$_jacCodeDisableid = “#{jacomment(s)off.*}#i”;
$_jacCodeDisable = “#{jacomment(s)off}#i”;
if(!preg_match($_jacCode, $this->track->description) && !preg_match($_jacCodeDisable, $this->track->description) && !preg_match($_jacCodeDisableid, $this->track->description)) {
echo ‘{jacomment contentid=’.$this->track->id.’ option=’.$option.’ contenttitle=’.$this->track->title.’}’;
}</blockquote>Hello,
The problem is fixed. Because “system JA Comment” plugin was changed name to “system_jacomment”. So your code should be change from
[PHP]
if(!JRequest::getInt(‘print’) && file_exists(JPATH_SITE.DS.’components’.DS.’com_jac omment’.DS.’jacomment.php’) && file_exists(JPATH_SITE.DS.’plugins’.DS.’system’.DS .’jacomment’.DS.’jacomment.php’))
[/PHP]to
[PHP]
if(!JRequest::getInt(‘print’) && file_exists(JPATH_SITE.DS.’components’.DS.’com_jac omment’.DS.’jacomment.php’) && file_exists(JPATH_SITE.DS.’plugins’.DS.’system’.DS .’system_jacomment’.DS.’system_jacomment.php’))
[/PHP]Best regards.
August 7, 2011 at 11:46 am #404831Many thanks for fixing this for me! Good to have it working. 🙂
Justin
August 17, 2011 at 11:27 pm #406795Hi,
I have just upgraded my website to joomla 1.7 and unfortunately, I have found that I am again experiencing problems getting JAComment to work with GPSTools. Given that you so kindly fixed the problem recently for joomla 1.6, I wonder if you could take a quick look again to see if there is an obvious problem? JAComment seems to otherwise work (once I fixed the “$charset = ‘utf-8’;” issue).
The issue I’m currently experiencing can be seen at the bottom of the following webpage:
http://www.paddlesup.co/shelf/index.php/paddle-tracks–gpsgpxkml/viewtrack/1-cambridge-to-granchester-cambs-englandI’ll submit a ticket with my joomla login details. Thanks in advance for your help! 🙂
Many thanks,
JustinStork11 FriendStork11
- Join date:
- March 2011
- Posts:
- 2273
- Downloads:
- 0
- Uploads:
- 142
- Thanks:
- 55
- Thanked:
- 431 times in 393 posts
August 18, 2011 at 3:21 am #406810<em>@justinsmith 260454 wrote:</em><blockquote>Hi,
I have just upgraded my website to joomla 1.7 and unfortunately, I have found that I am again experiencing problems getting JAComment to work with GPSTools. Given that you so kindly fixed the problem recently for joomla 1.6, I wonder if you could take a quick look again to see if there is an obvious problem? JAComment seems to otherwise work (once I fixed the “$charset = ‘utf-8’;” issue).
The issue I’m currently experiencing can be seen at the bottom of the following webpage:
http://www.paddlesup.co/shelf/index.php/paddle-tracks–gpsgpxkml/viewtrack/1-cambridge-to-granchester-cambs-englandI’ll submit a ticket with my joomla login details. Thanks in advance for your help! 🙂
Many thanks,
Justin</blockquote>Hello Justin,
As I told you before, “system JA Comment” plugin was changed name to “system_jacomment”. So you should edit its class name to “system_jacomment”.
I.e.Line 24:
change
[PHP]class plgSystemJAComment extends JPlugin[/PHP]
to
[PHP]class plgSystemSystem_JAComment extends JPlugin[/PHP]Line 36:
change
[PHP]function plgSystemJAComment( &$subject ){[/PHP]
to
[PHP]function plgSystemSystem_JAComment( &$subject ){[/PHP]Line 40:
change
[PHP]$this->plugin = &JPluginHelper::getPlugin(‘system’, ‘jacomment’);[/PHP]
to
[PHP]$this->plugin = &JPluginHelper::getPlugin(‘system’, ‘system_jacomment’);[/PHP]Hope this help.
Regards.
jooservices Friendjooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
August 18, 2011 at 8:10 am #406840Hi
Would you mind give me some more detail your trouble ?
Thank you
Viet Vu -
AuthorPosts
This topic contains 7 replies, has 3 voices, and was last updated by jooservices 13 years, 3 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum