Modules: RSS Feeds Extra 1.7

Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2466
Posted: Fri, 2010-03-19 05:48

Adds a new item feeds for Gallery.

Adds a new item feeds for Gallery.

  • rss_extra/random - random movie and photo feed
  • rss_extra/random/photo - random photo feed
  • rss_extra/random/landscape - random landscape photo feed
  • rss_extra/random/portrait - random portrait photo feed
  • rss_extra/album_landscape - landscape photo feed for selected album
  • rss_extra/album_portrait - portrait photo feed for selected album
  • rss_extra/latest - latest photo feed
  • rss_extra/latest/landscape - latest landscape photo feed
  • rss_extra/latest/portrait - latest portrait photo feed
  • rss_extra/popular - popular photo feed
  • rss_extra/popular/landscape - popular landscape photo feed
  • rss_extra/popular/portrait - popular portrait photo feed

---
Problems? Report it here | Get latest version | Coffee Fund | My Library | Blog

 
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2466
Posted: Tue, 2010-07-27 00:05

Posted fix to comply with G3 RC2

 
xaphod2

Joined: 2006-03-30
Posts: 11
Posted: Sat, 2010-10-09 21:59

I made a mod to rss_extra, with bharat's help, to make it pick random images from a given set of albums (and their children).

Pastebin link for modified ver of rss_extra_rss.php: http://gallery.pastebin.com/WMfmjH7Y

IDs for albums are from mysql (use phpmyadmin, look at items table, query for type=album...). In my example I use IDs 3, 5948, 2378, and 9669.

thx
X

 
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2466
Posted: Mon, 2010-10-11 18:45

will check

 
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2466
Posted: Sun, 2010-12-12 05:19

version 1.4 is available - new feeds added

 
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2466
Posted: Mon, 2010-12-13 18:08

version 1.5 is available - small fix in admin area

 
ffletch2

Joined: 2002-08-16
Posts: 60
Posted: Thu, 2011-01-27 14:20

On a gallery that has the top level album viewable by only registered users, when I hit any of the RSS links from a browser I get the standard (HTML based) userid and password prompt. However I want to hit these RSS links from devices that don't have a browser. Say for example a picture frame. Is there any way to incorporate the login information into the URL? Or better yet, is there a way to say this: for RSS links only allow access without authentication from a given set of IP addresses?

 
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2466
Posted: Thu, 2011-01-27 15:03
 
ffletch2

Joined: 2002-08-16
Posts: 60
Posted: Thu, 2011-01-27 21:14

Problem is - the gallery is already a public gallery and needs to stay that way. So its public but everything password protected. So even if I did a .htaccess I would have the same password problem with RSS feeds. Unless there is some .htaccess rewrite magic that gets around the needs for the gallery password. I guess one way I could do it (now that I think about it) is to do a password but in .htaccess and not in gallery. And then have only internal IP's not need the password. Was hoping to stick with Gallery's authentication but if the .htaccess password is the only way I might be stuck with it. Any other thoughts?

 
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2466
Posted: Thu, 2011-01-27 21:32

ah, OK

well, RSS is not managed by this module but by RSS core module
so question may be worth escalated to G3 team instead so it would be supported by any RSS exposed.
how do you see RSS authentication process to work?

On general note - http://www.niallkennedy.com/blog/2006/09/authenticated-private-feeds.html
http://www.php.net/manual/en/function.parse-url.php
So we need https support at least and then be able parse user/password out of URL

 
ffletch2

Joined: 2002-08-16
Posts: 60
Posted: Thu, 2011-01-27 21:46

Actually, it would solve my problem a lot cleaner if I could specify an IP address or range of IP's to require authentication from. I don't know the code but I'm guessing that would be easier to implement than SSL and parsing the URL - but I might be wrong.

And yeah - I know this is not an issue with your module :). Just was looking for someone who knew what they were talking about. Thanks for the response!

 
undagiga

Joined: 2010-11-26
Posts: 693
Posted: Sun, 2011-02-27 13:48

Having just installed this mod to get random in Imageblock Ex, I take it that the feed I need to enable is "Random photos and movies" rather than just "Random photos". So "Random photos and movies" is the only one of these extra feeds picked up by Imageblock Ex?

U-G

 
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2466
Posted: Mon, 2011-02-28 20:37
undagiga wrote:
Having just installed this mod to get random in Imageblock Ex, I take it that the feed I need to enable is "Random photos and movies" rather than just "Random photos". So "Random photos and movies" is the only one of these extra feeds picked up by Imageblock Ex?

U-G

yes, you are correct
suggestions?

PS. unfortunatelly, admin section does not work well with dynamic build of RSS feeds available, so I have to hard code it

 
undagiga

Joined: 2010-11-26
Posts: 693
Posted: Mon, 2011-02-28 22:59

