New jQuery slideshow plugin for Tidypics not working
Hi, I'm trying to create my first plugin to create a nice jQuery slideshow in Tidypics, but I have problems to get it work.
I'm on Elgg 1.8.16 with Tidypics 1.8.4 and the slideshow is based on PhotoSwipe (http://photoswipe.com/)
The plugin has following structure:
start.php
manifest
languages (folder)
en.php
vendors (folder)
photoswipe-master (folder)
dist (folder)
my-gallery.js
photoswipe.css
photoswipe.js
photoswipe-ui-default.js
style.css
default-skin (folder)
default-skin.css
default-skin.png
default-skin.svg
preloader.gif
views (folder)
default (folder)
object (folder)
image.php
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
How and where are you initializing photoswipe.js? Usually jQuery plugins require you to do something like
in start.php I have:
then I override Tidypics with image.php where I load also all js and css
following instructions at http://photoswipe.com/documentation/getting-started.html
initialization should be made by initPhotoSwipeFromDOM('.my-gallery'); in my-gallery.js
Fixing my post, saw you used elgg_load_js and css. Does firebug or console output anything?
I'm loading all CSS and JS in image.php from line 83 to 88.
I know this is and advanced script, but after long search PhotoSwipe seems to be the slideshow script which can satisfy my needs ...
No particular output from firebug ...
I'm clearly not experienced in Elgg and JavaScript and I'm not sure I did well parsing DOM ...
If an Elgg specialist can fix my pluging I can hire his service ...
Yeah wish I can help but I stopped using Tidypics back in 1.7
I'm open to any better photogallery plugin for Elgg 1.8 where you could add PhotoSwipe slideshow ...
Is it just a typo here in your posting or does the init call in start.php is really
If you have "potoswipe_init" in this call the init function will not get executed.
Apart from that I can't say much right now. It difficult to say what might be wrong by just looking at the code here.
General remark: if I would have had some free time I would already have replaced the slideshow currently implemented in Tidypics...
- Previous
- 1
- 2
- Next
You must log in to post replies.