Support Forum

Please note that this forum is only available to you in read only mode. In order to contribute to this conversation you will need to renew your subscription.

FitVids

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

What is the non-hacking way of using:
github.com/davatron5000/FitVids.js

with the Zen Grid Framework V2?
  • psuc's Avatar
  • psuc
  • 3 Month Basic
  • 26 posts
  • Karma: 0
The administrator has disabled public write access.
Hey there,

You can add both custom .js files and custom .css to the user folder of your template. The framework will load them from there.
  • Seth's Avatar
  • Seth
  • Moderator
  • 8358 posts
  • 225 Thanks
  • Karma: 202
The administrator has disabled public write access.
That worked to load the javascript library.

However, I'd need to introduce some code into the document ready function of jquery. Is that possible? I've tried putting:
jQuery(document).ready(function(){
   jQuery("div.jbmoduleBody").fitVids();
});
and
jQuery("div.jbmoduleBody").fitVids();
in the "Extra scripts" configuration tab of the template and in both cases it only works if the "Load scripts at the bottom of the page?" setting is enabled.

thanks
  • psuc's Avatar
  • psuc
  • 3 Month Basic
  • 26 posts
  • Karma: 0
Last Edit: 11 years 11 months ago by psuc.
The administrator has disabled public write access.
Hi there,

You can add that without the document ready in the js/template.js file. The Extra Scripts option should work though. You may need to add the <script tags around that code as well.

Let us know if that helps.

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. I guess that's the most elegant way of making it work.

Saving fitVids.js into the user folder and writing
jQuery("div.jbmoduleBody").fitVids();
inside the document ready function in js/template.js, it works even if I disable the "Load scripts at the bottom of the page?" option.

BUT, I've just seen a problem with the sticky menu bar and the embedded youtube. Just look at prototip.psuc.org
If you scroll down with Firefox, Safari, Chrome or IE (latest versions) in Windows, the embedded video overlaps the sticky menu bar. Firefox, Safari and Chrome on Mac work as expected, with the sticky menu bar overlapping everything (including the video).

Thanks
  • psuc's Avatar
  • psuc
  • 3 Month Basic
  • 26 posts
  • Karma: 0
Last Edit: 11 years 11 months ago by psuc.
The administrator has disabled public write access.
Cool thanks.

I can't quite see that here but if you add this to the css/theme.css file does that fix the issue?

#right .moduletable {
z-index: 1;position: relative;
}

Thanks Anthony
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.
No. It doesn't solve it.
Capture.PNG
  • psuc's Avatar
  • psuc
  • 3 Month Basic
  • 26 posts
  • Karma: 0
The administrator has disabled public write access.
Ok thanks.

Can you create a ticket with ftp details so we can 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.
It got solved by adding
&wmode=transparent
to the URL inside YouTube's iframe and removing
#right .moduletable {
z-index: 1;position: relative;
}
from theme.css (i.e.: getting back to the original theme.css)
Thanks
  • psuc's Avatar
  • psuc
  • 3 Month Basic
  • 26 posts
  • Karma: 0
Last Edit: 11 years 11 months ago by psuc.
The administrator has disabled public write access.
B) Thanks for letting us know.
  • Seth's Avatar
  • Seth
  • Moderator
  • 8358 posts
  • 225 Thanks
  • Karma: 202
The administrator has disabled public write access.

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

Happy Campers