RSS 2.0 / Atom 1.0 for Coppermine 1.3.x plugin

advertisement logo

 

Coppermine 1.3.x Plugin RSS 2.0

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 :

  1. zip package
  2. tar.gz package

Download Coppermine RSS/ATOM plugin here:

  1. Mirror #1
  2. Mirror #2
  3. Mirror #3

*Note that this plugin worked under Coppermine 1.4.x also, but it is untested with PHP 5.x.

Bookmark this article These icons link to social bookmarking sites where readers can share and discover new web pages.
  • digg
  • YahooMyWeb
  • NewsVine
  • Netvouz
  • Reddit
  • Spurl
  • Furl
  • del.icio.us
  • StumbleUpon
  • Technorati
  • TwitThis

Keep updated with this website! : Subscribe to your email

Recommended Reading

16 smashing comments for this post.

  1. Coppermine RSS 2.0/Atom 1.0 plugin Said:

    [...] 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 [...]

  2. mypapit gnu/linux blog » Yahoo Media RSS extension (mRSS) and Photo Galleries Said:

    [...] This is because I’ve included Yahoo mRSS extension as part of my experimental Coppermine RSS/ATOM plugin. [...]

  3. Planet MYOSS: The Malaysian Open Source Community Speaks Said:

    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.

  4. energy0m Said:

    any update on this plugin to be compatible 1.4.x ?

  5. darrell duffy Said:

    The links to your RSS/ATOM plugin appear to be broken.
    I sure would like to investigate this.
    Thanks

    djd

  6. Springroll Said:

    is it possible to randomly get the photos from coppermine?

  7. Victor Bludov Said:

    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.

  8. Victor Said:

    Springroll,
    the random mode would work if you try the to do the thing mentioned above.

  9. mypapit Said:

    Victor, thanks for the suggestion :)

  10. Peter ?losar weblog Said:

    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

  11. Robimy w?asn? galerie www - Coppermine Photo Gallery - Page 36 - Aparaty Cyfrowe - Cyberfoto Galeria, Forum, Recenzje, Opinie, Testy, Rankingi. Said:

    [...] 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 [...]

  12. Doc Gonzo Said:

    Could this also be used to put the last comments into the feed ?

  13. ???????? Said:

    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

  14. Coppermine Photo Gallery を RSS 出力する方法 - :: Mac.EGOism.jp :: Said:

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

  15. Colin Spencer Said:

    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

  16. Andrea Said:

    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?

Leave a Comment

Subscribe by email

Enter your Email