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






NewsPod

Daily programme highlights from BBC Radio News. Interviews and reports from BBC Radio 1, BBC Radio 4, BBC Radio 5 live, the BBC Asian Network and the BBC World Service.


News for Rugby - 7 days in 7 mins

Sue Curtis rounds up the news from across Rugby & East Warwickshire. Updated every seven days.


Sportsweek

Garry Richardson interviews the biggest names in sport. Sony award-winning sports journalism from BBC Radio 5 Live. Broadcast live on Sundays at 9am.


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