[Solved] Delay/duration hack, downloadable version

Phoca Gallery plugins - plugins for Phoca Gallery extension
mentebinaria
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 10 Jan 2012, 15:09
Contact:

[Solved] Delay/duration hack, downloadable version

Post 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.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48676
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

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

Post by Jan »

Hi, thank you for this improvement.

Jan
If you find Phoca extensions useful, please support the project
mentebinaria
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 10 Jan 2012, 15:09
Contact:

[Solved] Bug fix / Perfomance improvement

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48676
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

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

Post by Jan »

Ok, thanks.

Jan
If you find Phoca extensions useful, please support the project
Post Reply