My only suggestion would be to make it clear on the Codex which option to enable for Imageblock Ex.

What I'd really like to be able to do is to exclude certain albums from the random selection, but that's asking a bit much. I can always hack the code.

Thanks

U-G

 
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2466
Posted: Mon, 2011-02-28 23:51
undagiga wrote:
My only suggestion would be to make it clear on the Codex which option to enable for Imageblock Ex.

What I'd really like to be able to do is to exclude certain albums from the random selection, but that's asking a bit much. I can always hack the code.

Thanks

U-G

how do you see exclusion to work?
or should it be inclusion instead?

PS. I have extended Codex pages for both modules

 
undagiga

Joined: 2010-11-26
Posts: 693
Posted: Tue, 2011-03-01 06:39

Could work either way I guess. My production site has 54 albums and I'd like to exclude 6, so for me exclude would be easier, but for others include would be easier. One idea I had was to include a specific album tag, so that albums without that tag were not displayed. (Of course for some people inclusion would still be easier.) This would work for me because I don't display album tags - the tags that my "About this album" module displays are those of the photos in the album, not those of the album itself. Anyone displaying album tags may not like this. Having a custom album property would be ideal, but we don't have those yet.

Re the codex, what I was suggesting you include was which one of the extra random RSS feeds needs to be activated for "random" in Imageblock Ex, as I gather that "Random photos and movies" is the only one that works?

U-G

 
Glorfyboy

Joined: 2011-05-26
Posts: 1
Posted: Thu, 2011-05-26 05:04

Is there any way to set up authentication for this? Such that if I make an album private, I can simply supply the rss reader with a username and password and still be able to access the random rss images? Thanks.

 
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2466
Posted: Fri, 2011-05-27 01:59

this would need to be supported by G3 core or some special module. I just create feed registration

 
cames

Joined: 2011-06-08
Posts: 7
Posted: Wed, 2011-06-08 23:52

Feeling dumb here, but relative to the base Gallery installation, what is the feed URL for these?

 
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2466
Posted: Thu, 2011-06-09 01:31

If your normal root gallery feed look like this

http://yoursite.com/rss/feed/gallery/album/1

then module's url would look like this

http://yoursite.com/rss/feed/rss_extra/random
 
cames

Joined: 2011-06-08
Posts: 7
Posted: Fri, 2011-06-10 06:22

Thank you. I had originally just had Latest Portrait & Latest Landscape turned out. When I activated Random as well, all 3 appeared in the RSS Feed sidebar.

 
laohu99

Joined: 2011-08-24
Posts: 6
Posted: Thu, 2011-09-01 02:28

Hi Serge,
Thank you for your work.

I need a feed to show the latest photos in some specified album.
Something like "xmlUrl=http://www.lijiangmm.com/gallery/index.php/rss/feed/gallery/album/5/latest" .
Is it possible to get a feed like that?

Many thanks for your help.

 
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2466
Posted: Thu, 2011-09-01 03:55

Please check 3rd party module list, I think there is one for this already

 
petri
petri's picture

Joined: 2005-12-15
Posts: 253
Posted: Wed, 2012-01-04 02:28

Hi Serge,

I am using Dave's popular carousel and would love to have those pics in the rootpage' slideshow.

Would it be possible to add :

rss_extra/popular/landscape
rss_extra/popular/portrait

it would be great !

 
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2466
Posted: Wed, 2012-01-04 19:05
petri wrote:
Hi Serge,

I am using Dave's popular carousel and would love to have those pics in the rootpage' slideshow.

Would it be possible to add :

rss_extra/popular/landscape
rss_extra/popular/portrait

it would be great !

how do you select popular? top views overall, today, week, etc?

 
petri
petri's picture

Joined: 2005-12-15
Posts: 253
Posted: Thu, 2012-01-05 02:05

Well, now that you mention it.... ;-)

Dave's module calculate the overall...

but if we could have the choice between, let's say overall, yearly and monthly it would be great !

:-)

 
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2466
Posted: Fri, 2012-01-06 22:18

Version 1.6 has been released

New feeds added:

  • rss_extra/latest
  • rss_extra/popular
  • rss_extra/popular/landscape
  • rss_extra/popular/portrait
 
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2466
Posted: Fri, 2012-01-06 22:27
petri wrote:
Well, now that you mention it.... ;-)

Dave's module calculate the overall...

but if we could have the choice between, let's say overall, yearly and monthly it would be great !

yes, it would be great, but G3 does not track hits therefore there is no information to apply time-line. So total it is

 
petri
petri's picture

Joined: 2005-12-15
Posts: 253
Posted: Sat, 2012-01-07 09:32

YESSSS !!

popular/landscape is working great,

thank you Serge !

 
petri
petri's picture

