Internet Radio Podcast Directory Radio Playlists

By Keyword

By Location

By Genre

By Popularity
Trumix.com : Podcast : D'Arcy Norman Dot Net

D'Arcy Norman Dot Net

Language: English
Category: Society and Culture /
Visit Website

-

D'Arcy Norman Dot Net|FlickrStickr module ported to use Curl Episode

The FlickrStickr module for Drupal adds the handy Flock-like Flickr Photo Browser, making it easy peasy to add photos from Flickr to content in Drupal. But, the module uses the PHP fopen() command, which is disabled on Dreamhost's servers for security reasons. So, with some really quick hackery (more like copy-and-pastery, following this example) I ported the module to use curl instead, and it works great. It doesn't seem to be able to insert images into the TinyMCE editor, so you have to toggle back to text mode to insert an image (oh, the irony!) Basically, the "port" involved changing this: $fp= fopen("http://www.flickr.com/services/...reallylongurltruncatedhere...", "r"); while (!feof($fp)) { $buffer= fgets($fp, 4096); echo $buffer; } to this: $curler = curl_init(); $urlToCurl = "http://www.flickr.com/services/...reallylongurltruncatedhere..."); curl_setopt($curler, CURLOPT_URL, $urlToCurl); curl_exec($curler); curl_close($curler); There were 2 locations that needed changing. Just search for "fopen" and you'll find them. Use the same pattern of changes for both, and test before deploying. AttachmentSize flickrstickr.zip12.16 KB

[ Mon, 22 May 2006 19:54:46 -0700 ]


Listen

Download



Listen on your iPhone







ME GUSTA LEER
Literature
The podcast on all things literary.


Podcast Electro

Podcast electro, le meilleur de l'electro / techno / house dans un mix de 1 heure bimensuel. Podcast electro, the best of electro / techno / house in a mix of 1 hour bimonthly


Common Grind: Tales from the Driptray
Food
Common Grind is a podcast for home coffee enthusiasts, baristas, roasters and anyone else with a love of coffee. With industry interviews, machine reviews, coffee cuppings and much more. It's your one stop coffee reference.


  Powered by PenguinRadio & PodcastDirectory.com  |  About Trumix  |  Terms of use  |  FAQs  |  Contact Us