Dynamic folder to slideshow
#1
Posted 27 November 2008 - 08:53 AM
#3
Posted 27 November 2008 - 11:48 AM
#4
Posted 27 November 2008 - 12:19 PM
Here's the loosely integrated pack (gave me something to do tonight that's not the usual work. No I won't be supporting this module or taking any requests before anyone asks
From the README file I added:
This adaptation is a very lazy adaptation of this technology. It can (and probably should) be refined to work better within etomite.
Improvements to be made by whoever is willing:
Remove all PHP from the chunk and make a snippet to go with this insstallation so that embedded PHP does not need to be turned on.
Installation:
Upload all files to the root of your etomite installation (the same folder as your index.php.
Add the PHP-enabled chunk to your chunk library eg: vision-viewer.
Turn on embedded PHP in your manager configuration settings.
Create a page with your favourite template and place the chunk in the page using the same name that you saveed it earlier eg: {{vision-viewer}}.
Add the calls to the css files in the header of your template by copying and pasting the contents of the file: template_css_call into the header of the template you intend to use for this viewer.
Now you can simply upload images directly to your vision-viewer/css-gallery/img folder and they will appear on that page.
Also if you like to tweak... in the chunk, you can set other folders to find images in, whether to search sub-folders and limit results by setting image numbers...
$imgDir = "vision-viewer/css-gallery/img"; // image directory
$imgSub = false; // include sub directories when gathering images?
$imgId = "lgImage"; // id tag for images
enjoy.
vision_viewer.zip 1.06MB
8 downloads
#5
Posted 27 November 2008 - 06:26 PM
Sure hope the servers can handle the stressNumber of downloads: 0
#6
Posted 28 November 2008 - 02:53 PM
By doing this: I learnt how embedded php in chunks worksSure hope the servers can handle the stress smile.gif
I learnt an easy way to use spaghetti syntax to adapt embedded php to output buffering.
I learnt a bit more about javascript, css and the RTE.
Use it or lose it. This was an exercise in coding, nothing more, nothing less. Download it or don't download it- I don't really care, my objective was achieved before I posted it to this thread.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users










