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<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">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 class="e" id="q_10940df32a76af39_0"><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 class="sg"><br>Jon</span><div><span class="e" id="q_10940df32a76af39_3">
<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>