• Welcome to the Chevereto user community!

    Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.

    Please keep in mind:

    • 😌 This community is user driven. Be polite with other users.
    • 👉 Is required to purchase a Chevereto license to participate in this community (doesn't apply to Pre-sales).
    • 💸 Purchase a Pro Subscription to get access to active software support and faster ticket response times.
  • Chevereto Support CLST

    Support response

    Support checklist

Feeds(RSS and Atom) support for 3.7.x - 3.8.x

Denpa

Chevereto Member
Introduction
This mod for chevereto adds RSS 2.0 and Atom 1.0 feeds to your website and provides a simple framework
for creating your own custom XML feeds.

Like with flickr feed api you can get a feed for all recent images uploaded to your site, for a single image
category or uploaded by a certain user.

To learn more about this mod features please read the mod guide available as guide.html in doc directory of
mod archive and as on-line version at http://cdn.netfl.it/dev/chv/feeds/doc/guide.html.

Thank you for checking this mod out.
I hope you like it.

Usage examples
http://yoursite.com/feeds/rss - latest images in RSS format;
http://yoursite.com/feeds/atom - latest images in Atom format;
http://yoursite.com/feeds/rss?limit=10 - latest 10 images in RSS format;
http://yoursite.com/feeds/rss?user=foo - latest images by user 'foo';
http://yoursite.com/feeds/rss?category=bar - latest images in category 'bar';
http://yoursite.com/feeds/rss?user=foo&category=bar&limit=5 - latest 5 images uploaded to category 'bar' by user 'foo'.

For more information, please refer to the usage section of mod guide.

Help!
Please report any problems or bugs you might find to this forum thread.
I'll try to help you ASAP.

Disclaimer
Please remember that this mod is provided as-is and in case it screws your installation, explodes
your server or kills your neighbor's dog I shouldn't and won't be held responsible in any way.

Latest Version
0.7.2 - 2016/10/27
  • Bunch of compatibility fixes with later chevereto versions.
  • Removed extra.

P. S.
Sorry for my English it's not my first or even second language :(

upd. 2016
Not sure if anyone still uses it and why but here you go, updated for latest chevereto versions. For some reason I can't attach file so have a link instead:

Download
https://github.com/denpamusic/chevereto-feeds/releases

Thank you!
 
Last edited:
awesome man !! will try it when i get the chance this week :) (need to update my ch systems too first)

thx for the mod
 
You're welcome!
If you have any issues or questions be sure to contact me via this thread.
I'll be glad to help.

And by the way, later today I'll be updating this mod to support not only categories but also per-user feeds.
So each user will have their own feed which will contain only their images.

edit. Done!
 
Last edited:
Can someone give me some advice... http://mydive.photos/rss <--- shows errors saying can't divide by zero etc, etc.

This only came about after an update to 3.5.5
Oops~
It seems that I've overlooked a change in a way that chevereto handles medium generation.
Chevereto now doesn't generate medium for images smaller than specified medium size(which is quite logical thing to do actually :p).

I release an update incorporating necessary checks to fix this a little bit.
Until then you can safely delete whole 127 line from rss.php and it'll work again.
Sorry for the troubles.
 
You can use the image chain prop to tell which sizes are there. ;)
 
You can use the image chain prop to tell which sizes are there. ;)
Thank you!
I assume it's this one:
b68b8d4c385b6e828ada95f7c2fe6e7c.png


I've seen it taking the value of 5 for images with no medium and 7 for images with medium.
Does it work like some kind of sum(like 1, 2 and 4 in chmod)?

edit.
Nevermind, figured it out myself from class.image.php
PHP:
// original image medium thumb
$chain_mask = [0, 1, 0, 1];

Thanks for well commented code and fast response ;)
 
Last edited:
There are two chain instances in the image object. You have the plain chain which is stored in the database and that is the representation of the binary image chain and you have the filereource->chain->array which will tell you which sizes and files are available (url for external storage, filepath for local storage).

The image chain table can be found here: https://chevereto.com/src/img/misc/image-chain.png
 
@mydive
Updated the mod to detect available image sizes.
In case anyone interested I used bitwise AND on chain prop
e. g.
(bool)($image['chain'] & 1) // mask 0001 to detect a thumbnail
(bool)($image['chain'] & 2) // mask 0010 to detect a medium
etc...


Replace your "/app/themes/Peafowl-custom/views/rss.php" with the one from "mrss_chevereto_v05d.zip" above and error should be gone.
 
If anyone still uses(or struggles to use :p) versions prior to 0.7.0(released 2014/11/22), please update to the current release(0.7.1).
By this point these versions are considered obsolete and no longer supported.

Thank you.
 
Last edited:
upd. 2016/10
Mod suddenly updated for compatibility with latest chevereto versions. Please update your websites to the latest version - 0.7.2.
 
It should be included in core files. :) Great work @Denpa. Congrats!
Sadly not before fair bit of cleaning and refactoring ;)
It was long before chevereto has the theme view override support and before I realised that reinventing the wheel is not always viable development strategy.

But I'm working on updating to be at least close to chevereto development standards.
New version will use picoFeed library (https://github.com/fguillot/picoFeed)
support categories feeds (e. g. https://yoursite.com/category/keyboards/rss)
and will be fully configurable from dashboard.
 
Newbie here is the rss feed "plugin"? included now with chevretto or do we have to add it? If we need to add can someone point me th where we can learn how to add it?
 
Back
Top