Simple Image gallery Library |
[eluser]Jelmer[/eluser]
An improved version, posted as code since the forums didn't accept a php file, gave a MIME (?!) warning about txt files and said it contained wrong content for a word document when I tried that... Look at the first post for instructions... UPDATE 10 oktober 2008: fixed bug that ignored uppercase file-extentions. Code: <?php if (!defined('BASEPATH')) exit('No direct script access allowed');
[eluser]Tony Nash[/eluser]
@Jelmer very cool.. Thanks, Do you have any idea of having image categories and image captions? A category can be a folder and gallery page will show a folder icon for categories. for your ref. http://www.sitepoint.com/print/php-galle...m-minutes/ http://www.php-mysql-tutorial.com/image-gallery/
[eluser]Jelmer[/eluser]
@tony Nash I've only just started work on the front-end, I wrote (and will use) it mostly for my admin to manage images. I still haven't decided whether I want it as easy as possible (because most of my users are inexperienced internet users) or with more options. The easy option: use only the filesystem, directory based with the foldername as the album name and the filename as the image caption (also simply taking the first picture in each dir as the album icon). More advanced option: as you suggested I think, on a quick glance over the urls you provided. Using a database to append the filesystem, but still with the filesystem as the basis. I kinda like the filesystem approach. Using the path and filename in an images table it would be easy to add whatever information you want to every image. And an albums table for every path to add information to the albums. I'm still undecided, but I'll probably decide for the first option. Ease of setup and only options you really need is the best for my system as my users really don't know much about the internet in general. Were I writing it for myself I'd probably use the second option to add categories and labels. Whatever I decide I'll add the important code to this topic.
[eluser]Jelmer[/eluser]
Not sure if anybody is using this but there was a bug that ignored images with uppercase or mixedcase file-extentions. It's fixed in the post with the library.
[eluser]ghprod[/eluser]
Thanks a lot for share your code Jelmer maybe you can create more complex with feature upload ang integrate with database regards
[eluser]Jelmer[/eluser]
@ghprod I ended up not extending the library a lot beyond what it currently offers. I use the filenames for the image title and the folders in which they are placed as the albums. Maybe I'll come back to this sometime in the future but don't wait for me, I have no intention of writing a full image gallery implementation anytime soon.
[eluser]emcgfx[/eluser]
Can some one show or create gallery based on EasyGallery for CodeIgniter 2.0 please ? Thank you. |
Welcome Guest, Not a member yet? Register Sign In |