File Name: vision-viewer
File Submitter: Cris D.
File Submitted: 28 Nov 2008
File Updated: 28 Nov 2008
File Category: Images & Galleries
Module: vision-viewer
Original by http://iamkoa.net/vision/
Adapted for Etomite by Cris D
Date: 28-11-08
Use: allows you to display images from a folder that you can just upload en-mass
No tables, small code, easy to use...
Example of use:
[!vision-viewer
?imgDir=path/to/my/images
&imgSub=true
&width=600px
&height=100%
!]
This is as easy as it gets for a simple image displayer. See in action here.
Would also work well with the front end File Manager snippet to display user-uploaded images.
Installation Instructions:
1)Download and unzip the package.
2) Upload (FTP) the vision-viewer folder to the root of your etomite installation (the same folder as your index.php).
3) Copy and paste the contents of the snippet file to your snippet library.
4) Create a page with your favourite template and place the snippet in the page using the same snippet name as you saved it earlier eg: [!vision-viewer!].
5) Style the slideshow by ading the CSS script calls to the css files in the header of your template by copying and pasting the contents of the file: template_css_call.txt into the header of the etomite template you intend to use for this viewer.
6) Upload any images you want to dislay to any folder in your site.
Add the snippet call to the page where you want the slideshow gallery to show and point to the path where the images are eg: [!vision-viewer?imgDir=assets/images/folder1!]
See the README for more tweaks.
Click here to download this file
[Snippet] vision-viewer
Started by Cris D., Nov 28 2008 01:42 PM
5 replies to this topic
#1
Posted 28 November 2008 - 01:42 PM
#2
Posted 14 March 2010 - 07:02 PM
I'm trying this snippet to replace EtoGal because the most galleries I have are arround 150 images total.
I'm now trying the snippet on some galleries and it looks to me there is no kind of sorting while the filenames contains series (P1, P2, SANY1, SANY2, etc.)
Is there a way to sort on filename?
I'm now trying the snippet on some galleries and it looks to me there is no kind of sorting while the filenames contains series (P1, P2, SANY1, SANY2, etc.)
Is there a way to sort on filename?
#3
Posted 15 March 2010 - 06:17 AM
You can re-name the files so that they are ordered appropriately or you can add array sorting code to the IsDir function. You can add this near the end:
closedir($dir);
<add array sorting code here>
return $tmp;
Remember, this is a basic snippet that I wrote due to popular demand (upload multiple files and display) - I never actualy use it myself. It does not have anywhere near the functionality of etogal, but you can write it
closedir($dir);
<add array sorting code here>
return $tmp;
Remember, this is a basic snippet that I wrote due to popular demand (upload multiple files and display) - I never actualy use it myself. It does not have anywhere near the functionality of etogal, but you can write it
#4
Posted 15 March 2010 - 07:20 PM
Hi Chris,
I'm not a PHP expert, so I won't rewrite it to EtoGal
But each year the galleries I'm using are getting bigger and since EtoGal doesn't support mass-upload I have to use this alternative.
I have added the following code and it works fine now
I'm not a PHP expert, so I won't rewrite it to EtoGal
But each year the galleries I'm using are getting bigger and since EtoGal doesn't support mass-upload I have to use this alternative.
I have added the following code and it works fine now
}
sort($tmp);
closedir($dir);
return $tmp;
}
#5
Posted 15 March 2010 - 10:34 PM
Etogal is not suited to large galleries anyway, and needs a redesign of the admin functions to get round a form limitation.
see Etogal limitations
see Etogal limitations
#6
Posted 22 April 2010 - 07:41 AM
i can see anythink !
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











