Modules: RSS Feeds Extra 1.7

Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2139
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

Login or register to post comments
Serge D
Serge D's picture

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

Posted fix to comply with G3 RC2

Login or register to post comments
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

Login or register to post comments
Serge D
Serge D's picture

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

will check

Login or register to post comments
Serge D
Serge D's picture

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

version 1.4 is available - new feeds added

Login or register to post comments
Serge D
Serge D's picture

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

version 1.5 is available - small fix in admin area

Login or register to post comments
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?

Login or register to post comments
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2139
Posted: Thu, 2011-01-27 15:03
Login or register to post comments
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?

Login or register to post comments
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2139
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

Login or register to post comments
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!

Login or register to post comments
undagiga

Joined: 2010-11-26
Posts: 554
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

Login or register to post comments
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2139
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

Login or register to post comments
undagiga

Joined: 2010-11-26
Posts: 554
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

Login or register to post comments
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2139
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

Login or register to post comments
undagiga

Joined: 2010-11-26
Posts: 554
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

Login or register to post comments
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.

Login or register to post comments
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2139
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

Login or register to post comments
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?

Login or register to post comments
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2139
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
Login or register to post comments
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.

Login or register to post comments
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.

Login or register to post comments
Serge D
Serge D's picture

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

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

Login or register to post comments
petri
petri's picture

Joined: 2005-12-15
Posts: 207
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 !

Login or register to post comments
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2139
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?

Login or register to post comments
petri
petri's picture

Joined: 2005-12-15
Posts: 207
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 !

:-)

Login or register to post comments
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2139
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
Login or register to post comments
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2139
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

Login or register to post comments
petri
petri's picture

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

YESSSS !!

popular/landscape is working great,

thank you Serge !

Login or register to post comments
petri
petri's picture

Joined: 2005-12-15
Posts: 207
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

Login or register to post comments
Serge D
Serge D's picture

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

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

Login or register to post comments
petri
petri's picture

Joined: 2005-12-15
Posts: 207
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

Login or register to post comments
Serge D
Serge D's picture

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

Very strange
Why login is involved here?

Login or register to post comments
petri
petri's picture

Joined: 2005-12-15
Posts: 207
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 ?

Login or register to post comments
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2139
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

Login or register to post comments
petri
petri's picture

Joined: 2005-12-15
Posts: 207
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

Login or register to post comments
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2139
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

Login or register to post comments
petri
petri's picture

Joined: 2005-12-15
Posts: 207
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 ?

Login or register to post comments
petri
petri's picture

Joined: 2005-12-15
Posts: 207
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.

Login or register to post comments
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2139
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
Login or register to post comments
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!

Login or register to post comments
Serge D
Serge D's picture

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

Some issue with codex page. Fixed...

Login or register to post comments