RSS 2.0 / Atom 1.0 for Coppermine 1.3.x plugin
Posted by mypapit on 7 Nov 2005 in Open Source, Other Downloads, Other Programming Language, Personal Project, RSS-ATOM
|
|

I’ve made some improvements over my previous Coppermine plugin.
I’ve added Atom 1.0 support and picture caption to the published feed. I’ve also altered the default feed to publish the latest 10 photos instead of 6.
Well, glad to have a plugin that can publish both RSS and Atom feed in Coppermine 1.3.x
old Download links :
Download Coppermine RSS/ATOM plugin here:
*Note that this plugin worked under Coppermine 1.4.x also, but it is untested with PHP 5.x.
Keep updated with this website! : Subscribe to your email
WP Cumulus Flash tag cloud by Roy Tanck requires Flash Player 9 or better.














December 3rd, 2005 at 12:50 pm
I just realised that Yahoo Media RSS extension (mRSS) has enabled me to view my photo gallery in slide show in My Yahoo!. This is because I?ve included Yahoo mRSS extension as part of my experimental Coppermine RSS/ATOM plugin . You can see the screenshot of ?My Yahoo!? here when it reacted on RSS feed that contain mRSS extension. The normal RSS/ATOM feed subscription is on the right, while the mRSS-enabled feed is in slideshow mode.
August 21st, 2006 at 8:04 am
RSS/Atom plugin pre Coppermine, ?o sa n?ramne hod?, preto?e ?tandardne nem? v sebe zahrnut? syndik?ciu novo pridan?ch fotografi?. In?tal?cia je naozaj primit?vna, sta?? stiahnut? PHP s?bor nakop?rova? do root adres?ra in?tal?cie fotogal?rie a od toho momentu
January 14th, 2007 at 12:00 am
RSS??????????????????????????? http://blog.mypapit.net/2005/11/rss-20-atom-10-for-coppermine-13x-plugin.html ??????UTF-8?EUC-JP????????????????/???????????????? $result = mysql_query(”SELECT pid,ctime,title,keywords,filepath,filename,caption,filesize, pwidth,pheight FROM
November 13th, 2005 at 2:31 am
[...] Hello guys,I just wrote RSS 2.0 and Atom 1.0 plugin for Coppermine, it is simple and easy to use. Please try it, and give me some constructive comments. I've use it on my personal gallery here : http://photos.mypapit.netAnnounce url : http://blog.mypapit.net/2005/11/rss-20-atom-10-for-coppermine-13x-plugin.htmlDownload here :http://mypapit.net/pub/cpg_RSS2_Atom10_Plugin_2.0.zip [...]
November 28th, 2005 at 1:50 pm
[...] This is because I’ve included Yahoo mRSS extension as part of my experimental Coppermine RSS/ATOM plugin. [...]
January 8th, 2006 at 11:58 am
any update on this plugin to be compatible 1.4.x ?
January 15th, 2006 at 7:54 am
The links to your RSS/ATOM plugin appear to be broken.
I sure would like to investigate this.
Thanks
djd
March 15th, 2006 at 5:01 pm
is it possible to randomly get the photos from coppermine?
March 22nd, 2006 at 2:11 am
Thanks for making this wonderful RSS/ATOM script, had to make some tweaking to make this do what I need.
here are the following parameters that you can pass to the url:.
l: limit query results to specified number
k: search pictures with specified keywords
a: display results from specified album only, use album IDs which are located on the front page of gallery …
s: sort displayed results, available options are: rating, title, hits, rand
here is an example: xfeed.php?s=rand&a=5&k=cars
this will display random images that match kekyword “cars” from album #5
in ver. 2.1
remove line 121 and place the following code:
// limit query results
$upperlimit = mysql_real_escape_string((isset($_REQUEST['l']) ) ? intval($_REQUEST['l']) : 10);
// search with keywords
if(isset($_REQUEST['k'])){$search_keyword = “keywords like ‘%”.mysql_real_escape_string($_REQUEST['k']).”%’”; $wheretmp=”WHERE”; $andtmp=”AND”;} else {$search_keyword=”"; $andtmp=”";}
// search with album ID “aid”
if(isset($_REQUEST['a'])){$search_album = $andtmp.” aid=”.mysql_real_escape_string($_REQUEST['a']); $wheretmp=”WHERE”;} else {$search_album = ”;}
// sort by picture ratings “pic_rating”
if($_REQUEST['s']==’rating’){$sorting = “pic_rating DESC, votes DESC”;}
elseif($_REQUEST['s']==’title’){$sorting = “title ASC”;}
elseif($_REQUEST['s']==’hits’){$sorting = “hits DESC”;}
elseif($_REQUEST['s']==’rand’){$sorting = “rand()”;}
else {$sorting = “pid DESC”;}
$result = mysql_query(”SELECT pid,ctime,title,keywords,filepath,filename,caption,filesize, pwidth,pheight FROM {$CONFIG['TABLE_PICTURES']} $wheretmp $search_keyword $search_album ORDER BY $sorting LIMIT $upperlimit”);
Cheers !
Victor
P.S.
my PHP skills are rusty :-) so use this at your own risk,
hopefully author of the RSS/ATOM script can release an update and place the hack in there.
March 22nd, 2006 at 10:22 am
Springroll,
the random mode would work if you try the to do the thing mentioned above.
May 22nd, 2006 at 10:56 pm
Victor, thanks for the suggestion :)
October 24th, 2006 at 2:51 pm
[...] Napisa? nolag16 Czy mo?na zrobi? aby nasza galeria obs?ugiwa?a RSS ?? Czy jest gotowy plugin ? Prosz? o pomoc. Probowalem uruchomic to co proponowal akuku, ale zamieszanie troche w watku i ogolnie to mi sie nie udalo :D Ale nie poddalem sie, poszukalem w google i oto uruchomilem cos takiego: http://blog.mypapit.net/2005/11/rss-…3x-plugin.html link bezposredni do pobrania skrytpu: http://mypapit.net/pub/cpg_RSS2_Atom10_Plugin_2.1.zip Skrypt obsluguje RSS Feed i Atom, dziala ladnie w mojej galerii (wersja 1.4.8, z 1.4.9 tez pewnie bedzie pracowac). Istalacja jest dosc prosta, w paczce ze skryptem jest obok instrukcja jak zainstalowac, gdyby ktos potrzebowal pomocy, to pisac na forum i podpowiem :) __________________ a tu jest moja fotogaleria [...]
November 10th, 2006 at 6:40 am
Could this also be used to put the last comments into the feed ?
February 3rd, 2007 at 9:02 am
[...] :: < ▼ AcidSearch ã« Google Map æ¤œç´¢ã‚’è¿½åŠ ã—よㆠ☉ Coppermine Photo Gallery ã‚’ RSS 出力ã™ã‚‹æ–¹æ³• Coppermine Photo Gallery ã«ã¦ RSS Feed を出力ã™ã‚‹æ–¹æ³•ã¯ä»¥ä¸‹ã®é€šã‚Šã€‚ ダウンãƒãƒ¼ãƒ‰ãƒšãƒ¼ã‚¸ã‚’é–‹ã â—RSS 2.0 / Atom 1.0 for Coppermine 1.3.x plugin を上記 URL ã‹ã‚‰ãƒ€ã‚¦ãƒ³ãƒãƒ¼ãƒ‰å¾Œã€xfeed.php ã‚’ä»»æ„ã®ãƒ•ァイルåã«ãƒªãƒãƒ¼ãƒ 。(ex: rss.php ãªã©) â—ファイルをエディタã§é–‹ã„㦠UTF-8 を検索ã—㦠EUC-jp ã«å¤‰æ›´ã€‚ *coppermine自体ãŒEUCã§é‹ç”¨ã—ãªã„ã¨æ–‡å—化ã‘ã™ã‚‹ã®ã§ã“ã®ãƒ•ァイルもEUCã¨ã™ã‚‹ã€‚è¨˜è¿°ã¯æ•°ã‚«æ‰€ã‚りã¾ã™ã€‚ â—ファイルã®ã‚¨ãƒ³ã‚³ãƒ¼ãƒ‰ã‚’ EUC/Unix(LF) ã§ä¿å˜ã€‚ â—ファイルをcoppermineã®ç¬¬ä¸€éšŽå±¤ã¸ã‚¢ãƒƒãƒ—ãƒãƒ¼ãƒ‰ã€‚ *パーミッションを 644 ã«å¤‰æ›´ã€‚ â—ãã®ãƒ•ァイルã«ã‚¢ã‚¯ã‚»ã‚¹ã€‚(RSS Feed を確èª) â—RSS å†…ã®æƒ…å ±ã‚’ä¿®æ£ã—ãŸã‘れã°ãƒ•ァイルを開ã„㦠該当ã™ã‚‹ print “〜〜〜〜”; ã‚’ä¿®æ£ã€‚ â—ブラウザ㧠RSS ã‚’èªè˜ã•ã›ã‚‹ãŸã‚ã«ã€themes/ã«å…¥ã£ã¦ã„る利用ã—ã¦ã„るテーマファイル㮠template.html を探ã—ã¦é–‹ã meta ã‚¿ã‚°ã®ä¸¦ã³ã« <link rel=”alternate” type=”application/rss+xml” title=”RSS Feed” href=”ã‚ãªãŸã® RSS Feed ã®URL を記述ã—ã¦ãã ã•ã„。” /> ã‚’è¿½åŠ ã€‚ *<>ã¯è‹±æ•°åŠè§’ã¸ç›´ã—ã¦ãã ã•ã„。 â—フォトギャラリーã«ã‚¢ã‚¯ã‚»ã‚¹ã€‚ 3 views/day 2007.01.13 [...]
February 20th, 2008 at 10:09 pm
Hi the vanilla Xfeed is great and I have used it on my site. It allows PicLens to view the images as well which is great IMHO. Not being very up on PHP is there a way to feed all the images from the gallery rather than just the ‘x’ most recent?
Thanks for a great plugin
April 15th, 2008 at 4:10 pm
Thanks for the plugin, as said by Colin, I also would need the possibility to feed all the images and not just the x most recent. Should be good to enter an album and view the album’s images using piclens…
Is that possible?