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







O2 Arsenal Podcast
Sports
Listen to all the build-up ahead of Arsenal's next match with the O2 ARSENAL PODCAST!Dan Roebuck will bring you news, interviews and features before every Arsenal fixture - plus the chance to win great prizes in our exclusive competitions.


Happy House of Hentai
Arts
The weekly show for hentai news & reviews!


Ultima Thule Ambient Music Radio
Alternative
A weekly programme of ambient and atmospheric music from across the ages and around the world, broadcast on Australian public radio since 1989. Ultima Thule features a blend of ambient, trance, drone and chillout electronica, spacemusic, ancient, mediaeva


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