Support Forum

  • Page:
  • 1

mootools twice by default

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Hello good people
I want to know if that happens to you...
when choosing the parameter of the plugin
"strip mootools -> No"
(just as is the default )
then mootools is loaded twice (once by the plugin and one in joomla or template itself)

I look lines 71 to 78 of jblibrary.php
if ( ! $stripMootools) {
					$document->addScript('media/system/js/mootools-core.js');
					$document->addScript('media/system/js/core.js');
				}
				if ( ! $stripMootoolsMore) {
					$document->addScript('media/system/js/mootools-more.js');
				}

Well, seeing the negation...
I commented these lines and joomla just load it, once.
(in a template no != JB)
=)
guessing... Is because JB templates not loading mootools, is not ?

regards
excuse my bad english
  • kinski's Avatar
  • kinski
  • 3 Month Basic
  • 11 posts
  • Karma: 0
The administrator has disabled public write access.
well... I guess I asked in the wrong forum
(I suspect: none in the forum use the JB plugin without using templates or extensions of JB)
and test what I say (try the plugin on any template not JB) is too much ask

or maybe my English is terrible and nobody understood me =)

anyway, Regards!
and thanks for reading
I ask to administrator (Antonio or Seth) to delete this topic, I can't do.
  • kinski's Avatar
  • kinski
  • 3 Month Basic
  • 11 posts
  • Karma: 0
The administrator has disabled public write access.
Hi there,

Sorry we've missed this - thanks for pointing this out

I think we are due to release a new version of JB library shortly to fix this issue but I'll point out this post to the developer

Thanks again for taking the time to post this

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Hi there,

So sorry I missed this when it first came through.

I've just released 1.2.6 which fixes this issue.

Thanks and sorry for the inconvenience.

Anthony
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.
This still seems to be loading it twice with the 1.2.6 fix. I have cleared cache, uninstalled/reinstalled, and toggled parameters. Confirmed this with a fresh install using the Beez_20 template.

Not a big deal as I ended up just commenting this section (Lines 69-78) out like kinski mentioned. Just wanted to give a heads up.

Thanks
  • cobb's Avatar
  • cobb
  • 3 Month Basic
  • 1 posts
  • Karma: 0
The administrator has disabled public write access.
Hmm thanks thats odd though.

Would you mind creating a ticket so we could take a look?

Thanks
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.
hey! suddenly filled the topic with friends
was fortunate that I could not delete =)

Thanks Paolo and thanks Antonio
very kind are you

but.. I must say what said cobb

remove mootools -->No
replace moo --> No
load mootools twice

remove mootools--> yes
works

remove mootools -->No
replace mootools --> yes
load twice (system and google)

J2.5.6 and any default template.

i wonder...(from the depths of my ignorance) something like that, in jblibrary.php...
if ( ! $stripMootools) { 
do nothing;  /* sing a song if you want code, but not load moo twice, joomla does for you */
}
why not? =)

for if relevant, i'm using contruct5 in local with wamp and php 5.3
and i use jb library to load script at the Bottom of page, in the way note that moo loaded twice.

Regards
  • kinski's Avatar
  • kinski
  • 3 Month Basic
  • 11 posts
  • Karma: 0
Last Edit: 9 years 1 month ago by kinski.
The administrator has disabled public write access.
Hey thanks for the follow up.

I cant replicate this right now though locally.

Can you create a ticket with ftp details and Ill take a look?

Anthony
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.
ok, just that I'm working locally on my pc with Wampserver
when upload something I can send a ticket with ftp details
  • kinski's Avatar
  • kinski
  • 3 Month Basic
  • 11 posts
  • Karma: 0
The administrator has disabled public write access.
No probs - let me know :)
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.
Well, finally (I lost some time) I came with the intention of passing the FTP details

but, at the last minute, i saw and download the latest version of the plugin (1.2.7)
In this latest version the issue is solved for ever

1.2.6:
$ document-> addscript ('media / system / js / mootools-core.js');

1.2.7:
$ document-> addscript (JURI :: root (true). '/ media / system / js / mootools-core.js');

works perfect. one mootools
case solved!
sorry Antonio, I would have liked help.
if i can, I enjoy helping. if I can't, I hate to be a nuisance.

Regards
Malvinas are Argentine
Free Assange
  • kinski's Avatar
  • kinski
  • 3 Month Basic
  • 11 posts
  • Karma: 0
The administrator has disabled public write access.
Awesome thanks for posting back

Anthony
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Happy Campers