Joined: 2005-12-15
Posts: 253
Posted: Fri, 2012-01-13 06:27

I just changed my theme to Wind for a little check and switched in back to GD, and now the landscape is not working anymore...

popular is working though.

Firebug tells me there is a java error.

http://www.coquille.org/gallery3

 
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2466
Posted: Fri, 2012-01-13 13:23

I see...
what is reported in the G3 error log?

 
petri
petri's picture

Joined: 2005-12-15
Posts: 253
Posted: Sat, 2012-01-14 08:51
Quote:
012-01-14 02:07:22 +01:00 --- error: File not found: rest 2012-01-14 02:43:01 +01:00 --- error: File not found: exif/show/127 2012-01-14 04:30:58 +01:00 --- error: File not found: exif/show/169 2012-01-14 06:45:46 +01:00 --- error: File not found: exif/show/63 2012-01-14 07:31:25 +01:00 --- error: File not found: login 2012-01-14 07:32:22 +01:00 --- error: File not found: login 2012-01-14 07:33:22 +01:00 --- error: File not found: login 2012-01-14 07:34:22 +01:00 --- error: File not found: login 2012-01-14 07:35:22 +01:00 --- error: File not found: login 2012-01-14 07:36:22 +01:00 --- error: File not found: login 2012-01-14 07:37:22 +01:00 --- error: File not found: login 2012-01-14 07:38:22 +01:00 --- error: File not found: login 2012-01-14 07:39:24 +01:00 --- error: File not found: login 2012-01-14 07:40:23 +01:00 --- error: File not found: login 2012-01-14 07:41:22 +01:00 --- error: File not found: login 2012-01-14 07:42:22 +01:00 --- error: File not found: login 2012-01-14 07:43:22 +01:00 --- error: File not found: login 2012-01-14 07:44:22 +01:00 --- error: File not found: login 2012-01-14 07:45:23 +01:00 --- error: File not found: login 2012-01-14 07:46:22 +01:00 --- error: File not found: login 2012-01-14 07:47:22 +01:00 --- error: File not found: login 2012-01-14 07:48:22 +01:00 --- error: File not found: login 2012-01-14 07:49:22 +01:00 --- error: File not found: login 2012-01-14 07:50:22 +01:00 --- error: File not found: login 2012-01-14 07:51:22 +01:00 --- error: File not found: login 2012-01-14 07:52:22 +01:00 --- error: File not found: login 2012-01-14 07:53:22 +01:00 --- error: File not found: login

...... and so on

 
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2466
Posted: Sun, 2012-01-15 04:37

Very strange
Why login is involved here?

 
petri
petri's picture

Joined: 2005-12-15
Posts: 253
Posted: Mon, 2012-01-16 03:29

strange indeed

this is a fresh post of opening the page this morning :

Quote:
2012-01-16 02:04:41 +01:00 --- error: File not found: lib/images/favicon.gif 2012-01-16 03:53:08 +01:00 --- error: File not found: login

and this is when I have this RSS in the GD admin : /gallery3/index.php/rss/feed/rss_extra/popular/landscape

when I put the following RSS : /gallery3/index.php/rss/feed/rss_extra/popular/

it works, and I only get the favicon error (which is normal, I have not put it there yet) :

Quote:
2012-01-16 02:04:41 +01:00 --- error: File not found: lib/images/favicon.gif 2012-01-16 03:53:08 +01:00 --- error: File not found: login 2012-01-16 04:18:00 +01:00 --- error: File not found: lib/images/favicon.gif

What other file is it searching for in the landscape mode ?

 
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2466
Posted: Tue, 2012-01-17 16:52

a) what version of G3 you are on?
b) filter uses image size stored in DB, so what could have happened here is that you have resized images and it does not match "Resized Image Size (in pixels)" value. Either height or width should match

 
petri
petri's picture

Joined: 2005-12-15
Posts: 253
Posted: Thu, 2012-01-19 02:52
Quote:
a) what version of G3 you are on?

You can see my version in the signature below

Quote:
b) filter uses image size stored in DB, so what could have happened here is that you have resized images and it does not match "Resized Image Size (in pixels)" value. Either height or width should match

So you mean that if I set the Resized image to 800, all my pics should have at least height or width to 800px ? Then I understand, most of my pics are smaller than that.

------
Version: 3.0.2 (Coollanta)
Albums: 17
Photos: 142
Operating system: Linux 2.6.18-194.32.1.el5
Apache: Apache/2.2.3 (Red Hat)
PHP: 5.2.6
MySQL: 5.0.77
Server load: 0.29 0.27 0.51
Graphics toolkit: gd

 
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2466
Posted: Thu, 2012-01-19 03:26

