Isarin,<br><br>That's very strange - there shouldn't be any problem with accessing ANY user's images using ANY API - except if you are trying to access private images. I haven't yet created a scheme for authenticating your site to display private images, but that is possible using the phpFlickr class. If you're just trying to access public images, ensure that you are using the right syntax user=username. Which brings up another theoretical issue that I haven't thought of - I don't suppose that your username is actually one of flickr's funny account ids, like 9384813975N00 or whatever...? If that's the case, then maybe there something funny going on when you try to put that in the user= variable. If that's not the case, then make sure that you are using the username, not the display name--in my case, while my name displays as "josquin" in flickr, my username is actually josquin2000 (somebody had taken josquin already). Does any of that ring a bell?
<br><br>Jon<br><br><div><span class="gmail_quote">On 2/6/06, <b class="gmail_sendername">H S</b> <<a href="mailto:haadyai@gmail.com">haadyai@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I think I am still missing something.<br><br>I applied a new flickr-album.php.<br><br>Then, I added <br><br>a) in config.php in field A<br>$FlickrAPIKey = 'f<span style="font-weight: bold;">lickr_key_user_a</span>';<br>
include_once("$FarmD/cookbook/flickr-album.php");<br><br>b) in config.php in field B<br>
$FlickrAPIKey = 'f<span style="font-weight: bold;">lickr_key_user_b</span>';<br>
include_once("$FarmD/cookbook/flickr-album.php");<br><br>my access to user-a in either field A or field B works. I can see my pictures on both fields. However, I can't access 'user-b' even on field B itself.
<br><br>Thanks,<br>Isarin<div><span class="e" id="q_109415ee2871c1d0_1"><br><br><br><div><span class="gmail_quote">On 2/6/06, <b class="gmail_sendername">Jon Haupt</b> <<a href="mailto:jhaupt@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
jhaupt@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><span><br><br><div><span class="gmail_quote">On 2/6/06, <b class="gmail_sendername">Dominique Faure</b> <<a href="mailto:dominique.faure@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
dominique.faure@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
2006/2/6, Jon Haupt <<a href="mailto:jhaupt@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">jhaupt@gmail.com</a>>:<br>> On 2/5/06, H S <<a href="mailto:haadyai@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
haadyai@gmail.com</a>> wrote:<br>><br>> > Hello,<br>> ><br>
> > How should I setup more than one key in the flickr-album.php?<br>> ><br>> > Also if I have two different fields and have A key for a field and B/C<br>> keys for another field, how do I set them up ?
<br>> ><br>> ><br>> Hmm, I'm assuming what you mean is the flickr API key; what needs to be done<br>> is the key should be a global variable that can be set in config.php before<br>> including flickr-album.php
. However, I'm a little confused as to how this<br>> is done; when I initially tried setting the key as a variable and then using<br>> the variable within the function, it didn't work. If someone else can<br>> explain how to write that in the code, I'll be glad to fix it.
<br><br>Perhaps something like:<br><br>SDV($FlickrAPIKey, "put_your_API_key_here");<br><br>function FlickrAlbum($p) {<br> global $FlickrAPIKey;<br><br> require_once("phpFlickr/phpFlickr.php");<br><br>
// Create new phpFlickr object<br> $f = new phpFlickr($FlickrAPIKey);<br><br> ...<br><br>Regards,<br>Dom<br></blockquote></div><br></span></div>Thanks - I think I understand SDV and declarations better now. I've updated
flickr-album.php
with this little insight and now you should be able to simply set $FlickrAPIKey = "whatever"; in each field before including flickr-album.php and it'll work.<br><span><br>Jon</span><div><span>
<br clear="all"><br>-- <br>Jon Haupt<br>Fine & Performing Arts Librarian
<br>Iowa State University<br>152 Parks Library<br>Ames, IA 50011<br>515-294-0904<br><a href="mailto:jhaupt@iastate.edu" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">jhaupt@iastate.edu</a>
</span></div></blockquote></div><br>
</span></div><br>_______________________________________________<br>pmwiki-users mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:pmwiki-users@pmichaud.com">pmwiki-users@pmichaud.com
</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://host.pmichaud.com/mailman/listinfo/pmwiki-users" target="_blank">http://host.pmichaud.com/mailman/listinfo/pmwiki-users</a><br><br><br></blockquote>
</div><br><br clear="all"><br>-- <br>Jon Haupt<br>Fine & Performing Arts Librarian<br>Iowa State University<br>152 Parks Library<br>Ames, IA 50011<br>515-294-0904<br><a href="mailto:jhaupt@iastate.edu">jhaupt@iastate.edu
</a>