forum.coppermine-gallery.net

Support => cpg1.4 plugins => cpg1.4.x Support => Older/other versions => cpg1.4 plugin contributions => Topic started by: halnat on January 29, 2009, 11:22:33 pm

Title: BrainFeeder RSS plugin
Post by: halnat on January 29, 2009, 11:22:33 pm
BrainFeeder for Cpg 1.4x provides a simple user interface that lets you configure your feeds without any knowledge of PHP or the technical aspects of RSS feeds and Coppermine. Test it before using it on your live site.

BrainFeeder for Cpg lets you easily configure most of the attributes of the feeds so that you can create titles and description as you need them to be without you having to modify any code.

You can set up a number of different feeds that send pictures to your subscribers based on various criteria, such as:
    * Keyword
    * Category including child categories
    * Album
    * Latest pictures
    * Most viewed pictures
    * The most highly rated pictures
    * Random pictures selected based on any of the criteria above
    * Meta data from coppermine and Exif can be dynamically added to the picture caption in the feed

If you want, you can also make BrainFeeder publish individual pictures from restricted albums. This is a handy feature if you need to protect most pictures in an album, but still want to publish some of them. Users need to login in order to click through from the feed.

BrainFeeder can be run in two ways:
    * In realtime mode: The feed is generated each time it is called.
    * In batch mode: BrainFeeder generates a static RSS file that is downloaded by subscribers.

More info here: http://www.natvik.com/bfdoc/brainfeeder_doc.html (http://www.natvik.com/bfdoc/brainfeeder_doc.html)

Example feed: http://www.natvik.com/rss.php?fid=1

BrainFeeder for Coppermine is also available for Coppermine 1.5.

UPDATE
Version 0.6 - new feature: Random pictures in a feed
Version 0.61 - minor bugfixes
Version 0.7 - Improved handling of movies and other media types and made thumbnails in feeds clickable
Version 0.9 - Context sensitive RSS icon (optional), One click feed setup, choose intermediate (normal) or thumbnail to be shown in feed
Version 1.0 - Improved the lay out of the configuration screen. Implemented dynamic picture captions that let you include information from coppermine and exif meta data in the feed.
Version 1.1 - Fixed incorrect default anchor in picture caption
Version 1.2 - Fixed error causing default title to be used also for pictures with their own title

Title: Re: BrainFeeder RSS plugin - alpha release
Post by: Hein Traag on January 30, 2009, 10:03:38 am
Natvik thanks for this welcome plugin. Taking a quick look it does look promising. Nice work.
Title: Re: BrainFeeder RSS plugin - alpha release
Post by: ff on February 05, 2009, 08:56:23 am
Hya Natvik,

Are you planning on having a random-function in your feed?
Like random X-number of pictures of the complete album on creation of the feed.

Title: Re: BrainFeeder RSS plugin - alpha release
Post by: halnat on February 07, 2009, 11:33:28 am
Yes, I will look into the possibility of creating a feed of random pictures.
Title: Re: BrainFeeder RSS plugin - alpha release
Post by: ff on February 07, 2009, 11:51:18 am
Great :D

I've been trying to get that working with different RSS-plugins, but I didn't succeed.

The little ajustments to be made for my Kodak W1020-digital photoframe are easy (media-tag), but the real randomizing (or is it randomising? ;)) with each request. ... pfew...
Title: Re: BrainFeeder RSS plugin - alpha release
Post by: Halfhidden on February 11, 2009, 01:19:48 pm
Hi I installed this great plugin but get an error:
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/mysite/public_html/coppermine/plugins/brainfeeder/brainfeeder.php on line 26

I get this when I try to see the feed:
http://mysite.co.uk/coppermine/rss.php?fid=1

