cooliris views - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22) +--- Thread: cooliris views (/showthread.php?tid=40919) |
cooliris views - El Forum - 04-22-2011 [eluser]vrencianz[/eluser] I did find the forums for a cooliris related posts and didn't find one. If you want http://www.cooliris.com/ integrated in your web sites you can do something like the following (see a working example at: http://caselemnhr.ro/pages/gallery): 1) create a view named gallery.php (for example) containing Code: {article} Notice <b> Code: flashvars="feed=<?=base_url()?>mrss/{gallery}" A gallery view will get the media rss items from that location (http://site/mrss/pictures). So, you have to handle the <i>mrss</i> fragment from the url part of the flashvars. 2) create a mrss.php file with the following content Code: <?php if(!defined('BASEPATH')) This supposes that you have 15 images (1.jpg, 2.jpg, ...) located at images/gallery/g1/ and their thumbnails at images/gallery/g1/tmb/. You have to have 12 images for g2. 3) modify your .htaccess as follows Code: <IfModule mod_rewrite.c> For our example only the <b>crossdomain\.xml</b> and <b>images</b> are important. I hope this is helpful for those who need simple image galleries. Cheers! |