Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • jmef Friend
    #139816

    I am using a component that uses the latest Mootools and hence I need to disable Mootools 1.1. in my JA Template.

    Please help!

    P.S. If I use Beez template to see if it makes a difference, then my component (ParaInvite) does work. So to problem is definitely with my JA Template.

    Arvind Chauhan Moderator
    #299444

    There are two mootools javascript running on Ja Rochea.

    • one is Your_Joomla/media/system/js/mootools.js This is required for the Joomla Backend to work. so can’t be removed.
    • Second is at Your_Joomla/templates/ja_rochea/scripts/mootools.v1.1.js . This s required for the mod_ja_slwi to function.

    You can disable the mootools.v1.1.js by following the steps as below:

    1. Backup your template index.php
    2. open your template index.php around line 33 remove the following line of code:

    [PHP]<script language=”javascript” type=”text/javascript” src=”<?php echo $tmpTools->templateurl();?>/scripts/mootools.v1.1.js”></script>[/PHP]

    This should not have much effect on template functionality. For me it makes no difference to template working.

    To revert back, you can always replace your backup copy of template index.php.

    Give it a try and let us know.

    regards

    arvind

    jmef Friend
    #299506

    Mark thank you very much for your prompt response!

    Unfortunately it is not fixing my problem. I wonder what other potential conflicts could cause this, particularly since it works fine in Beez (standard Joomla template) or a simple template provided by my IP-host.

    Check out the page on my test website at http://community.festivalorganiser.com/new/component/parainvite/

    Clicking on either the Import Email Addresses link on the right or the Import Social Contacts, the mootools are supose to either change the page form on the left or open a Shadowbox.

    Checking with the author of the component, I get the response that it is a template issue related to mootools. Which seems to be confirmed by the fact that it does work on other non-JA templates.

    I sincerely hope it can be fixed. For the time being I see how I can allocate a different (working) template just to that page…

    I am surprised there are not more people at Joomla Art running in simular problems…

    ShannonN Friend
    #299509

    jmef;122076Mark thank you very much for your prompt response!

    Unfortunately it is not fixing my problem. I wonder what other potential conflicts could cause this, particularly since it works fine in Beez (standard Joomla template) or a simple template provided by my IP-host.

    Check out the page on my test website at http://community.festivalorganiser.com/new/component/parainvite/

    Clicking on either the Import Email Addresses link on the right or the Import Social Contacts, the mootools are supose to either change the page form on the left or open a Shadowbox.

    Checking with the author of the component, I get the response that it is a template issue related to mootools. Which seems to be confirmed by the fact that it does work on other non-JA templates.

    I sincerely hope it can be fixed. For the time being I see how I can allocate a different (working) template just to that page…

    I am surprised there are not more people at Joomla Art running in simular problems…

    In addition to removing the mootools 1.1 uninstall the mod_ja_slwi module this should ensure no calls are made to the mootools script which would cause problems if it doesn’t exist

    ShannonN

    jmef Friend
    #299548

    Well after going in circles without solving the problem I did get it fixed after all!

    These are all the things I did (not sure they are all necessary) that eventually did the trick:

    1) Removed Mootools reference in Index.php code as suggested above:

    <script language="javascript" type="text/javascript" src="<?php echo $tmpTools->templateurl();?>/scripts/mootools.v1.1.js"></script>

    2) Added code as suggested by the author of the component:

    <?php
    JHTML::_('behavior.mootools');
    $document =& JFactory::getDocument();
    if ($option == 'com_parainvite') {
    $parameter_script = 'scripts';
    $headerstuff = $document->getHeadData();
    reset($headerstuff[$parameter_script]);
    foreach ($headerstuff[$parameter_script] as $key=>$value){
    if (substr_count($key, 'mootools') > 0)
    unset($headerstuff[$parameter_script][$key]);
    }
    $document->setHeadData( $headerstuff );
    }
    ?>
    <jdoc:include type="head" />
    <?php JHTML::_('behavior.mootools'); ?>

    3) Added the component.php (see attached) as provided by the author of the component to both the general folder of my template and the scripts folder inside the template folder.

    4) Uninstalled mod_ja_slwi in Joomla! Admin

    5) I went as far as renaming the mootools.v1.1.js in the scripts folder that is inside the template’s folder.

    I now have multiple installations of JA Rochea (under different names obviously) in which I have allocated the hacked version to the component’s page only, so I can still use mod_ja_slwi on other pages using the un-hacked template.


    1. component.zip
    Arvind Chauhan Moderator
    #299585

    Glad you got it solved. This will be useful to others having similar problems.

    Checked http://community.festivalorganiser.com/new/component/parainvite/ but the home page http://community.festivalorganiser.com/new/home doesn’t work. May be you can fix that too. Would like to see the home page of your site.

    regards

    arvind

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

This topic contains 6 replies, has 3 voices, and was last updated by  Arvind Chauhan 15 years, 7 months ago.

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