Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Flickr Image Gallery for SilverStripe

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

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

Page: 1 2 3 4 5
Go to End
Author Topic: 19243 Views
  • laktek
    Avatar
    Google Summer of Code Hacker
    76 Posts

    Re: Flickr Image Gallery for SilverStripe Link to this post

    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.

  • Sigurd
    Avatar
    Forum Moderator
    628 Posts

    Re: Flickr Image Gallery for SilverStripe Link to this post

    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

  • Sigurd
    Avatar
    Forum Moderator
    628 Posts

    Re: Flickr Image Gallery for SilverStripe Link to this post

    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

  • Sigurd
    Avatar
    Forum Moderator
    628 Posts

    Re: Flickr Image Gallery for SilverStripe Link to this post

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

  • Markus
    Avatar
    Google Summer of Code Hacker
    152 Posts

    Re: Flickr Image Gallery for SilverStripe Link to this post

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

  • laktek
    Avatar
    Google Summer of Code Hacker
    76 Posts

    Re: Flickr Image Gallery for SilverStripe Link to this post

    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

  • Sigurd
    Avatar
    Forum Moderator
    628 Posts

    Re: Flickr Image Gallery for SilverStripe Link to this post

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

  • Sigurd
    Avatar
    Forum Moderator
    628 Posts

    Re: Flickr Image Gallery for SilverStripe Link to this post

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

    19243 Views
Page: 1 2 3 4 5
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.