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.














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. [...]
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.
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 :)
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
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 ?
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
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?