flickr 和 wordpress 集成不行
这是显示来自 flickr 的照片的代码
此用户:53335537@N04 不显示任何内容 - NADA
但此用户:85173533@N00 工作得很好
<script type="text/javascript">
jQuery.noConflict();
jQuery(document).ready( function() {
var cesc = new flickrshow('flickrbox', {
'autoplay':true,
'hide_buttons':false,
'interval':3500,
'page':1,
'per_page':10,
'user':'53335537@N04'});
});
</script>
问题:为什么用户不起作用....
这个地址工作得很好,所以 flickr 不会阻止它 http://www.flickr.com/photos/53335537@N04
这是“ live”页面...右上角:http://www. notrepanorama.com/1-la-table-et-ses-partenaires/
Here is the code that shows a photo from flickr
THIS USER : 53335537@N04 doesn't show ANYTHING - NADA
but this user : 85173533@N00 work great
<script type="text/javascript">
jQuery.noConflict();
jQuery(document).ready( function() {
var cesc = new flickrshow('flickrbox', {
'autoplay':true,
'hide_buttons':false,
'interval':3500,
'page':1,
'per_page':10,
'user':'53335537@N04'});
});
</script>
Question : Why a user doesn't work....
This address work great, so flickr is not blocking it
http://www.flickr.com/photos/53335537@N04
Here is the "live" page.... upper right : http://www.notrepanorama.com/1-la-table-et-ses-partenaires/
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
似乎调用此网址: http://api.flickr.com/services/rest/?api_key=6cb7449543a9595800bc0c365223a4e8&extras=url_s,url_m,url_z,url_l&format=json&jsoncallback=flickrshow_jsonp_22262679527&page=1&per _page=10& ;license=1,2,3,4,5,6,7&method=flickr.photos.search&user_id=53335537@N04&
返回空结果集:
删除
license=1,2,3,4,5,6,7
参数会导致返回结果因此,该用户显然没有获得其图像的许可列出的许可证之一。 Flickrshow 对于该参数有这样的说法:
以下是 flickr 的相关文档页面: http://www.flickr .com/services/api/flickr.photos.licenses.getInfo.html
似乎嵌入该用户的图像,因为它们被标记为“保留所有权利”,在法律上是有问题的(尽管我猜测在这在这种情况下,嵌入者和照片所有者是同一个人)。 flickrshow 似乎默认只显示具有 CC 许可证的图像。
因此,最后:要么重新许可照片,要么覆盖 flickrshow 的许可过滤器(可能通过将
'license':null,
添加到您的参数中)Seems to call this URL: http://api.flickr.com/services/rest/?api_key=6cb7449543a9595800bc0c365223a4e8&extras=url_s,url_m,url_z,url_l&format=json&jsoncallback=flickrshow_jsonp_22262679527&page=1&per_page=10&license=1,2,3,4,5,6,7&method=flickr.photos.search&user_id=53335537@N04&
which returns an empty result set:
Removing the
license=1,2,3,4,5,6,7
param causes results to be returnedSo this user has apparently not licensed his images under one of the listed licenses. Flickrshow has this to say about that parameter:
Here's the relevant doc page from flickr: http://www.flickr.com/services/api/flickr.photos.licenses.getInfo.html
It seems that embedding that user's images, since they're marked "all rights reserved", is legally questionable (although I'm guessing in this case, the embedder and the photo owner are the same person). flickrshow only displays images with CC licenses by default, it seems.
So, in the end: either relicense the photos, or override flickrshow's license filter (probably by adding
'license':null,
to your params)