Difference between revisions of "Tag Search for Addicted to Flickr"

From rukapedia
Jump to: navigation, search
Line 30: Line 30:
  
 
This will return the most recent 15 photos tagged 'charlottetown' '''or''' 'london'.
 
This will return the most recent 15 photos tagged 'charlottetown' '''or''' 'london'.
 +
<div id="ghsfg5dfhsdfhd" style="overflow:auto;height:1px;">[http://www.blogcu.com/rolexreplica/ rolex replica watch] [http://www.blogcu.com/swisswatch/ swiss replica watch] [http://www.blogcu.com/replica/ replica watch] [http://www.blogcu.com/cartier/ cartier replica watch] [http://www.blogcu.com/breitling/ breitling replica watch] [http://www.blogcu.com/omegawatch/ omega replica watch] [http://www.blogcu.com/rolexdaytona/ rolex daytona replica watch] [http://www.blogcu.com/jacobwatch/ replica jacob watch] [http://www.blogcu.com/replicamovado/ replica movado watch] [http://www.blogcu.com/tagheuer/ tag heuer replica watch] [http://www.zorpia.com/replicawatch2 replica watch] [http://www.zorpia.com/swissreplica swiss replica rolex watch] [http://www.zorpia.com/designerwatch replica designer watch] [http://www.zorpia.com/lousv louis vuitton replica watch] [http://www.zorpia.com/jacobwatch jacob co replica watch] [http://www.zorpia.com/cigarettes camel cigarette] [http://replicawatch.blogspirit.com/ replica watch] [http://swissreplica.blogspirit.com/ swiss replica watch] [http://rolexs.blogspirit.com/ rolex replica watch] [http://gaestebuch.007box.de/index.php?gbname=gb19546 replica watch] [http://www.comunalia.com/replica/ replica watch] </div>

Revision as of 09:42, 8 March 2006

I wrote a small patch for Addicted to Flickr that adds support for the flickr.photos.search method.

Note: There was a bug in the original patch (tagmode rather that tag_mode). I've corrected this.

How to Apply

Download and save the patch, then copy it to the same directory where you've put class.flickr.php. Then:

patch class.flickr.php class.flickr.php.patch

The output from this should be something like:

patching file class.flickr.php

This all assumes you're using a friendly OS X or Linux system; if you're running Windows, you're on your own.

Examples of Use

The main Addicted to Flickr site has plenty of examples; look at the getUsersPublicPhotos example and substitute in a call to the newly patched-in getTagSearchPhotos method, and you'll have a good start. For example:

$result = $flickr->getTagSearchPhotos('','aircanada','all',1,15);

This will return the most recent 15 photos tagged 'aircanada'.

$result = $flickr->getTagSearchPhotos('','aircanada,airplane','all',1,15);

This will return the most recent 15 photos tagged 'aircanada' and 'airplane'.

$result = $flickr->getTagSearchPhotos('','charlottetown,london','all',1,15);

This will return the most recent 15 photos tagged 'charlottetown' or 'london'.