Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Slideshow CK + Virtuemart Plugin Acting Strange

Slideshow CK + Virtuemart Plugin Acting Strange 18 Aug 2015 17:33 #29188

Hi,

First, let me say, I think there is just too much going on with 3 independent slideshows on the home page... but the client gets what the client wants. They're not all showing at the same time, but I'm sure they're all loading at the same time.

Another issue could be that the area the slideshow loads in is much smaller than when it actually displays - so I'm wondering if the images are loading dynamically to fit the size of the element.

Here's the issues: Sometimes the first image or the first and second load at about half the size they should - and are left justified. Sometimes images don't load. And occasionally it works perfectly.

My question is... would it help if I used some jQuery to not load the slideshow until the area that contains it is full size (after clicking it)? Or would that be pointless?

You'll probably have to see the page to see what I'm talking about: sykik.com
(each of the 3 companies have it's own slideshow that displays once you click the corresponding box)

Thanks!

Please Log in or Create an account to join the conversation.

Slideshow CK + Virtuemart Plugin Acting Strange 19 Aug 2015 10:35 #29192

  • ced1870
  • ced1870's Avatar
  • Away
  • Administrateur
  • Administrateur
  • Posts: 21348
  • Karma: 427
  • Thank you received: 2699
Hi

First, let me say, I think there is just too much going on with 3 independent slideshows on the home page... but the client gets what the client wants. They're not all showing at the same time, but I'm sure they're all loading at the same time.

Ok I see ;)

what I see is that you are not using the normal way to show your page and you have added some custom code in your page

jQuery('.slideshowck').hide().delay(2000).fadeIn(200);

this could be the cause. Try to remove these lines and test again
CEd

Please Log in or Create an account to join the conversation.

Joomlack Webmaster and Developer

Slideshow CK + Virtuemart Plugin Acting Strange 19 Aug 2015 14:54 #29202

That was my attempt at making it wait to load the slideshow until that element was enlarged (after you click). But it only hides it. My theory is that the slideshow is loading when the element is small (before you click). I thought if it waits to load until you click that element (and it enlarges) that it would load the images at the correct sizes.

Do you know if it would be easy to modify that jQuery to load the slideshow 'on click' as opposed to just hiding the element until the 'on click'?

I just removed it so you can see that it doesn't really change anything.

Please Log in or Create an account to join the conversation.

Slideshow CK + Virtuemart Plugin Acting Strange 19 Aug 2015 21:07 #29206

I just found a way to fix the issue (99% fixed)... I put an 'on click' and 'delay' on the jquery that loads the slideshow in mod_slideshowck.php...

old:
$js = "<script type=\"text/javascript\"> <!--
jQuery(function(){
jQuery('#camera_wrap_" . $module->id . "').camera({

new:
$js = "<script type=\"text/javascript\"> <!--
jQuery('.homeBox').delay(1000).on('click', function(){
jQuery('#camera_wrap_" . $module->id . "').camera({


I have another concern now. I tried modifying the file and creating it in my template at /template/html/mod_slideshowck/mod_slideshowck.php ... but it's not using it as an override. Thought I had accomplished this before with other modules, but maybe only for module templates (in tmpl directories). Is there a way I can modify this and keep it safe during future updates?

Please Log in or Create an account to join the conversation.

Slideshow CK + Virtuemart Plugin Acting Strange 20 Aug 2015 06:42 #29207

  • ced1870
  • ced1870's Avatar
  • Away
  • Administrateur
  • Administrateur
  • Posts: 21348
  • Karma: 427
  • Thank you received: 2699
you can not override this file, you can only do it with the file in the "tmpl" folder...
so for this projects I'm afraid that you have to hack the module

Please Log in or Create an account to join the conversation.

Joomlack Webmaster and Developer
  • Page:
  • 1
Time to create page: 0.209 seconds

Fast and powerful creation, customizable and responsive.

Read More

Qui est en ligne

We have 444 guests and 3 members online