Home     Article Archive     RSS     Contact Search

Popular Posts
Jenna Haze
Jennifer Lopez
Iphone
Fried Chicken
Karthik Calling Karthik
Armored
Www.yahoo.com
Surrogates

Blogroll
Fitness Garments
Jewelry Rock
Footwear Stuff
Apparel Pulse
Strife Clothing
Cardiogram Central
Orange Sheep
Wow Vendors
Seasonal Clothing
Herbal Babies
Hair Split
Skincare Life

Marketplace

Flickr

FlickrThe importation of Your Photos of Flickr In Your Site of Drupal

The unit of Flickr for Drupal is good, but I wanted to take these pictures and the include of my own site as the knots. Also, I wanted that a process that would seize itself automatically pictures instead of fact cut me and sticks pictures in my site. This is how to combine these elements in a body and this can help you if you want to do the same thing.

There is something that you have go out there and find (and some I include to the under that) :

  • Drupal the site drives
    • Flickr modulates
  • Flickr counts
    • Flickr API key

You need to construct a happy type to support to have it and post these pieces of mustered content. I constructed a typical content, a Media, hold a returned copy of the picture and some information supporting. The page view is ************ by my process of knot stop. I added a source field to hold a reference to the picture; this will be verified when the data are imported through the API for that you do not import multiple copies of the same picture. To do this easier one, I used the capacity of Importation/Exportation to do a copy of the typical content of CCK that you can import in your site.

There is THUNDER available elements of the Flickr API. In my example, I seized myself basic principles of the picture and then I returned and seized me data of "exif" for these pictures. The Exif has the potential one to hold all the data of your cameras: the model, the resolution, the news of palette. In my case, I sniff out the news model and I added a field called of the "merchandise" in the Media types to hold equipment and the software that is used to create my pictures. I have one the tool of research of product secured in Commerasant.Com. I take these information model, stored in the field of "merchandise" and I used it to do the link to the link of courses.com.

After, I constructed a knot caliber for this typical content. It formats the knot and organizes its data. What it does it also does the link to the search page of Product using the merchandise field.

What you can do with this content typical is constructed a view for post the knots. The see can be used as an autonomous page; or use a pad in a panel or a somewhere else of your trace.

How do you obtain your data of the API? You can construct an autonomous page with a priming includes. Or, you could construct an entire unit around this action. Personally, I less to keep my unit account as low as I cannot be punished for -- too many units and you have a huge weight to pack about when loads with the pages. In my case, I went the road more possible easy: I did a page and added a qualified one for that the functional character of importation easily is not called. If it is called additional times, the source field should save your bacon -- it will compare the pictures that you already have vs. these view of the data of API. When you execute this code, calling the meddias_le noeud_flickr () Will clear the call of API, the check of reproduction and the knot economy.

You can take the code and construct over -- adds again fields to the happy type, add the functional character, extract the API for more of information.

More of information and the source encode

Posted on January 9, 2010.
Share |

Comments

There are no comments.

Leave a Comment

Your Name
Your Email
Comments
Human Check. Type 7126.