flickr 和 wordpress 集成不行

发布于 2024-11-01 01:59:28 字数 801 浏览 1 评论 0原文

这是显示来自 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

梦毁影碎の 2024-11-08 01:59:28

似乎调用此网址: 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&

返回空结果集:

flickrshow_jsonp_22262679527({"photos":{"page":1, "pages":0, "perpage":10, "total":"0", "photo":[]}, "stat":"ok"})

删除 license=1,2,3,4,5,6,7 参数会导致返回结果

因此,该用户显然没有获得其图像的许可列出的许可证之一。 Flickrshow 对于该参数有这样的说法:

逗号分隔的列表
您的许可范围内允许的许可
幻灯片。如果设置为 null,则没有许可证
将设置限制,所以请
确保您有显示权限
图像。请参阅 Flickr API
有关许可证代码的更多信息。

以下是 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:

flickrshow_jsonp_22262679527({"photos":{"page":1, "pages":0, "perpage":10, "total":"0", "photo":[]}, "stat":"ok"})

Removing the license=1,2,3,4,5,6,7 param causes results to be returned

So this user has apparently not licensed his images under one of the listed licenses. Flickrshow has this to say about that parameter:

A comma seperated list of the
allowable licenses within your
slideshow. If set to null, no license
restrictions will be set so please
ensure you have permission to display
the images. See the Flickr API for
more information on license codes.

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)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文