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: 19069 Views
  • tmcw
    Avatar
    8 Posts

    Re: Flickr Image Gallery for SilverStripe Link to this post

    Havnig a problem with this...

    In my controller:

       function FlickrPhotos($limit =10){
       //getting my nsid
       $flickr = new FlickrService();
       $flickr->setApiKey('MYAPIKEY');
       $me = $flickr->User('ucabwm');
       $photos = $flickr->getPhotos("", $me, 5);
       //$photos = $flickr->getPhotoSet('72157594330625954','phobo', $limit);
       return $photos;
       }

    and in my page:

          <% control FlickrPhotos %>
             <a href="$page_url"><img src="$image_url"/></a>
          <% end_control %>

    And I'm getting: Error

    The website server has not been able to respond to your request.

  • laktek
    Avatar
    Google Summer of Code Hacker
    76 Posts

    Re: Flickr Image Gallery for SilverStripe Link to this post

    Do you get this every time you reload the page or is this error is random ?

    Main reason for this is flickr service experiencing downtime, but there may be other issues such as typography errors may also be the cause for this.

    TMCW, if you are using mashups 0.1.1 the code you are currently using is revised a bit, see http://doc.silverstripe.com/doku.php?id=flickrservice for updated code.

  • tmcw
    Avatar
    8 Posts

    Re: Flickr Image Gallery for SilverStripe Link to this post

    My posts are still getting eaten by the Forum. Don't get me wrong, I like the look of it, but bugs that eat content are not friendly.

    Anyway... I get the error every time I load the page. Is there a debug mode so that I can get more information than this 500-style 'critical error' message?

  • laktek
    Avatar
    Google Summer of Code Hacker
    76 Posts

    Re: Flickr Image Gallery for SilverStripe Link to this post

    TMCW : What is the version of mashups module you are running ?
    Make sure you have the latest version 0.1.1
    Also, try updating the code as per http://doc.silverstripe.com/doku.php?id=flickrservice.

    BTW, does creating a flickrGallery page also throws the same error ?

  • tmcw
    Avatar
    8 Posts

    Re: Flickr Image Gallery for SilverStripe Link to this post

    (By the way, I've needed to modify the forum urls to reply to this post. Something's really messed up)

    And, yeah, I'm using the latest version and FlickrGallery does not return any errors.

    Code is..

    <% control FlickrPhotos.PhotoItems %>
       <a href="$page_url"><img src="http://farm1.static.flickr.com/{$image_path}_s.jpg"/></a>
    <% end_control %>

    and

       function FlickrPhotos()
       {
          $flickr = new FlickrService();
          $flickr->setAPIKey('5a8196774fe9dca3067f16098dd3cb19');
          $photos = $flickr->getPhotos("", "ucabwm", 5);
          return $photos;
       }

    in HomePage_Controller. No dice.

  • silverstripe2020
    Avatar
    Community Member
    1 Post

    Re: Flickr Image Gallery for SilverStripe Link to this post

    Hello

    I woud really appreciate some help here.

    I love SilverStripe, I love the Flickr Plugin even more.

    1) rite now what I need is Next / Back, just like the lightwindow gallery, when the images are zoomed for flickr gallery (this is super important). I read and i tried some solution you gave, but seems like this gallery code has changed, and i dont find any FlickrGallery.ss file. URGENT PLEASE

    2) Suggestion for the new FlickrGarller:
    - creating a page which will automatically pick up all the tags from your flickr accound, and display them on the page. so when a user clicks any tag from that, those pics from flickr are shown, just like your current flickr pics yby tags. only difference is the user gets to pick / click the tag of his choice..from your flickr ID tags list.

    3) Suggestion:
    - size of the thumbnail option in each of your template, so some flickr page i can have a bigger thumbnail, or as big as the page itself and choose to have a single pic displayed per page..so i dont need the users to click on the pic for bigger views, only if they need a full scale view they can click.

    IF you can do these 2 things for your new flickr updated module, WOW this would be awesome

    Thank you very much

  • fips
    Avatar
    Community Member
    2 Posts

    Re: Flickr Image Gallery for SilverStripe Link to this post

    Hey guys,

    I've got a problem with my flickrGallery:
    I don't know why but everytime someone hits the flickr-part of my page, there is only this message:

    Fatal error: Call to undefined function curl_init() in /(...)/sapphire/api/RestfulService.php on line 83

    I double-checked the config.php-file, resetted the flickr-parts of the db twice and uninstalled&reinstalled the whole modul. Also got 2 new API-Number from flickr.
    But nothing changed

    D'ya got any idea why? Other modules are working very well...

  • simon_w
    Avatar
    Forum Moderator
    467 Posts

    Re: Flickr Image Gallery for SilverStripe Link to this post

    It sounds like you don't have curl enabled.

    If you do a phpinfo(); does curl appear on it?

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