Support Forum

  • Page:
  • 1
  • 2

Jquery & Mootools

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

Hi Suzanne,

The code you added isn't really going to do anything as far as I can see.

Can you remove it and update us so i can see whats going on?

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

Exclamation mark now removed.

Screenshot attached.
Attachments:
  • Suzanne's Avatar
  • Suzanne
  • 12 Month basic
  • 92 posts
  • Karma: 2
Last Edit: 8 years 5 months ago by Suzanne. Reason: screenshot missing
The administrator has disabled public write access.
you are loading mootools and jquery without noconflict enabled. You need to tell jblibrary to use no conflict or anything using jquery will not work.
  • Robert Went's Avatar
  • Robert Went
  • Moderator
  • 2210 posts
  • 196 Thanks
  • Karma: 90
The administrator has disabled public write access.
Hi Rob, thanks for that...

The jquery paths (without the extra character) are in the template head.


The result is the ECWID missing body tags message.

http://79.170.44.128/test-13.co.uk/
  • Suzanne's Avatar
  • Suzanne
  • 12 Month basic
  • 92 posts
  • Karma: 2
Last Edit: 8 years 5 months ago by Suzanne. Reason: giving up on adding screen shot..
The administrator has disabled public write access.
Hi Suzanne,

I just found your ticket so am taking a look now.
  • Robert Went's Avatar
  • Robert Went
  • Moderator
  • 2210 posts
  • 196 Thanks
  • Karma: 90
The administrator has disabled public write access.
THANK-YOU Rob
  • Suzanne's Avatar
  • Suzanne
  • 12 Month basic
  • 92 posts
  • Karma: 2
The administrator has disabled public write access.
Hi Suzanne,

I'm going to ask a developer to look at this.

It seems that disabling jblibrary makes the shop work, but enabling it and telling it not to load jquery (telling it not to do anything) stops the shop from loading.

The only difference I can see in the page is that, when the shop works, jquery is loaded after the store javascript. When it's not working, jquery is loaded before.
  • Robert Went's Avatar
  • Robert Went
  • Moderator
  • 2210 posts
  • 196 Thanks
  • Karma: 90
The administrator has disabled public write access.
Thanks Rob

I would very much appreciate it if when you do that you mention that it is getting the ECWID TABS working at the same time as the Zen Tools lightbox that I am seeking.

It is the ECWID tabs that require the additional jquery paths.

Suzanne
  • Suzanne's Avatar
  • Suzanne
  • 12 Month basic
  • 92 posts
  • Karma: 2
The administrator has disabled public write access.
For the tabs I think you will have to change the js in your module to use noconflict.
From
$( "#tabs" ).tabs();
To:
jQuery( "#tabs" ).tabs();
  • Robert Went's Avatar
  • Robert Went
  • Moderator
  • 2210 posts
  • 196 Thanks
  • Karma: 90
The administrator has disabled public write access.
Thanks Rob


I left the ! out of the head tag and the jb_library settings as you described in your post #92271.

I have just changed the ECWID tabs script as you suggested in post #92279

I still get the missing body tags error .:S I cannot see any difference in the results in doing this (Tried with ! without it, without jquery paths, the results are pretty much as before as far as I can tell.

(Please note the tabs worked OK at the same time as Zen Tools with my original code (Or with your suggested modification) as long as I add the extra character in the head tag, but then this extra character would be outputted as html on my page...). Without the extra character I just get the missing body tags error.

Suzanne
  • Suzanne's Avatar
  • Suzanne
  • 12 Month basic
  • 92 posts
  • Karma: 2
The administrator has disabled public write access.
Looking at your ticket now.


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

I have just updated your Zen Tools module to not require JB Library. After version 1.9.7 it will be an standalone extension. There are many other fix on that version too, so could you test the alpha version I just uploaded to your site?

Cheers
  • Anderson Grüdtner Martins's Avatar
  • Anderson Grüdtner Martins
  • LIfetime Developer - Big Bamboo
  • 94 posts
  • 10 Thanks
  • Karma: 8
The administrator has disabled public write access.
Hi Anderson, thanks for trying!

Sadly I cannot see the Zen Tools lightbox on the images, just a black background. Is the new install set to show in a lighbox? I don't want to alter any settings whilst you are working on it.

Also would you please email me the new version of Zen Tools when it is working as this is just the test site - I need to install it on the proper site.

Tested after first and second emails from you.

Suzanne
  • Suzanne's Avatar
  • Suzanne
  • 12 Month basic
  • 92 posts
  • Karma: 2
The administrator has disabled public write access.
Hi,

You now have 2 copies of jquery loading on the zentools page because 1 is hard coded into your template.

I have removed
<s-cript  type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></s-cript>

<s-cript src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/jquery-ui.min.js"></s-cript>

from your templates index.php file and moved it into your custom code module so it only loads on shop pages.

This means that if you want to show the store and zentools on the same page you will get the same problems again (and possibly any other extensions which require jquery).

Regards,

Rob
  • Robert Went's Avatar
  • Robert Went
  • Moderator
  • 2210 posts
  • 196 Thanks
  • Karma: 90
The administrator has disabled public write access.
It works!!!

Thanks Rob, and everyone else.

It is great to see it properly in action.

I will try it on the proper site (She said happily...)

How to I get a copy of this working version to try install on my proper site? I just checked and it is not available as download yet.

THANK-YOU ALL :)
  • Suzanne's Avatar
  • Suzanne
  • 12 Month basic
  • 92 posts
  • Karma: 2
The administrator has disabled public write access.
I will ask Anderson to send you one (or you can just copy the files from modules/mod_zentools to the other site)

If you are using a JB template you should probably remove the line which loads jquery from the custom module as it will be already loaded by the template and you will run in to the same problems again (zentools will know this and not load another copy). Keep the ui one for the tabs to work.
  • Robert Went's Avatar
  • Robert Went
  • Moderator
  • 2210 posts
  • 196 Thanks
  • Karma: 90
The administrator has disabled public write access.
Hi Rob

Thanks for that - it turned out Anderson had already attached a copy on the ticket and I had not noticed...

I am rather excited about having a go with this one!

I will take on board what you said about JQuery.

Suzanne
  • Suzanne's Avatar
  • Suzanne
  • 12 Month basic
  • 92 posts
  • Karma: 2
The administrator has disabled public write access.
Great, good luck with the site!
  • Robert Went's Avatar
  • Robert Went
  • Moderator
  • 2210 posts
  • 196 Thanks
  • Karma: 90
The administrator has disabled public write access.
The new alpha version of Zen Tools (JB_mod_zentools_J2.5_J3.0_1.9.7-alpha11) which does not use JB_lIbrary worked correctly at the same time as my ECWID shop tabs on a test version of my proper site, It even worked with an ECWID product (Does not use tabs) on the page.

On that site it was necessary to ensure the module for the main ECWID shop which had tabs was not set to appear on the same page as Zen Tools else the lightbox would not work on any pages.

It seemed that both jquery paths were needed in the shop module just before the shop code.

I use the No number Modules Anywhere/framework on that site so the new Zen Tools is playing happily with that too.

Thanks for such an excellent tool.
  • Suzanne's Avatar
  • Suzanne
  • 12 Month basic
  • 92 posts
  • Karma: 2
The administrator has disabled public write access.
Awesome thanks for letting us know and so glad we had a good outcome :)
  • 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