Any idea's what could be wrong.
Thanks
Title: Re: BrainFeeder RSS plugin - alpha release
Post by: halnat on February 13, 2009, 11:27:20 am
looks like the brainfeeder.php file has been edited. Please try to download again and reinstall.
Title: Re: BrainFeeder RSS plugin - alpha release
Post by: Halfhidden on February 13, 2009, 04:39:34 pm
Although I hadn't edited this file I did try your advise and uploaded a new copy of the plugin but the error is the same.
I've attached the brainfeeder.php file for you to see.
Thanks
Title: Re: BrainFeeder RSS plugin - alpha release
Post by: Nibbler on February 13, 2009, 05:22:52 pm
Means you don't have PHP5.
Title: Re: BrainFeeder RSS plugin - alpha release
Post by: Halfhidden on February 13, 2009, 05:29:56 pm
OK... That never occurred to me and an extremely valid point indeed.... Thanks again Nibbler. I shall upgrade to PHP5 today and report back. Can I confirm that Coppermine1.4.19 is happy with PHP5?
Thanks for all your help again.
Title: Re: BrainFeeder RSS plugin - alpha release
Post by: Joachim Müller on February 17, 2009, 12:01:12 pm
cpg1.4.x will work with PHP4.2 or better as per docs (section "minimum requirements"). The word "or better" means in this case: yes - will work with PHP5.x as well.
This very plugin needs PHP5 though - the initial posting in this thread should be edited accordingly.
Title: Re: BrainFeeder RSS plugin - alpha release
Post by: Halfhidden on February 17, 2009, 12:14:39 pm
Thanks for the reply Joachim Müller. I'm pleased that you have edited the post to state PHP5 or better required to run this plugin. I'm going to upgrade this week.
Title: Re: BrainFeeder RSS plugin - alpha release
Post by: ekhwan on February 27, 2009, 02:04:50 pm
When I try this url http://www.mysite.com/gallery/rss.php?fid=1

I get this error:

