Jump to content


Photo

Dynamic folder to slideshow


  • Please log in to reply
5 replies to this topic

#1 fishnchips

fishnchips

    Etomite Forum Fan

  • Member
  • Pip
  • 65 posts

Posted 27 November 2008 - 08:53 AM

For those people who fancy easily uploading/integrating images, maybe this is the way: http://iamkoa.net/vision/

#2 Cris D.

Cris D.

    Loves Etomite Forums!

  • Developers
  • PipPipPipPip
  • 1,104 posts

Posted 27 November 2008 - 10:01 AM

Very promosing... Very small and relatively easy to integrate. Great find fishnchips. This is a but clunky and needs refinement, but it's possible... see here.

Edited by Cris D., 27 November 2008 - 11:09 AM.


#3 fishnchips

fishnchips

    Etomite Forum Fan

  • Member
  • Pip
  • 65 posts

Posted 27 November 2008 - 11:48 AM

That's not using preloading is it?

#4 Cris D.

Cris D.

    Loves Etomite Forums!

  • Developers
  • PipPipPipPip
  • 1,104 posts

Posted 27 November 2008 - 12:19 PM

Yeah it is, they're just really big sample images that came with it- 6 images 1.2Meg.

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 :) (cranky pants on tonight- it's almost past my bed time).

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.Attached File  vision_viewer.zip   1.06MB   8 downloads

#5 fishnchips

fishnchips

    Etomite Forum Fan

  • Member
  • Pip
  • 65 posts

Posted 27 November 2008 - 06:26 PM

Number of downloads: 0

Sure hope the servers can handle the stress :)

#6 Cris D.

Cris D.

    Loves Etomite Forums!

  • Developers
  • PipPipPipPip
  • 1,104 posts

Posted 28 November 2008 - 02:53 PM

Cleaned up, and made into a single snippet, no embedded php and posted to the snippet library.

Sure hope the servers can handle the stress smile.gif

By doing this: I learnt how embedded php in chunks works
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