can this module 'all' photo search?
looks like can't it.
i make a patch.
--- flickr-tag.php-orig 2007-11-24 09:50:58.000000000 -0800
+++ flickr-tag.php 2007-11-24 10:44:10.000000000 -0800
@@ -113,8 +113,6 @@
$user = null;
}
- $tags = str_replace("&", ",", $tags);
-
$nsid = null;
if($user) {
$params = array(
@@ -131,18 +129,21 @@
$nsid = $r['user']['nsid'];
}
+ if (eregi("&", $tags)) {
+ $tag_mode = "all";
+ $temparray = explode("&", $tags);
+ $tags = str_replace("#038;", "", implode(",", $t
emparray));
+ } else {
+ $tag_mode = "any";
+ }
+
$params = array(
'method' => 'flickr.photos.search
',
'tags' => $tags,
+ 'tag_mode' => $tag_mode,
'format' => 'php_serial'
);
- if(strpos($tags, "&") > 0) {
- $params['tag_mode'] = "all";
- $params['tags'] = $tags;
- } else
- $params['tag_mode'] = "any";
-
if($nsid)
$params['user_id'] = $nsid;
ps
i can't understand why ',' strings change to ',#038;'.
do you know this?