![]() |
Photo Gallery - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Photo Gallery (/showthread.php?tid=12199) |
Photo Gallery - El Forum - 10-09-2008 [eluser]RogerM[/eluser] Hi Everyone, I am new to CodeIgniter and love it already... I have my current php programs written by hand or by using an open source script. I would like to create a proofing gallery for my clients website. Any suggestions on how to render a gallery? I think I am going to store the information in a database, the title, file path etc... But how would I format a gallery in the view? Thanks in advance.... Roger Photo Gallery - El Forum - 10-28-2008 [eluser]mscahill[/eluser] I'm interested in this, too. Maybe this will bump the post... Photo Gallery - El Forum - 10-28-2008 [eluser]alectrash[/eluser] I did this a while ago, not sure if it helps? In controller I have Code: function page() And in view I have Code: <div id="gallery"> It makes an nice 4 by 3 grid of thumbnails that link to another page where u can view image and a comment etc Photo Gallery - El Forum - 10-28-2008 [eluser]mscahill[/eluser] How do you display the albums? Photo Gallery - El Forum - 10-28-2008 [eluser]alectrash[/eluser] Sorry yeah your rite that code is just for a list of images. Change the code so instead of a thumbnail for each image, that thumbnail is for the album, then onclicking on that thumbnail it goes through to another page with same code but this time outputs thumbnails of images within that album. Photo Gallery - El Forum - 10-28-2008 [eluser]mscahill[/eluser] How are you doing the thumbnails? I'd imagine that would be the hardest part of the process. I want to have this set up similar to zengallery where you just dump the images in a folder via FTP, and the application does the rest... Photo Gallery - El Forum - 10-28-2008 [eluser]Jelmer[/eluser] Take a look at the simple gallery class I wrote a while ago: http://ellislab.com/forums/viewthread/86266/ |