Forum Index > FlashYourWeb OS Support > Gallery New Topic Post Reply
 Gallery To cooliris (formerly PicLens)
 |  Printable Version
GDL
 July 07 2008 15:15 pm (Read 19533 times)  
Forum Admin
Admin

Status: offline

Registered: 12/20/06
Posts: 79

Please note that Piclens recently changed their name to "cooliris", you may need to adjust your file names depending on which version of cooliris you have installed.

Gallery To cooliris

Download FlashYourWeb RSS generator for Gallery2 to cooliris.

If you are having trouble using our cooliris / PicLens to Gallery RSS generator, or have questions about this new technology, please ask your question "politely" here.

If you wish to read how this is implemented

1. Make the theme.tpl change from this comment

2. Edit line ~28 of picLensRss.php to reflect your server setup (if gallery2 is named differently or not in yoursite.com/gallery2):
line28


3. Upload picLensRss.php to your gallery2 directory.

4. Clear your template cache in the Gallery2 Admin -> Maintenance.


We are working hard to make Gallery compatible with several applications and are doing so with no charge to our users/members. We would appreciate a constructive discussions here.

-GDL


"The Dude abides."
 
Profile Email Website
Quote
Anonymous: GemNEye
 August 02 2008 22:27 pm  


The instructions were very helpful. Thank You!

The only issue is that it only works on an "album" that has pictures.

Is there away to get it to work from the parent album, and all sub-albums?

Thank You.


 
Quote
suprsidr
 August 03 2008 05:27 am  
Forum Admin
Admin

Status: offline

Registered: 12/20/06
Posts: 1221

you can use {$theme.parent.id}

PHP Formatted Code

{if $theme.pageType == 'photo'}
<link rel="alternate" type="application/rss+xml" title="PicLens RSS" href="/gallery2/picLensRss.php?g2_itemId={$theme.parent.id}" id="picLensGallery"/>
<script type="text/javascript" src="http://lite.piclens.com/current/piclens.js"></script>
{else if if $theme.pageType == 'album'}
<link rel="alternate" type="application/rss+xml" title="PicLens RSS" href="/gallery2/picLensRss.php?g2_itemId={$theme.item.id}" id="picLensGallery"/>
<script type="text/javascript" src="http://lite.piclens.com/current/piclens.js"></script>
{/if}
 


As for recursion, you can add it if you want, but this script will be obsolete when G2 2.3 releases.
Just copy my example from the other scripts.

-s


There will always be...
 
Profile Email Website
Quote
GemNEye
 August 03 2008 11:39 am  
Forum Junior
Junior

Status: offline

Registered: 07/30/08
Posts: 23

Thank You for the quick response.


 
Profile Email
Quote
Anonymous: PicLensUser
 August 16 2008 02:16 am  



I installed and ran all the setup steps. However, when click on the icon, and PicLens pops-up, it says: "This slideshow does not have any items. Please try another link."

I have run all the maintenance items. Any other thoughts?


 
Quote
suprsidr
 August 16 2008 05:44 am  
Forum Admin
Admin

Status: offline

Registered: 12/20/06
Posts: 1221

If you visit yoursite.com/gallery2/picLensRss.php?g2_itemId=id of the album to display

does it produce a feed?
or reveal errors?
sample url?

-s


There will always be...
 
Profile Email Website
Quote
GemNEye
 August 16 2008 10:56 am  
Forum Junior
Junior

Status: offline

Registered: 07/30/08
Posts: 23

It only works for me on albums that have media assets. For example, if you you try to use picLens on a page that just contains sub-albums you will get the message you mentioned. Try using it on a page that actually contains media assests.


 
Profile Email
Quote
Anonymous: PicLensUser
 August 16 2008 17:16 pm  



Here is the URL: http://www.manoadna.com/p/

