Page 1 of 1

[Solved] Delay/duration hack, downloadable version

Posted: 10 Jan 2012, 15:34
by mentebinaria
Today, i had to hack the Phoca Gallery Slideshow plugin, to add an actual delay before the first slide transition.
Since i've been using Phoca extensions for free for a long time, thought i'd give something back, so there's a link to my version below.

Before installing, please read this!
Previously, "delay" controlled the duration of the transition; with my hack, "delay" controls the delay before the first transition, and "duration" now controls the duration of each transition. This means you should replace "delay" with "duration" to keep everything working the same way, before you install my hacked version.

Download here: http://mentebinaria.com/download.php?f= ... acked).zip
Differences between my version and the original:
- "delay" renamed to "duration";
- new "delay" parameter added (zero, by default).

I didn't add any hidden links or change anything else, and i won't claim any copyright for this (though credit would be nice... :wink:), so feel free to use it anyway you want (without, of course, infringing the original license).
Also, i will only keep the file there for a few weeks/months, so don't be surprised if the link stops working after a while.

Re: [Solved] Delay/duration hack, downloadable version

Posted: 11 Jan 2012, 21:38
by Jan
Hi, thank you for this improvement.

Jan

[Solved] Bug fix / Perfomance improvement

Posted: 13 Jan 2012, 16:47
by mentebinaria
I had been noticing a huge performance decrease on the website, and i traced it back to the Phoca Slideshow Plugin.
So, i decided to hack a little more, and i was able to solve that and improve a few more things (i think):
  • Improved performance (a lot).
  • Corrected plugin description on manager (added "Content - ").
  • Fixed issue where sometimes a slideshow wouldn't load. I'm not sure what was the source of the problem, but it seems to be gone.
  • Disabled direct loading of jQuery library. It is preferable to use a plugin like "jQuery++ Integrator" to do that.
  • Moved script declaration from header to body. When Joomla's cache is activated, fadeSlideshow throws an error saying it can't find the proper elements - placing the script inline solves this.
I have three slideshows running. Before, the page took about 10 seconds to load, sometimes more; now it loads in less than 2 seconds! (Yay!)

I replaced my previous hacked package with this one, so the download link is the same:
http://mentebinaria.com/download.php?f= ... acked).zip

Re: [Solved] Delay/duration hack, downloadable version

Posted: 16 Jan 2012, 18:37
by Jan
Ok, thanks.

Jan