PLUGIN: BD FrogR

Feed 18 posts, 4 voices

Avatar
343 posts

A Flikr plugin for Frog CMS. Enjoy : http://frog.publishpath.com/plugin-bd-frogr

 
Avatar
343 posts

moved docs to my new page: frog.bebliuc.ro

 
Avatar
83 posts

nice one! cool that someone tries to expand frog! :)

 
Avatar
343 posts

FrogR v0.7 beta has been updated to FrogR v1.0.0 : http://frog.bebliuc.ro/articles/2008/06/15/plugin-bd-frogr-v1-0-0-slimbox.html . Now using slimbox.

 
Avatar
1493 posts

Gorgeous, Bd! Two questions:

  1. Do you still have the old gallery version available? or is it "withdrawn"?
  2. Can your Slimbox plugin be used without the Flickr feed? or would that kind of gallery plugin be different?

Thanks! Will update the plugins on Frog page soon!

 
Avatar
343 posts
  1. Do you mean the carousel ? No, because it wasn't playing nice with IE
  2. Slimbox withouth FlickFeed? Of course. You just have to place in your header : <?php js_frogr(); ?> , and for images to use Slimbox , use the standard syntax : <a href="http:///blablabla.bla/img.jpg" rel="slimbox">Text or image like <img src=""></a> This should do the trick.
 
Avatar
1493 posts

That's great! Maybe you could put the info about how to use Slimbox without Flickr in your doc/readme with the plugin? I have updated the "User Plugins" info on Philippe's site.

Thanks again!

 
Avatar
343 posts

I`ll remake the docs. Thanks for the tip.

 
Avatar
343 posts

Can anybody post a userid and a set id ?

 
Avatar
343 posts

I've upgraded the download on my site. Now it supports sets of pictures from Flickr.

 
Avatar
1493 posts

A quick update - this plugin is working great! :) I have tried it with local images (without the Flickr feed), and you can see the results here. Works a treat!

One correction to the instructions in post #6, above, though. The correct syntax for linking locally is:

<a href="picture.jpg" rel="lightbox" title="Title will be Slimbox caption"><img src="thumbnail_picture.jpg" alt="Your pic's ALT text"></a>

Notice that the rel is ="lightbox" NOT slimbox. Also, if you want to group multiple photos into a set, use rel="lightbox[set]" with each of the links, and you can use anything you like for the keyword, like ...[euro2008], or whatever.

Thanks again, BD, and hope this helps!

 
Avatar
343 posts

Ups. My bad. I've made a new version of it using jquey, because my site is based on jquery, and slimbox is based on mootools. The bad thing is that they don't get together to well, so I needed a solution. I will release it soon.

 
Avatar
257 posts

Also just a note to BDesign - the function for fetching the images from Flickr, namely file_get_contents() is disabled on many servers as it has a higher security risk. Of course, if you have your own box in a rack you have your own install of PHP so it doesn't matter.

I'm trying to look at an alternative method without having to get into Server admin and will let you know if I get anywhere - from the offset it would appear that CURL would be a viable solution...

 
Avatar
257 posts

Woot!

Anyone having trouble with the PHP configuration on their server due to the use of the file_get_contents() function, try the following:

  1. Open the index.php file inside the folder 'frog/plugins/bd_frogr/'
  2. Find the line with: > $content = file_get_contents($url);

  3. Replace with: > $ch = curl_init(); > $timeout = 0; > curl_setopt ($ch, CURLOPT_URL, $url); > curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout); > curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); > curl_setopt($ch, CURLOPT_BINARYTRANSFER, 1); > $content = curl_exec($ch); > curl_close($ch);

  4. Save and enjoy the Flicks :)

 
Avatar
257 posts

grr, markdown - this confuses the hell out of me! lol

 
Avatar
257 posts

Here is the code from Step 3 above:

    $ch = curl_init();
    $timeout = 0;
    curl_setopt ($ch, CURLOPT_URL, $url);
    curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($ch, CURLOPT_BINARYTRANSFER, 1);

    $content = curl_exec($ch);
    curl_close($ch);
 
Avatar
343 posts

Interesting approach . Thanks for the contribution Andy.