When I tried the direct link (http://manoadna.com/p/picLensRss.php?g2_itemId=23), it shows the feed, but it is blank. It's as if the picture does not exist. I also tried it using a photo ID#, and it did the same thing.

Thanks for all your guys help, this is great!


 
Quote
suprsidr
 August 16 2008 17:32 pm  
Forum Admin
Admin

Status: offline

Registered: 12/20/06
Posts: 1221

This script checks to see if you have permission to view the items, and also if the album is disabled from the imageBlock module
"Prevent this album from being displayed in the Image Block " (checkbox in edit album->album)

You can fix the latter by editing function getDisabledFlag to always return false.

-s


There will always be...
 
Profile Email Website
Quote
Anonymous: PicLensUser
 August 16 2008 17:49 pm  


I checked the ImageBlock settings for the album and the "Prevent this album from being displayed in the Image Block" checkbox is unchecked.


 
Quote
suprsidr
 August 16 2008 18:59 pm  
Forum Admin
Admin

Status: offline

Registered: 12/20/06
Posts: 1221

Hmm.. Strange indeed.
I'd still prefer you to change the getDisabledFlag function to rule it out.
change it to:

PHP Formatted Code

    function getDisabledFlag($itemId) {
            return false;
        }
 


-s


There will always be...
 
Profile Email Website
Quote
Anonymous: PicLensUser
 August 17 2008 03:51 am  


Same result. Here are some details that may help in the investigation:
-My albums are nested below my website directory for security.
-I am using the picLensRSS.php that was bundled with the ICE theme.

Stir anything?


 
Quote
suprsidr
 August 17 2008 04:30 am  
Forum Admin
Admin

Status: offline

Registered: 12/20/06
Posts: 1221

I am using the picLensRSS.php that was bundled with the ICE theme.

Didn't know it was bundled with anything - I wonder what version it is.
You can get the latest here - make sure to adjust the init function to reflect your site.

BTW, picLens support is now native in gallery2 2.3 Wink

-s


There will always be...
 
Profile Email Website
Quote
Anonymous: PicLensUser
 August 17 2008 16:07 pm  



Ok, got it to work by using the new picLensRSS.php I downloaded directly. I don't know why the other one doesn't work, but those who download and use the ICE theme, be warned.

Thank you all very much for your help. I can't believe it came down to something so general.

Glad to hear a great piece of software like picLens has been integrated natively into gallery.


 
Quote
Anonymous: sokjuice
 September 20 2008 13:05 pm  


YES! Just wanted to second the fact that the picLensRSS.php file that is included with the ICE theme for gallery2 does not work. Get the new file, put it in your root gallery2 folder, point to the gallery2 folder if it's not at yoursite.com/gallery2, and voila...it should it work.


 
Quote
Anonymous: guignol
 September 25 2008 08:45 am  


I have gallery 2.3 and piclens work like a charm, but I would like to give to my friend the direct link of the piclens diaporama. I tried to copy the link embeded in the webpage, but this doesn't work. Any solution?


 
Quote
suprsidr
 September 25 2008 09:12 am  
Forum Admin
Admin

Status: offline

Registered: 12/20/06
Posts: 1221

It actually does not work that way. Cooliris is a browser plugin, so any rendering is handled on the client's end.
So better to send your friend a link to get the plugin for themselves, and then a link to your gallery where they can view your example.

-s


There will always be...
 
Profile Email Website
Quote
Anonymous: Vipatel
 December 02 2008 04:26 am  



Hi Guys,

PicLensRss.php is a wonderful work.

I have my personal gallery with original pictures size(5MB+)

When I use cooliris they load too slow.

What I would like to know is how can I change picLensRss.php in such a way that the feed will produce images of only 600 x 480 size.

Thank you.

Vishal


 
Quote
suprsidr
 December 02 2008 04:48 am  
Forum Admin
Admin

Status: offline

Registered: 12/20/06
Posts: 1221

Something along the lines of:

gallery2/picLensRss.php?g2_itemId={$theme.idem.id}&amp;g2_maxImageWidth=600&amp;g2_maxImageHeight=600

Gallery 2.3 now supports Cooliris natively, and my slideshow module update (currently in review) allows you to choose size limit.

-s


There will always be...
 
Profile Email Website
Quote
Anonymous: Vishal
 December 03 2008 04:10 am  


Hi I am using Carbon Theme.

And I could not find the line that you have specified.


 
Quote
Content generated in: 1.86 seconds
New Topic Post Reply



 All times are PST. The time is now 03:51 am.
Normal Topic Normal Topic
Locked Topic Locked Topic
Sticky Topic Sticky Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Anonymous users can post 
HTML Allowed 
Censored Content