xml.php creation of Media RSS feed from Gallery2 albums

suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sun, 2008-05-04 12:56

Have you activated the other themes?
You need to do so just as any other module.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
totem

Joined: 2008-03-04
Posts: 25
Posted: Sun, 2008-05-04 17:17

oh! My bad! thanks

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2008-05-04 20:34

@totem: that's really offtopic. but here you go... install&activate the themes first at "site admin -> plugins", then you can use them.

--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage

 
totem

Joined: 2008-03-04
Posts: 25
Posted: Mon, 2008-05-05 03:23

Thanks valiant. I had it already fixed.
PS: Now that I'm trying to upgrade to the nightly 2.3, I'm kinda stuck:
http://gallery.menalto.com/node/77347

 
baseball2487

Joined: 2007-02-08
Posts: 13
Posted: Sun, 2008-07-06 17:36

Using suprsidr's piclensrss.php file works well, however it has an external link to the file 'http://lite.piclens.com/current/piclens.js' - does the 2.3 module version use a link to this same file or does it keep a local version of that file? The reason I ask is if I were to deploy it on an isolated intranet with no internet access, would the feature still work (assuming I've already installed the browser plugin).

I noticed in the comments on the piclens.js file that it stated '2) download the zip file and deploy it on your own website (unzip it anywhere, and point to the JS file in the <head> of your page)' so I thought this may be possible with the 2.3 plugin.

On a side note it also mentions there is an optimized version of the javascript file (without comments and such) - and when messing around with it I don't see any downsides to using it (seems to work if I switch to it in the 'piclensrss.php' file) -- as mentioned in the piclens.js file ' * http://lite.piclens.com/current/piclens_optimized.js contains a light version for deployment (~25KB)'

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sun, 2008-07-06 18:04

the lite.piclens...... is only necessary if you use the

<td class="gsActionIcon">
    <div class="buttonViewSlideshow"><a href="javascript:PicLensLite.start();"></a></div>
</td>

alternate slideshow button.
If you have the browser plugin its not necessary.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Sun, 2008-07-06 18:19

@baseball2487: Because of licensing restrictions, we cannot ship the piclens JS with Gallery. Gallery 2.3 provides a button you click to download a copy of the PicLens JS code and store it on your server. You'll only need internet access for that part of the operation.

 
baseball2487

Joined: 2007-02-08
Posts: 13
Posted: Tue, 2008-07-08 05:31

Thanks bharat, that's just what I wanted to hear. Thanks for all the work you put into this.

 
Udo Kraehenfeld

Joined: 2006-06-01
Posts: 36
Posted: Wed, 2008-07-16 04:34

Resized images were not loaded in my gallery.

Only the thumbnails were loaded.

So long I'm not loged in to my gallery.

Gallery-Version = 2.2.5 Kern 1.2.0.7
PHP-Version = 5.2.6 cgi-fcgi
Webserver = Apache/2.2.8 (FreeBSD) mod_ssl/2.2.8 OpenSSL/0.9.8e DAV/2
Datenbank = mysqlt 5.1.24-rc, lock.system=flock
Werkzeuge = Exif, Gd, LinkItemToolkit, Thumbnail, ImageMagick, ArchiveUpload
Beschleunigung = none/1800, none/1800
Betriebssystem = FreeBSD hosting.zypo.com 7.0-RELEASE-p1 FreeBSD 7.0-RELEASE-p1 #0: Thu May 1 08:37:10 UTC 2008 root@mfsbsd:/usr/obj/usr/src/sys/MYAMD64 amd64
Standard-Motiv = matrix
gettext = Aktiviert
Sprache = de_DE
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9) Gecko/2008052906 Firefox/3.0
Zeilen in der GalleryAccessMap Tabelle = 2207
Zeilen in der GalleryAccessSubscriberMap Tabelle = 34189
Zeilen in der GalleryUser Tabelle = 388
Zeilen in der GalleryItem Tabelle = 34164
Zeilen in der GalleryAlbumItem Tabelle = 483
Zeilen in der GalleryCacheMap Tabelle = 0

 
geantbrun

Joined: 2007-07-21
Posts: 13
Posted: Fri, 2008-07-18 19:51

Hi,
I'm not sure I understand all the steps needed to enable piclens on my gallery2 site.
1) Did the changes to album and theme tpl files
2) Did the change (and upload to the gallery2 root) to picLensRSS.php file

Now, did I have also to enable my website as described here: http://piclens.com/lite/webmasterguide.php?

Thank you for your help!
Patrick

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Fri, 2008-07-18 21:33
 
Non3

Joined: 2008-08-01
Posts: 29
Posted: Wed, 2008-08-27 09:36

hi,

(sorry for my english :P)

i tried to implent ONE RSS Feed for ALL albums. So i can see all Pictures of the gallery on one 3D-wall.

Any ideas to realise this Multipage Galleries.

Thanks for help!

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2008-08-27 11:42

Try:

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

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
Non3

Joined: 2008-08-01
Posts: 29
Posted: Wed, 2008-08-27 12:29

Iam using this

xml.php: http://www.admin-system.net/?q=node/4&id=960740000b
MediaRss.php: http://www.admin-system.net/?q=node/4&id=5b310bac06

Versions.

i tryed

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

but the feed is empty.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2008-08-27 14:09
 
Non3

Joined: 2008-08-01
Posts: 29
Posted: Thu, 2008-08-28 09:33

works fine..

ty

 
me-g33k
me-g33k's picture

Joined: 2006-04-13
Posts: 4
Posted: Thu, 2008-08-28 12:35

I tried this again today and It's sort of working.

I started to have problems when editing album.tpl. First off I could not identify where to put the link that for the slideshow button. I am using the matrix theme and the entire sidebar area is all modularized and bring pulled from somewhere else. I just ended up sticking in near the bottom and it looks really out of place on the page but it does work. When it's clicked it calls up the PicLens application but it complains that the current browser page is not yet Cooliris enabled. Also when editing the theme.tpl site I changed the link to point to a local copy of piclens_optimized.js rather than the one at piclens.com.

I got the latest version of picLensRss.php from supsidr's site and modified that then placed it on the gallery root on my server. I have a virtual host for my site so I didn't need the /gallery2/ prefix in that revision suggested on #2 on this page (http://www.flashyourweb.com/forum/viewtopic.php?showtopic=792).

One other possible factor maybe that I am running the URL Re-write module... Would this mess up the piclensrss.php?

You can see the gallery at:

http://gallery.efamilynj.org

I'd like to stay with the current version as I am running from a deb package and I am reluctant to migrate via import/export...

TIA

cat user_complain.msg > /dev/nul

 
scaturan
scaturan's picture

Joined: 2004-09-12
Posts: 1153
Posted: Sun, 2008-09-14 03:58

this is awesome, just tried it! thank you! *will recommend this to my users*
___________________________________________________
http://pixi.me/

 
sko22
sko22's picture

Joined: 2004-04-26
Posts: 11
Posted: Fri, 2008-10-10 09:53

is it possible to have a rss of all photos in gallery2?

the structure of my site is this:
/
/index.php
/gallery2/

is it possible to insert a button in index.php and to see with piclens all the images of gallry2?

 
sko22
sko22's picture

Joined: 2004-04-26
Posts: 11
Posted: Wed, 2008-11-12 22:54

up

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2008-11-12 23:04
Quote:
is it possible to insert a button in index.php and to see with piclens all the images of gallry2?

no

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
vhenninot

Joined: 2008-09-26
Posts: 32
Posted: Thu, 2009-01-15 11:51

Hello,
Just tu be sure that i understand :

The template change generate a new RSS fedd that CoolIRIS can read,
The Album template change is only to have a slideshow button (no more useful with Gallery2.3 because we already have a Piclens slideshow Module)

But today, is it still useful to add the piclensRSS file ?
The Piclens diaporama component generate its own "PHOTO RSS" feed !

Wich feed is used for the flashyourweb minislideshow and Mediablock ?
Are the two feeds working with Cooliris Firefox plugin ?

(i can't test because i'm on Linux Ubuntu)

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Thu, 2009-01-15 12:43

Gallery 2.3 needs no template changes at all.
no more need for the picLensRss.php

The minislideshow still uses my mediaRss.php
mediaBlock.php has its own simple feed generator for cooliris, no other file necessary.
You simply need to add &rss=1 to include the feed in your display.
All available variables are described here.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
smoser

Joined: 2009-01-23
Posts: 1
Posted: Fri, 2009-01-23 18:57

I just wanted to say thanks to suprsidr and mediaRss.php (from v2.0.8 minislideshow - http://www.flashyourweb.com/filemgmt/index.php?id=12) I now have a digital picture frame supporting framechannel (http://www.framechannel.com/) showing pictures from my gallery installation. The built-in RSS support in gallery was not supported by framechannel. I think this is a result of the lack of <media> tags in the feed.

Thanks.

 
brewster1134

Joined: 2009-02-11
Posts: 29
Posted: Fri, 2009-11-20 21:48

im not sure if mediablock is setup to do this, but i am looking for an rss feed that shows sub-albums as links to that sub-album's rss feed.

the closest i have found to that is mediablock's recursive parameter, but it shows all sub-album items together with the current album items.

it would be nice in cooliris to simply click on a sub-album and view the contents of it separately.

can this be done with mediablock?

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sat, 2009-11-21 03:43

I can think of many ways to create the feeds you desire, but don't think cooliris would react as you'd like.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2