Ok, so version is not an issue, but size might be
Is full size of the images smaller than 800 in largest dimension? If not then when you upload images they would be resized using 800 as a base for photo view.
So solution would be to mark all images for resize using maintenance option and then run maintenance task...
To avoid that I will consider using compare instead of exact in next release

 
petri
petri's picture

Joined: 2005-12-15
Posts: 253
Posted: Thu, 2012-01-19 04:30

Yes full size can be smaller than 800... I have a lot of pics from early 2000 that are not bigger than 550px on the largest size :-)

I have already used the maintenance task but it had only 11 pics to resize, how can I force it to select them all and run the maintenance task ? Do I need a special module to do it ?

 
petri
petri's picture

Joined: 2005-12-15
Posts: 253
Posted: Fri, 2012-01-20 06:56

I found the way to select all pics to resize.... in GD admin page ! ;-) I knew I had seen it somewhere.

And now it works !

Thank you Serge.

 
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2466
Posted: Wed, 2012-01-25 00:57

Version 1.7 is up

  • Improved handling of orientation for the feeds to allow selection of resizes which are not matching resize size
 
jparker
jparker's picture

Joined: 2005-01-18
Posts: 1
Posted: Thu, 2012-02-02 05:28

hmmm....would love to try it but the download link isn't working!

 
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2466
Posted: Thu, 2012-02-02 05:57

Some issue with codex page. Fixed...

 
BillWill

Joined: 2008-08-28
Posts: 205
Posted: Thu, 2012-04-05 16:45
Serge D wrote:
Please check 3rd party module list, I think there is one for this already

What is the name of it?

===========================
Gallery 3.0.2
PHP - 5.3.8 cgi-fcgi
Apache/2.2.21 (Unix)
mysqli 5.0.92
Clean Canvas theme

Toolkits = Exif, Gd, ImageMagick

 
BillWill

Joined: 2008-08-28
Posts: 205
Posted: Thu, 2012-04-05 16:46
laohu99 wrote:
Hi Serge,
Thank you for your work.

I need a feed to show the latest photos in some specified album.
Something like "xmlUrl=http://www.lijiangmm.com/gallery/index.php/rss/feed/gallery/album/5/latest" .
Is it possible to get a feed like that?

Many thanks for your help.

Serge D wrote:
Please check 3rd party module list, I think there is one for this already

What is the name of it?

===========================
Gallery 3.0.2
PHP - 5.3.8 cgi-fcgi
Apache/2.2.21 (Unix)
mysqli 5.0.92
Clean Canvas theme

Toolkits = Exif, Gd, ImageMagick

 
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2466
Posted: Thu, 2012-04-05 18:12
 
BillWill

Joined: 2008-08-28
Posts: 205
Posted: Fri, 2012-04-06 14:16

thanks!

==========================
Gallery 3.0.2
PHP - 5.3.8 cgi-fcgi
Apache/2.2.21 (Unix)
mysqli 5.0.92
Clean Canvas theme

Toolkits = Exif, Gd, ImageMagick

 
bishop3337

Joined: 2012-05-26
Posts: 1
Posted: Sat, 2012-05-26 11:34

I am using your module and it works fine :) I'm sorry to bother here, but my question targets the use of the image rss in Wordpress. I would like to use it as source for random images in a widget an link to the image in Gallery3. I couldnt find a working plugin that allows me to show a thumbnail from the image and link it to the Gallery. Again sorry to bother here with a wordpress plugin question, but perhaps someone could just point me in the right direction.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sat, 2012-05-26 12:33
 
hareslade

Joined: 2006-07-16
Posts: 20
Posted: Thu, 2012-08-30 11:27

hi
the rss extra module doesn't want to reactivate after an initial install and de activation. i assume its trying to insert rows in database again or something.

this was in parallel with an initial gallery auto advice message, that there is a newer version available, '17'.
that appears to be because the .info file has a typo, it says 17 rather than 1.7

how do i escape the loop? can't now re-activate because it refuses, and its saying it has v2 rss extra in the modules list, i never heard of v2, no idea where it got that idea!

thanks on latest gallery 3 and php 5.3.10

FIXED: seems to be soltuion is just to remove the rss extra entry from modules table and re-install. But, the 1.7 in the .info file I changed to v1, it seems to kill the gallery3 'new version available' msg after install. THat is, .info should have integer version not 1.7 ?

 
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2466
Posted: Tue, 2012-09-04 17:42

version should be 17
G3 uses integer notation for version
I do display adjustment in module admin page to show it.

Serge
_____________________________________________
Photo Gallery | GreyDragon Theme | Follow on Twitter

 
hareslade

Joined: 2006-07-16
Posts: 20
Posted: Tue, 2012-09-04 20:42

Hi Serge D, ok. gallery3 must have had a hiccup.

the other thing i found is, rss_extra seems to use the view template inside gallery 3,
rather than the view template in rss_extra. Is that intentional?