Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • justinsmith Friend
    #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 Friend
    #404298

    Hello,

    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.

    Stork11 Friend
    #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.

    justinsmith Friend
    #404831

    Many thanks for fixing this for me! Good to have it working. 🙂

    Justin

    justinsmith Friend
    #406795

    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-england

    I’ll submit a ticket with my joomla login details. Thanks in advance for your help! 🙂

    Many thanks,
    Justin

    Stork11 Friend
    #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-england

    I’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 Friend
    #406840

    Hi
    Would you mind give me some more detail your trouble ?
    Thank you
    Viet Vu

Viewing 7 posts - 1 through 7 (of 7 total)

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