-
AuthorPosts
-
jmef Friend
jmef
- Join date:
- September 2007
- Posts:
- 19
- Downloads:
- 0
- Uploads:
- 2
- Thanks:
- 7
- Thanked:
- 1 times in 1 posts
April 1, 2009 at 7:41 am #139816I 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 ModeratorArvind Chauhan
- Join date:
- September 2014
- Posts:
- 3835
- Downloads:
- 74
- Uploads:
- 92
- Thanks:
- 1240
- Thanked:
- 1334 times in 848 posts
April 1, 2009 at 10:10 am #299444There 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:
- Backup your template index.php
- 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
1 user says Thank You to Arvind Chauhan for this useful post
jmef Friendjmef
- Join date:
- September 2007
- Posts:
- 19
- Downloads:
- 0
- Uploads:
- 2
- Thanks:
- 7
- Thanked:
- 1 times in 1 posts
April 1, 2009 at 4:37 pm #299506Mark 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 FriendShannonN
- Join date:
- July 2006
- Posts:
- 1947
- Downloads:
- 0
- Uploads:
- 9
- Thanks:
- 16
- Thanked:
- 172 times in 49 posts
April 1, 2009 at 4:45 pm #299509jmef;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
1 user says Thank You to ShannonN for this useful post
jmef Friendjmef
- Join date:
- September 2007
- Posts:
- 19
- Downloads:
- 0
- Uploads:
- 2
- Thanks:
- 7
- Thanked:
- 1 times in 1 posts
April 1, 2009 at 9:12 pm #299548Well 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.
Arvind Chauhan ModeratorArvind Chauhan
- Join date:
- September 2014
- Posts:
- 3835
- Downloads:
- 74
- Uploads:
- 92
- Thanks:
- 1240
- Thanked:
- 1334 times in 848 posts
April 2, 2009 at 6:21 am #299585Glad 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
-
AuthorPosts
This topic contains 6 replies, has 3 voices, and was last updated by Arvind Chauhan 15 years, 9 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum