Any possibility of integrating fancybox (http://fancybox.net) in Wipha?
It's all html5, works on all browsers and has quite a cool look to it!
That would definitely make wipha look super cool!
Cheers
Réponse n° 1
--------
le 10/01/2013 @ 05:37
par Globs
Administrateur
Hi,
I probably won't do this myself before a very long time, but if somebody provides a patch with no loss of functionality, I'll be happy to integrate it.
Réponse n° 2
--------
le 01/02/2013 @ 18:32
par Guigui
visiteur
OK, I've done it, and it works well...
Here are the changes to make...- install fancybox in 3rdparty folder (https://github.com/fancyapps/fancyBox/zipball/v2.1.4)- update prototype library to 1.7.1 also in 3rd party folder (the one currently used was a bit buggy and posed problems) : http://prototypejs.org/download
None we need to modify some templates in the templates folder.
header.tpl, add the following lines just before the
Also in header you need to make sure that the prototype script call targets the new prototype library
footer.tpl, add the following lines before the
Code : xhtml
</body>
Code : xhtml
{literal} <script type="text/javascript"> ( function($) { // we can now rely on $ within the safety of our "bodyguard" function $(document).ready( function() { $('.fancybox').fancybox({ type:'image' } ); }); } ) ( jQuery ); </script> {/literal}
finally modify photopage.tpl to activate fancybox on pictures. Replace that line
Be careful, there also a difference in the link, just copy paste…
Hope this helps someone…
Cheers
Réponse n° 3
--------
le 01/02/2013 @ 21:19
par Guigui
visiteur
My bad, please don't do this....
It breaks the login page. I was logged in during all my testing and didn't realize...
For some reasons, it triggers the javascript needed warning...
Can't figure out why...
Cheers
Réponse n° 4
--------
le 01/02/2013 @ 21:29
par Guigui
visiteur
Sorry, me again...
Actually I found a way... When including fancybox in the head, do it before the prototype.js include, not after...