Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • valtersgrivins Friend
    #182140

    Hello!
    Please help me to solve JS conflict problem. I have yootheme widgetkit installed and when there are 2 widgets inserted in page with Ja Comment component active, one widget (in my case slideshow) doesn’t loads. Disabling Ja Comment removes the problem, but i need both widgets (gallery + slideshow) and comments. See my page here:
    http://site-b.trivik.lv/index.php/civilizacijas-un-kulturas/sadalas/tuvie-austrumi/598-neparasta-vieta-sakara-atrod-senas-valsts-5-dinastijas-princeses-kapu

    I asked for help in yootheme and their support said that it is multiple instances Jquerry loading problem, which can be solved implementing this code in Ja comment:

    // load jQuery, if not loaded before
    if (!JFactory::getApplication()->get(‘jquery’)) {
    JFactory::getApplication()->set(‘jquery’, true);
    // add jQuery

    }

    Could You tell me in which file i need to insert this code?

    Thanks!

    Stork11 Friend
    #472588

    <em>@valtersgrivins 345728 wrote:</em><blockquote>Hello!
    Please help me to solve JS conflict problem. I have yootheme widgetkit installed and when there are 2 widgets inserted in page with Ja Comment component active, one widget (in my case slideshow) doesn’t loads. Disabling Ja Comment removes the problem, but i need both widgets (gallery + slideshow) and comments. See my page here:
    http://site-b.trivik.lv/index.php/civilizacijas-un-kulturas/sadalas/tuvie-austrumi/598-neparasta-vieta-sakara-atrod-senas-valsts-5-dinastijas-princeses-kapu

    I asked for help in yootheme and their support said that it is multiple instances Jquerry loading problem, which can be solved implementing this code in Ja comment:

    // load jQuery, if not loaded before
    if (!JFactory::getApplication()->get(‘jquery’)) {
    JFactory::getApplication()->set(‘jquery’, true);
    // add jQuery

    }

    Could You tell me in which file i need to insert this code?

    Thanks!</blockquote>
    Hello valtersgrivins,

    You can insert that code into “/plugins/content/jacomment/jacomment.php” file, at line “JHTML::script($_root.’components/com_jacomment/libs/bootstrap/js/jquery.js’);”. Replace it as below:
    [PHP]
    // load jQuery, if not loaded before
    if (!JFactory::getApplication()->get(‘jquery’)) {
    JFactory::getApplication()->set(‘jquery’, true);
    // add jQuery
    JHTML::script($_root.’components/com_jacomment/libs/bootstrap/js/jquery.js’);
    }
    [/PHP]
    Hope this helps.

    Regards.

    valtersgrivins Friend
    #472753

    Sorry, i can not find this line in /plugins/content/jacomment/jacomment.php:

    “JHTML::script($_root.’components/com_jacomment/libs/bootstrap/js/jquery.js’);”

    Stork11 Friend
    #472761

    <em>@valtersgrivins 345992 wrote:</em><blockquote>Sorry, i can not find this line in /plugins/content/jacomment/jacomment.php:

    “JHTML::script($_root.’components/com_jacomment/libs/bootstrap/js/jquery.js’);”</blockquote>
    Maybe you’re using old version of JA Comment. Please try to find below line:
    [PHP]JHTML::script($_root.’components/com_jacomment/asset/js/jquery-1.4.2.js’);[/PHP]

    Regards.

    valtersgrivins Friend
    #472888

    Dear Stork!
    Yes, i use JA Comment which was pre-installed in TelineIV template. Unfortunately i can not update it without separately purchasing component. I only added latest jquerry library and modified corresponding line in code. Well, there in fact is not such a line, containing
    $_root.'components/com_jacomment/libs/bootstrap/js/jquery.js
    in my jacomment.php. Please see attached file!

    24313


    1. jacomment.zip
    Stork11 Friend
    #473004

    Hello valtersgrivins,

    The correct code line is:
    [PHP]JHTML::script($_root.’components/com_jacomment/asset/js/jquery-1.8.2.js’);[/PHP]

    Please check my attachment for the correct one.

    Regards.


    1. jacomment.zip
    valtersgrivins Friend
    #473020

    Thank You, Stork!

    It works! You are really “support hero”!

    Valters

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

This topic contains 7 replies, has 2 voices, and was last updated by  valtersgrivins 12 years ago.

We moved to new unified forum. Please post all new support queries in our New Forum