Invalid channel image: Image URL missing
Title: Re: BrainFeeder RSS plugin - alpha release
Post by: Joachim Müller on February 27, 2009, 02:25:28 pm
Post a real URL
Title: Re: BrainFeeder RSS plugin - alpha release
Post by: goman on March 07, 2009, 01:41:02 pm
Please advice.
When install this plugin, writes to this error:
Invalid channel image: Image URL missing
my gallery is here:
http://www.svetfotek.net
and RSS is here:
http://www.svetfotek.net/rss.php?fid=3
Thank you for advice
Title: Re: BrainFeeder RSS plugin - alpha release
Post by: Hein Traag on March 07, 2009, 04:31:41 pm
@goman... update. Now. Running <!--Coppermine Photo Gallery 1.4.10 (stable)--> is not a bright idea  ;)
Title: Re: BrainFeeder RSS plugin - alpha release
Post by: goman on March 08, 2009, 11:06:13 am
Hey, so I did as instructed uprgade:
http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#upgrade
to cpg1.4.21.
But the plugin still does not work :-(
http://www.svetfotek.net/rss.php?fid=4
and there arose the problem :-(
Everywhere where we had some Smail shows something else.
Example:
http://www.svetfotek.net/displayimage-11748.html

Quote
No jo, na pana fotografa se všichni usmívali (http://svetfotek.net/smaily/xchat/72.gif)

This: http://svetfotek.net/smaily/xchat/72.gif is shown as http://www.svetfotek.net/images/thumbnails.gif
   
Where there may be a problem?
Tahnk you
Title: Re: BrainFeeder RSS plugin - alpha release
Post by: goman on March 08, 2009, 11:31:09 am
and incurred additional problem with the captcha in the comments :-(
Example:
http://www.svetfotek.net/displayimage-11748.html

Title: Re: BrainFeeder RSS plugin - alpha release
Post by: PdLrAaTgIoNnUM on March 14, 2009, 11:50:31 am
hey halnat gr8 plugin, works great, it integrated successfully on my site (http://www.omerzohar.com/rss.php?fid=1 (http://www.omerzohar.com/rss.php?fid=1)) :)

wanted to ask, is it possible to make rss feeds of new Albums in a cat instead of new pictures?

10x
Title: Re: BrainFeeder RSS plugin - alpha release
Post by: Joachim Müller on March 14, 2009, 12:17:49 pm
No leetspeak (http://en.wikipedia.org/wiki/Leet) allowed here!
Title: Re: BrainFeeder RSS plugin - alpha release
Post by: halnat on March 18, 2009, 11:22:16 pm
Hey, so I did as instructed uprgade:
http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#upgrade
to cpg1.4.21.
But the plugin still does not work :-(
http://www.svetfotek.net/rss.php?fid=4
and there arose the problem :-(
Everywhere where we had some Smail shows something else.
Example:
http://www.svetfotek.net/displayimage-11748.html

This: http://svetfotek.net/smaily/xchat/72.gif is shown as http://www.svetfotek.net/images/thumbnails.gif
   
Where there may be a problem?
Tahnk you
Hi Goman,
I'm sorry you are experiencing problems with the plugin.

When I click on your rss.php link above, the browser returns a blank page, however by viewing the source of that page, I see some HTML code that cannot have been generated by the rss.php file included with BrainFeeder. Is there any possibility that you are using a rss.php file from somewhere else?

Title: Re: BrainFeeder RSS plugin - alpha release
Post by: halnat on April 07, 2009, 01:51:37 am
Hya Natvik,

Are you planning on having a random-function in your feed?
Like random X-number of pictures of the complete album on creation of the feed.


Hi the randomizer function has now been implemented in version 0.6
Please download from the first article in the thread.


halnat
Title: Re: BrainFeeder RSS plugin - beta release
Post by: PdLrAaTgIoNnUM on April 14, 2009, 08:27:03 pm
just a little bug i've found. i have some some .mov files (VRs) in my gallery.
the feed is fine as long as the "Enclose picture" option is set to no.
but when it set to normal or original, it takes forever for the feed to load...
i guess it's because it's uploading the whole thing to the rss feed, but i dont see a reason for it. cant it just put the link in the rss body?
i noticed that this feature is important for site like facebook that unless you add this option, the picture does not show in the body of the message.
keep up the good work :)
Title: Re: BrainFeeder RSS plugin - beta release
Post by: halnat on April 14, 2009, 10:38:35 pm
just a little bug i've found. i have some some .mov files (VRs) in my gallery.
the feed is fine as long as the "Enclose picture" option is set to no.
but when it set to normal or original, it takes forever for the feed to load...
i guess it's because it's uploading the whole thing to the rss feed, but i dont see a reason for it. cant it just put the link in the rss body?
i noticed that this feature is important for site like facebook that unless you add this option, the picture does not show in the body of the message.
keep up the good work :)
Thanks for the feedback. I haven't tested it on .mov files, so I'm not completely sure how it will work. Brainfeeder locates the file by adding the prefix you have designated in the configuration screen of Coppermine and then uses an algorithm to estimate the filesize. This only happens when you include the picture, and is one possible reason for the long processing time.

If you set "enclose picture" to yes, it is only a link that is included in the feed - a RSS file can only contain text, so including the .mov file itself is not possible - use the "view source" function in your reader to see how it is. The aggregator or client program decides how the link is processed. Some aggregators will download it, some don't and some have options that let you decide. If your client is set to download included files, that is another possible reason for the long processing time.

One way to find out, is to set the feed up as a batch feed and then run rss.php without any parameters (will only output a blank screen). If this finishes rapidly and the xml file is generated, then the reason for the long processing time is that your client or aggregator is actually downloading the file.

Let me know how it works out for you and thanks for providing input. I will improve processing of other filetypes than pictures in the next release.
Title: Re: BrainFeeder RSS plugin - beta release
Post by: halnat on June 14, 2009, 12:28:22 pm
just a little bug i've found. i have some some .mov files (VRs) in my gallery.
the feed is fine as long as the "Enclose picture" option is set to no.
but when it set to normal or original, it takes forever for the feed to load...
i guess it's because it's uploading the whole thing to the rss feed, but i dont see a reason for it. cant it just put the link in the rss body?
i noticed that this feature is important for site like facebook that unless you add this option, the picture does not show in the body of the message.
keep up the good work :)

Functionality for better handling of other media that pictures has now been added to version 0.7
Now you can also set a parameter for the feed to decide whether movies etc. should be included in the feed or not.

Title: Re: BrainFeeder RSS plugin - beta release
Post by: GerX on June 27, 2009, 12:25:05 pm
I installed and configured today this plugin. But I see not a file http://www.ameland.net/coppermine/rss.php?fid=1
Title: Re: BrainFeeder RSS plugin - beta release
Post by: Nibbler on June 27, 2009, 01:55:25 pm
Read the instructions. You need to copy the file there manually.
Title: Re: BrainFeeder RSS plugin - beta release
Post by: GerX on June 27, 2009, 03:35:51 pm
Read the instructions. You need to copy the file there manually.
Thank you very much for the answer, id sit it manually but there si now a new problem Invalid channel image: Image URL missing when I set the url in the browser, in feedreader another message: No RSS URLs found!
Title: Re: BrainFeeder RSS plugin - beta release
Post by: halnat on June 27, 2009, 06:34:50 pm
I installed and configured today this plugin. But I see not a file http://www.ameland.net/coppermine/rss.php?fid=1


You need to give your feed a logo image. Do this by giving a picture a special keyword and then type this keyword into the field "Keyword for logo picture" - more here: http://www.natvik.com/bfdoc/brainfeeder_doc.html#logo_keyw
Title: Re: BrainFeeder RSS plugin - beta release
Post by: defrich on July 01, 2009, 12:14:06 pm
Hello,

I discover this plugin yesterday, and installed it .
But I have a bad result for the moment and I have no more idea to solve it,
I have configure to show a catergory (Id=2) in random with enclose picture = normal
But I have only the path to the picture on Firefox, and "The link may not point to a valid RSS source" with RSS feeds on outlook

I used Coppermine Photo Gallery 1.4.25 (stable), with PHP 5.1.6

My web site @ is http://sandema.net/Photographie
and the RSS feed @ is http://sandema.net/Photographie/rss.php?fid=1

Thanks in advance for your help!!!!
Title: Re: BrainFeeder RSS plugin - beta release
Post by: halnat on July 02, 2009, 11:22:31 am
Hello,

I discover this plugin yesterday, and installed it .
But I have a bad result for the moment and I have no more idea to solve it,
I have configure to show a catergory (Id=2) in random with enclose picture = normal
But I have only the path to the picture on Firefox, and "The link may not point to a valid RSS source" with RSS feeds on outlook

I used Coppermine Photo Gallery 1.4.25 (stable), with PHP 5.1.6

My web site @ is http://sandema.net/Photographie
and the RSS feed @ is http://sandema.net/Photographie/rss.php?fid=1

Thanks in advance for your help!!!!

Hi, there's a problem with attaching the normal picture size. Use one of the other options. I will post an update soon that will fix this problem.

If you are familiar with editing php script files, you can edit the rss.php file and delete or comment out line 350. This will fix the problem.
Sorry for the inconvenience.
Title: Re: BrainFeeder RSS plugin - beta release
Post by: defrich on July 03, 2009, 01:28:06 pm
Thanks, now it's works for this part.

Defrich
Title: Updated BrainFeeder RSS plugin
Post by: halnat on November 12, 2009, 12:26:36 am
Hi,

I have published a new version that makes it easy to create a caption with the pictures in the feeds. The caption is built by using both free text and "anchors", which are specific tags that retrieves data from coppermine or from the exif metadata in the pictures. This way your feed can include information such as date of the original picture, camera settings, name of the album and category etc. You can of course also include the caption or description from coppermine and the picture story from miniCMS. This way, it is now easy to generate content rich feeds that includes both dynamic content and meta data about the picture.

This plugin is now complete with all planned features - hopefully many of you will find it useful.
Title: Re: BrainFeeder RSS plugin
Post by: Rockas on November 13, 2009, 12:10:40 pm
I am having a problem with this plugin.
My feed page only returns this

Code: [Select]
http://www.daudiok.com/gallery/  Rockas Kane™ ©2009  en-us  720  Animals  Nature  People  Places  Series  Urban  BrainFeeder for Coppermine 1.0 by Hallvard Natvik  rogerio.paulo@live.com.pt  rogerio.paulo@live.com.pt  Fri, 13 Nov 09 04:08:32 -0700  Fri, 13 Nov 09 04:08:32 -0700   http://www.daudiok.com/gallery/albums/userpics/10001/thumb_3219024.jpg  http://www.daudiok.com/gallery/  88  33   Rockas   http://www.daudiok.com/gallery/displayimage.php?pos=-13 http://www.daudiok.com/gallery/displayimage.php?pos=-13  <table><tr><td><a href ="http://www.daudiok.com/gallery/displayimage.php?pos=-13"><img src="http://www.daudiok.com/gallery/albums/userpics/10001/normal_3219024.jpg" width="100" alt="RSS image" /></a></td><td valign="top">3219024.jpg</td></tr></table>  Rockas Kane Photography simetry  simetria    Rockas   http://www.daudiok.com/gallery/displayimage.php?pos=-12 http://www.daudiok.com/gallery/displayimage.php?pos=-12  <table><tr><td><a href ="http://www.daudiok.com/gallery/displayimage.php?pos=-12"><img src="http://www.daudiok.com/gallery/albums/userpics/10001/normal_3199574.jpg" width="100" alt="RSS image" /></a></td><td valign="top">3199574.jpg</td></tr></table>  Rockas Kane Photography stage  palco  abandono  abandoned  caima    Rockas   http://www.daudiok.com/gallery/displayimage.php?pos=-11 http://www.daudiok.com/gallery/displayimage.php?pos=-11  <table><tr><td><a href ="http://www.daudiok.com/gallery/displayimage.php?pos=-11"><img src="http://www.daudiok.com/gallery/albums/userpics/10001/normal_DSC08293_750px.JPG" width="100" alt="RSS image" /></a></td><td valign="top">DSC08293_750px.JPG</td></tr></table>  Rockas Kane Photography milão  milano  milan  piazza  san  carlo    Rockas   http://www.daudiok.com/gallery/displayimage.php?pos=-10 http://www.daudiok.com/gallery/displayimage.php?pos=-10  <table><tr><td><a href ="http://www.daudiok.com/gallery/displayimage.php?pos=-10"><img src="http://www.daudiok.com/gallery/albums/userpics/10001/normal_3176870.jpg" width="100" alt="RSS image" /></a></td><td valign="top">3176870.jpg</td></tr></table>  Rockas Kane Photography portrait  retrato  teresa  rissol    Rockas   http://www.daudiok.com/gallery/displayimage.php?pos=-9 http://www.daudiok.com/gallery/displayimage.php?pos=-9  <table><tr><td><a href ="http://www.daudiok.com/gallery/displayimage.php?pos=-9"><img src="http://www.daudiok.com/gallery/albums/userpics/10001/normal_3166772.jpg" width="100" alt="RSS image" /></a></td><td valign="top">3166772.jpg</td></tr></table>  Rockas Kane Photography Lizzard  Sardanisca    Rockas   http://www.daudiok.com/gallery/displayimage.php?pos=-8 http://www.daudiok.com/gallery/displayimage.php?pos=-8  <table><tr><td><a href ="http://www.daudiok.com/gallery/displayimage.php?pos=-8"><img src="http://www.daudiok.com/gallery/albums/userpics/10001/normal_2716484.jpg" width="100" alt="RSS image" /></a></td><td valign="top">2716484.jpg</td></tr></table>  Rockas Kane Photography praia  mar  beach  sea  fog  nevoeiro    Rockas   http://www.daudiok.com/gallery/displayimage.php?pos=-7 http://www.daudiok.com/gallery/displayimage.php?pos=-7  <table><tr><td><a href ="http://www.daudiok.com/gallery/displayimage.php?pos=-7"><img src="http://www.daudiok.com/gallery/albums/userpics/10001/normal_2904232.jpg" width="100" alt="RSS image" /></a></td><td valign="top">2904232.jpg</td></tr></table>  Rockas Kane Photography rio  mar  barco  boat  river  sea     Rockas   http://www.daudiok.com/gallery/displayimage.php?pos=-6 http://www.daudiok.com/gallery/displayimage.php?pos=-6  <table><tr><td><a href ="http://www.daudiok.com/gallery/displayimage.php?pos=-6"><img src="http://www.daudiok.com/gallery/albums/userpics/10001/normal_3133105.jpg" width="100" alt="RSS image" /></a></td><td valign="top">3133105.jpg</td></tr></table>  Rockas Kane Photography sea  mar  rocks  rochedos    Rockas   http://www.daudiok.com/gallery/displayimage.php?pos=-5 http://www.daudiok.com/gallery/displayimage.php?pos=-5  <table><tr><td><a href ="http://www.daudiok.com/gallery/displayimage.php?pos=-5"><img src="http://www.daudiok.com/gallery/albums/userpics/10001/normal_3228133.jpg" width="100" alt="RSS image" /></a></td><td valign="top">3228133.jpg</td></tr></table>  Rockas Kane Photography Fly  Mosca  Insect  Insectos    Rockas   http://www.daudiok.com/gallery/displayimage.php?pos=-4 http://www.daudiok.com/gallery/displayimage.php?pos=-4  <table><tr><td><a href ="http://www.daudiok.com/gallery/displayimage.php?pos=-4"><img src="http://www.daudiok.com/gallery/albums/userpics/10001/normal_3225859.jpg" width="100" alt="RSS image" /></a></td><td valign="top">3225859.jpg</td></tr></table>  Rockas Kane Photography fly  mosca  insect  insecto 
Any clues to fix this?

Thank you
Title: Re: BrainFeeder RSS plugin
Post by: halnat on November 13, 2009, 02:56:41 pm
Please post the link to the feed that you have issues with
Title: Re: BrainFeeder RSS plugin
Post by: Rockas on November 13, 2009, 03:02:24 pm
here you are: http://www.daudiok.com/gallery/rss.php?fid=1
Title: Re: BrainFeeder RSS plugin
Post by: halnat on November 13, 2009, 09:28:18 pm
Hi

Your copyright message appears to include invalid characters (Rockas Kane™ ©2009) Pls. try using a copyright message without accented characters or the copyright symbol.
Title: BrainFeeder RSS plugin
Post by: halnat on December 26, 2009, 02:12:33 pm
Version 1.2 posted as an attachment to the first posting in this topic.

The version available in the list of plugins on sourceforge is really old - I hope the project can update there as well
Title: Re: BrainFeeder RSS plugin
Post by: Joachim Müller on December 27, 2009, 02:49:53 pm
This is not a valid plugin, as it requires files to be copied around, hence my reluctance to look into it frequently. There's a naming convention that the attachment doesn't correlate to. I'll update asap.
Title: Re: BrainFeeder RSS plugin
Post by: Alex Revo on January 20, 2010, 07:27:18 am
How to add support of the last comments?
Title: Re: BrainFeeder RSS plugin
Post by: lineart on March 15, 2010, 09:16:04 pm
And?
Title: Re: BrainFeeder RSS plugin
Post by: Phill Luckhurst on March 15, 2010, 09:30:48 pm
Is that supposed to be a valid support request? Please tell us what you want as one word hardly does that!