Easy RSS feed & PicLens - Page 6 Easy RSS feed & PicLens - Page 6
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Easy RSS feed & PicLens

Started by colinsp, February 17, 2008, 09:58:35 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

zigy_dk

This is a great add-on. But if you like me are running a strictly privat gallery, you will need to have the rss.php file check if the user is actually logged in.
Just paste this chunk of code that came from the index.php file, just after require init.php line
------------
if (!USER_ID && $CONFIG['allow_unlogged_access'] == 0) {
        $redirect = $redirect . "login.php";
        header("Location: $redirect");
        exit();
    }

-----------
Then users will be rediected to the login page.

andiwe

Thanks zigy_dk, your fix will be included in next release.  :)
Thanks csmwww for your briliant install tutorial.

I will post an update this week - stay tuned.
Andi

--- for Cooliris Piclens CPG Plugin (Easy RSS Mod) check out my Website Link ---

andiwe

Hi volks,

latest beta is online now (b018).  ;D
(see my website link)

Please review Readme.txt for instructions.
You have to replace all files included in package and reinstall the plugin in cpg.

Thanks to all of you helping me.
Please report all bugs you encounter e.g. per PM, Mail (cooliris [at] nordschleifenbilder [dot] de) or in this thread.
Andi

--- for Cooliris Piclens CPG Plugin (Easy RSS Mod) check out my Website Link ---

romank

Hab mal ein bisschen gespielt um mit dem genialen Plugin von andiwe auch FLV-Videos anzeigen zu können.

Es waren nur ein paar kleinere Änderungen am Code nötig.

In diesem rss.php wird der Mime-Typ richtig gesetzt.
$mime_content = cpg_get_type($full_url);
$mimetype = $mime_content['mime'];

Es werden die Thumbnails von Coppermine verwendet.
d.h. Wenn es für einen Filetype kein Thumb gibt (videos), wird das Thumb aus dem images folder genommen.
(wie zum Beispiel thumb_mov.jpg)
$thumb_url  = "".get_pic_url($picture,'thumb');
Dann noch folgende 2 Änderungen
// $item .= '<media:content url="'.$gallery_home_url.$normal_url.'" type="image/jpeg" />';
  $item .= '<media:content url="'.$gallery_home_url.$normal_url.'" type="' . $mimetype . '" />';


// $item .= '<media:content url="'.$gallery_home_url.$full_url.'" type="image/jpeg" />';
$item .= '<media:content url="'.$gallery_home_url.$full_url.'" type="' . $mimetype . '" />';


Zuvor sollte man allerdings nach dieser Anleitung den FLV Player einbinden.
http://forum.coppermine-gallery.net/index.php/topic,34182.0.html
Wobei video/x-shockwave-flash statt application/x-shockwave-flash verwendet werden sollte.
Sonst hat bei mir Cooliris die FLV-Videos nicht abspielen können.

romank

Quote from: romank on March 12, 2009, 08:56:59 PM
Hab mal ein bisschen gespielt um mit dem genialen Plugin von andiwe auch FLV-Videos anzeigen zu können.

Es waren nur ein paar kleinere Änderungen am Code nötig.

In diesem rss.php wird der Mime-Typ richtig gesetzt.
$mime_content = cpg_get_type($full_url);
$mimetype = $mime_content['mime'];

Es werden die Thumbnails von Coppermine verwendet.
d.h. Wenn es für einen Filetype kein Thumb gibt (videos), wird das Thumb aus dem images folder genommen.
(wie zum Beispiel thumb_mov.jpg)
$thumb_url  = "".get_pic_url($picture,'thumb');
Dann noch folgende 2 Änderungen
// $item .= '<media:content url="'.$gallery_home_url.$normal_url.'" type="image/jpeg" />';
  $item .= '<media:content url="'.$gallery_home_url.$normal_url.'" type="' . $mimetype . '" />';


// $item .= '<media:content url="'.$gallery_home_url.$full_url.'" type="image/jpeg" />';
$item .= '<media:content url="'.$gallery_home_url.$full_url.'" type="' . $mimetype . '" />';


Zuvor sollte man allerdings nach dieser Anleitung den FLV Player einbinden.
http://forum.coppermine-gallery.net/index.php/topic,34182.0.html
Wobei video/x-shockwave-flash statt application/x-shockwave-flash verwendet werden sollte.
Sonst hat bei mir Cooliris die FLV-Videos nicht abspielen können.


Sorry did recognize that this is an english Forum.
So once again in english.

Tried to show in Cooliris also FLV-Videos
Only small modification where necessary for that.

in this rss.php i set the Mime-Type correct
$mime_content = cpg_get_type($full_url);
$mimetype = $mime_content['mime'];

The thumbnails from Coppermine will be used. If no thumnail is available for some extensions (like videos) it uses from the images folder thumbs like
thumb_mov.jpg
$thumb_url  = "".get_pic_url($picture,'thumb');
Then 2 small changes
// $item .= '<media:content url="'.$gallery_home_url.$normal_url.'" type="image/jpeg" />';
  $item .= '<media:content url="'.$gallery_home_url.$normal_url.'" type="' . $mimetype . '" />';


// $item .= '<media:content url="'.$gallery_home_url.$full_url.'" type="image/jpeg" />';
$item .= '<media:content url="'.$gallery_home_url.$full_url.'" type="' . $mimetype . '" />';


Bevor use this mod to show FLV-Files in Coppermine
http://forum.coppermine-gallery.net/index.php/topic,34182.0.html
Only use "video/x-shockwave-flash" instead of "application/x-shockwave-flash"
otherwise Cooliris does not play the FLV-File at my site.

smartbyte


Hi guys,

sorry this might be a stupid question, but is there any chance that this plugin gets updated to the 1.5 version?

I am running 1.5.3 and I got it working (raw DB edits, etc.) But in the end it showed me a lot of pitures, but not the ones for the specific album I was in, so I assume, that it cannot be that hard to update this plugin, but as I am not a developer, and I don't know the differences between 1.4 and 1.5 (even not plugin wise), I haven't got a clue how much work it is...

But yeah an answer would be appreciated, if someone of the developers is working on this, or had a look how much work it would be...

Thanks, Joern.

phill104

As I am sure you are aware, many plugins are user contributions so if the community come up with a version for 1.5.x then it will be done. If you have the ability give it a go, everyone can feel free to try. Otherwise all you can do is wait an hope that someone finds this plugin useful enough for them to put in the effort and upgrade it.

Sorry if that is not the answer you wanted, that is just how it is.
It is a mistake to think you can solve any major problems just with potatoes.

Joachim Müller


smartbyte


Thanks for this advice. The thread you send is very interesting, because it implies, that everyone who is on this board has to be able to program PHP, so "normal" user experience or wishes are ignored.

Just think of these cases:
You need a lawyer and he tells you, that if you are not knowing all the laws you are just stupid, and should just forget about your case and paid the money, or
you need a medical advice or did something unusual to your body and the doctor tells you, that this is your body you have to know him best...

Man I was just asking, IF anybody has upgraded this Module or might be working on it.

No offense!

Joachim Müller

...and we don't want this thread to get cluttered with requests for this plugin to be ported, can't you understand that? If you're not a programmer and need it badly, then start a thread of your own and request it or hire someone to code it for you, but stop cluttering the thread that deals with exactly one thing: the plugin "Easy RSS feed & PicLens" for cpg1.4.x. There is no use in arguing about board rules and support policies. You haven't paid attention to board rules at all although you agreed to respect them when signing up. They even get displayed at the top of this screen when you compose a posting. Stop breaking the rules, will you?