I need an option to not preload all the jcarousel thumbnails as they will grow overtime.
Had a look on the original's jcarousel website and found the dynamic ajax example with the option to remove items which are outside the visible range from the DOM.
http://sorgalla.com/projects/jcarousel/examples/dynamic_ajax_php.htmlTo my joy the ZP extension came with jcarousel_ajax.php
So I changed the scripts to use this loading technique as show on sorgalla.com
But than when testing I notice the function
'$items = jcarousel_getItems($limit, $offset);'
does not work because the included file is not found...
`include_once 'jcarousel_functions.php';`
I can't find this file anywhere, not in the latest download, not online.
btw Just another question, if I have modified this extension I should move it over to the 'plugin' folder instead of the 'zp-core/zp-extensions' folder right?
Comments
The plugin itself uses already the script from the included example "dynamic_ajax.html" in the plugin main file. Which is of course not exactly what you need.
To the other question: Yes, actually you should place custom versions of a plugin or custom plugins within the /plugins folder. But some plugins may need adjustments as the path to load their additional js files is different then. jCarousel uses `WEBPATH.'/'.ZENFOLDER.'/'.PLUGIN_FOLDER;` to get these but in /plugins that would need to be `WEBPATH.'/'.USER_PLUGIN_FOLDER` instead.
This include is probably needed to create the album object and get the `$limit, $offset` images.
No problem, I will write something myself to not preload all the images from the album.
Thanks for the definition USER_PLUGIN_FOLDER tip!
Your change might make sense, so maybe after 1.4.2 is out it could be incorporated or made optional.
But the mycarousel_itemList JSON is still writen in the HTML output. This will definitely affect the load time of the page using an album with lots of images..
I think it's just a matter of stripping the JSON in the DOM.
Than an Ajax call when using the arrows or pagination.
btw Now that I tried the Trac system.. I have some small requests, can I open tickets or do I post them here first?
For example I have some functions where I can't use the output in Javascript because of single/double quotation like document.write('')