Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Flickr Image Gallery for SilverStripe


Reply


33 Posts   19431 Views

Avatar
laktek

Google Summer of Code Hacker, 76 Posts

5 July 2007 at 3:43pm

Sig : I was trying to find a good flickr icon to use for tree icon (one that scales nicely in 16x16), but didn't come across any good ones :( the flickr favicon too looks bit cluttered. Please point out if you come across any

Matt : Yeah, it would be good to move RestfulServices to Sapphire and allow to extend it with other modules. As REST becoming a standard for web apps it would be a good move. Definitely it's not just for Web Services, see how RoR uses REST to cleanup it's controllers. It would allow web apps to extend freely while following common convention.

Avatar
Sigurd

Forum Moderator, 628 Posts

5 July 2007 at 5:55pm

Good idea. How's this just to get something better than a plain white box?

The middle (flickr) f icon here:

http://farm1.static.flickr.com/199/466016073_56f84425d6.jpg?v=0

Avatar
Sigurd

Forum Moderator, 628 Posts

5 July 2007 at 6:30pm

When I tried to get this going with a fresh install of v2.0.2 it unfortunately failed. Did you recently do a change that would break this, or is it not working with 2.0.2?

I get:

Fatal error: Call to a member function getField() on a non-object in /sites/dev.silverstripe.com/smagnusson/flickrtest/mashups/code/FlickrService.php on line 102

The 2.0.2 code I'm testing isn't identical, but pretty damn close, to the dailybuilds you get.

So, can you test that you can do
wget <silverstripe dailybuild gz>
tar xzf...
wget <mashups dailybuild gz>
tar xzf...

install

does it work or not :P

Avatar
Sigurd

Forum Moderator, 628 Posts

5 July 2007 at 9:11pm

Oh, and you need an _config.php file otherwise the module isn't included ...

Avatar
Markus

Google Summer of Code Hacker, 152 Posts

5 July 2007 at 9:44pm

What about just using their favicon?
http://www.flickr.com/favicon.ico

Avatar
laktek

Google Summer of Code Hacker, 76 Posts

5 July 2007 at 9:59pm

Edited: 05/07/2007 10:00pm

And make sure you have set your API key in that config file.
FlickrService::setAPIKey('YOUR-API-CODE-GOES-HERE');

I'll update the SVN code to have a default _config.php file so then people won't get confused in setting up.

Markus : Favicon looks bit cluttered but will use the latter image Sig pointed out. It looks much nice :)

Avatar
Sigurd

Forum Moderator, 628 Posts

6 July 2007 at 9:13am

Edited: 06/07/2007 9:14am

Oh sweet.

Yeah I just made it work. I suggest making the default _config.php like this:

<?

// Visit http://www.flickr.com/services/api/keys/apply/ to get your own API key in one quick easy step.
FlickrService::setAPIKey('');

?>

I would then make the FlickrPage expose an error saying the same. One important note: If the API key is not set then have one explanation, whereas if the API key isn't valid then have a seperate error message.

Cheers! Very excited...

Avatar
Sigurd

Forum Moderator, 628 Posts

6 July 2007 at 9:17am

Markus.... I'm afriad http://www.flickr.com/favicon.ico doesn't really say "flickr" to me, plus it doesn't look like a page icon...