flickrShow plugin

Creating and modifying plugins.
User avatar
gimmel
Regular
Posts: 118
Joined: Tue Jul 25, 2006 2:44 pm
Location: Quickborn/Germany
Contact:

flickrShow plugin

Post by gimmel » Mon May 18, 2009 2:37 pm

I'm done! Finally!
I did a new plugin to show the latest pictures from a flickr photostream because the other plugins did not work or were to hard to handle. It's completly configurable, has a nice list output with date and title (on hover) and is made of clean (X)HTML. The CSS to style the (image) list is added by a bundled event plugin.

Download flickrShow

User avatar
garvinhicking
Core Developer
Posts: 30020
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: flickrShow plugin

Post by garvinhicking » Mon May 18, 2009 3:19 pm

Hi!

Thank you very much for sharing. I would like to use that new plugin to supersed serendipity_plugin_flickr in Spartacus.

Ultimately, a lot of the configuration options could stay the same (or if they mean the same, but are called differently, unify their name). This would allow old users of the plugin to simply upgrade the old plugin to use the new and clearer functionality.

We would only need to analyze if the old plugin can do anything that the new one cannot do (i don't think there is something left).

I'm a bit swamped with work right now, but I think this would be the best way. Until this has happened, I urge everyone to try out your plugin. If you or anyone else wants to give a hand in unifying the old plugin, that would be much appreciated of course.

All in all, your new plugin is much clearer to read and doesn't have that nasty PEAR-like dependency that always fails on people.

Thanks,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/

User avatar
gimmel
Regular
Posts: 118
Joined: Tue Jul 25, 2006 2:44 pm
Location: Quickborn/Germany
Contact:

Re: flickrShow plugin

Post by gimmel » Mon May 18, 2009 5:38 pm

Thanks Garvin, I am very pleased to hear that.
What do you exactly mean with configuration options? Just the option titles or the values that are stored in the database?
Do you want it as an update to the existing serendipity_plugin_flickr with same name, parameters, etc. that still works after an automatic update? I don't think that would work. The old plugin used the email address, the new one uses the username. People could be confused if their running configuration fails after an Spartacus update. That's the reason why I chose to give it a different name.
What do you think?

User avatar
gimmel
Regular
Posts: 118
Joined: Tue Jul 25, 2006 2:44 pm
Location: Quickborn/Germany
Contact:

Need for bug reports!

Post by gimmel » Mon May 18, 2009 5:50 pm

By the way: It would be cool if some people could help to check the plugin functions with different browsers (Windows+Linux). I only tested with OS X and it worked well with Firefox and Opera. Only Safari has a bug with showing date and title on hover (CSS: .serendipity_plugin_flickrshow dd:hover+dt), but that's repaired in the actual Safari Webkit version and will be hopefully released soon.

Even the plugin options themself could contain bugs, because I only had a few hours a week to work on this thing. That's a bug magnet…

So please help to make this a bugless, helpful plugin.

User avatar
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Re: flickrShow plugin

Post by judebert » Mon May 18, 2009 9:22 pm

Do you need someone to install on Linux, or to visit the plugin with a Linux browser? I can visit, but I can't install. If you need visits, just tell me where to go...
Judebert
---
Website | Wishlist | PayPal

User avatar
gimmel
Regular
Posts: 118
Joined: Tue Jul 25, 2006 2:44 pm
Location: Quickborn/Germany
Contact:

Re: flickrShow plugin

Post by gimmel » Mon May 18, 2009 10:18 pm

Both of this should be tested:
  • Browser compatibility: Are there any browsers that have problems to show the flickr images „the right way“? (Firefox does it right)
  • Plugin functions: Do all configuration options work like they should (image sizes, flickr/jpg links, date/title display on hover, lightbox function, RSS/flickr links, cache)?

User avatar
garvinhicking
Core Developer
Posts: 30020
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: flickrShow plugin

Post by garvinhicking » Tue May 19, 2009 9:23 am

Hi!

gimmel wrote:Thanks Garvin, I am very pleased to hear that.
What do you exactly mean with configuration options? Just the option titles or the values that are stored in the database?


Yeah, I was mainly speaking about the configuration NAMES, so that when the plugin would be renamed, the values would carry over.

I wasn't aware of that username vs. email change. Isn't it possible to also use an email lookup, for those that have the plugin installed? Which would be disabled, if it's empty (by default)?

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/

User avatar
gimmel
Regular
Posts: 118
Joined: Tue Jul 25, 2006 2:44 pm
Location: Quickborn/Germany
Contact:

Re: flickrShow plugin

Post by gimmel » Tue May 19, 2009 11:29 am

Ok, here is a new version. The internal plugin name is now serendipity_plugin_flickr. It accepts both username and email to log in (depending on a @ in the string), incompatible values for targetimgsize are converted to valid values and the phpFlickr class has been updated to the actual version.

There should be no problems while updating from previous versions. But I can't test it, because I'm not able to install the old one.

Download new serendipity_plugin_flickr

btw: Attachment upload does not work for me. „Add the file“ just goes to a blank page. I tried with Safari and Firefox.
Last edited by gimmel on Tue May 19, 2009 1:26 pm, edited 1 time in total.

User avatar
garvinhicking
Core Developer
Posts: 30020
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: flickrShow plugin

Post by garvinhicking » Tue May 19, 2009 12:03 pm

Hi!

I believe the link you gave is to the old version?

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/

User avatar
garvinhicking
Core Developer
Posts: 30020
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: flickrShow plugin

Post by garvinhicking » Tue May 19, 2009 12:11 pm

Hi!

Another thing, when I tested the plugin, I didn't get any output. But I think my username and API key/secret are right.

Maybe we could get more error output, when something is wrong?

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/

User avatar
gimmel
Regular
Posts: 118
Joined: Tue Jul 25, 2006 2:44 pm
Location: Quickborn/Germany
Contact:

Re: flickrShow plugin

Post by gimmel » Tue May 19, 2009 1:27 pm

garvinhicking wrote:I believe the link you gave is to the old version?

Damn, you're right. I changed the link now to the correct download location. Sorry.

User avatar
gimmel
Regular
Posts: 118
Joined: Tue Jul 25, 2006 2:44 pm
Location: Quickborn/Germany
Contact:

Re: flickrShow plugin

Post by gimmel » Tue May 19, 2009 2:36 pm

garvinhicking wrote:Maybe we could get more error output, when something is wrong?

I built in some error checking now, but I did not find out yet how to check if the API key is correct.

Download serendipity_plugin_flickr_1.02

User avatar
garvinhicking
Core Developer
Posts: 30020
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: flickrShow plugin

Post by garvinhicking » Tue May 19, 2009 4:25 pm

Hi!

Turns out I used the wrong username (I thought the "URL" part of it was required, but turns out I need to enter my name like "garvin [flickr censors. still.]").

I committed it to CVS, seems to work fine. Only the CSS is messed up on my page, but I figure that's my problem :)

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/

User avatar
gimmel
Regular
Posts: 118
Joined: Tue Jul 25, 2006 2:44 pm
Location: Quickborn/Germany
Contact:

Re: flickrShow plugin

Post by gimmel » Tue May 19, 2009 4:38 pm

garvinhicking wrote:Only the CSS is messed up on my page, but I figure that's my problem :)

If the template css contains the string "serendipity_plugin_flickr", no CSS will be added by the plugin. That's if you want to style it on your own. (But it's not easy, it's the trickiest CSS I ever did. Floating <dd> with overlapping <dt>. Phew!)

User avatar
gimmel
Regular
Posts: 118
Joined: Tue Jul 25, 2006 2:44 pm
Location: Quickborn/Germany
Contact:

Re: flickrShow plugin

Post by gimmel » Wed May 20, 2009 9:37 pm

Thanks to Garvin, he found a bug/inconsistency with another flickr plugin.

Download serendipity_plugin_flickr_1.03

Post Reply