Cooliris 使用我的网站图片?

发布于 2024-10-17 22:16:57 字数 126 浏览 1 评论 0原文

我想在我的 asp.net 网站中使用 CoolIris (www.cooliris.com),它应该从我的网站(图像文件夹)获取图像,而不是从外部来源(如 facebook、flickr、youtube 或外部 rss 提要)获取图像。

I want to use CoolIris (www.cooliris.com) in my asp.net website and it should take images from my website (images folder), not from external sources like facebook, flickr, youtube or external rss feeds.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

幽梦紫曦~ 2024-10-24 22:16:57

如果您发布媒体 RSS 源,Cooliris(浏览器插件)将与您的网站配合使用。
请参阅:http://www.cooliris.com/developer/reference/media-rss/

要嵌入 Flash wall,请按照以下说明操作:http://www. Cooliris.com/developer/documentation/?p=embed

If you publish a Media RSS feed, Cooliris (the browser plug-in) will work with your site.
See: http://www.cooliris.com/developer/reference/media-rss/

To embed the Flash wall, follow these instructions: http://www.cooliris.com/developer/documentation/?p=embed

厌味 2024-10-24 22:16:57

在做了更多研究并了解了 Cooliris 的销售情况后,我发现了一篇文章,向您展示了如何自己托管它们并摆脱依赖外部资源的一切......这种方法是完全自给自足的!

来源:


这假设您有一个目录结构,例如以下...

在此处输入图像描述


第 1 步:创建您的 RSS 源

您希望首先创建一个类似“media.xml”的文件,并向其中添加以下内容。请务必更改图像的路径(您的网站地址等)。

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Default</title>
    <description>Feed Description</description>
    <link>http://mywebsite.com/photogallery.php</link>
    <item>
      <title>First Image</title>
      <media:description>This would be the first image.</media:description>
      <link>http://mywebsite.com/graphics/portfolio/pl_images/image1.jpg</link>
      <media:thumbnail url="http://mywebsite.com/graphics/portfolio/pl_thumbs/image1_thumb.jpg"/>
      <media:content url="http://mywebsite.com/graphics/portfolio/pl_images/image1.jpg"/>
    </item>
    <item>
      <title>Second Image</title>
      <media:description>This would be the second image.</media:description>
      <link>http://mywebsite.com/graphics/portfolio/pl_images/image2.jpg</link>
      <media:thumbnail url="http://mywebsite.com/graphics/portfolio/pl_thumbs/image2_thumb.jpg"/>
      <media:content url="http://mywebsite.com/graphics/portfolio/pl_images/image2.jpg"/>
    </item>
  </channel>
</rss>

第 2 步:编辑您的显示页面

打开 index.php 并确保其与以下代码类似。仔细查看以下更改...

  • cooliris.swf 文件现在托管在您的网站上,而不是“apps.cooliris.com”。
  • allowedScriptAccess 变量(所有变量)现在是“从不”,而不是以前的“总是”。

index.php

<div id="cooliris" class="cooliris">
<object id="o" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%">
  <param name="movie" value="http://mywebsite.com/cooliris.swf" />
  <param name="flashvars" value="feed=http://mywebsite.com/media.xml&showSearch=false" />
  <param name="allowFullScreen" value="false" />
  <param name="allowScriptAccess" value="never" />
  <embed type="application/x-shockwave-flash"
    src="http://mywebsite.com/cooliris.swf"
    width="100%"
    height="100%"
    flashvars="feed=http://mywebsite.com/media.xml&showSearch=false"
    allowFullScreen="false"
    allowScriptAccess="never">
  </embed>
</object>
</div>

第 3 步:根据需要重新配置跨域

以前,当应用程序托管在 Cooliris.com 上时,您必须配置以下文件并将其放入站点的根目录,以便 Flash 加载并运行来自另一个域的应用程序。好吧,我们现在将该文件托管在本地服务器上,因此我们需要删除它 (crossdomain.xml),因为不再需要它。这就是过去的样子...

crossdomain.xml

<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
    <allow-access-from domain="*.cooliris.com" secure="false" />
</cross-domain-policy>

第 4 步:获取 Cooliris.swf 文件的副本

现在我们需要主要组件...我们需要 Cooliris.swf 文件的副本。您可以从 此 github 上托管的链接获取副本。 com

After doing a little more research and seeing as how Cooliris sold out, I found an article that shows you how to host them yourself and get away from everything relying on outside sources... This method is completely self sufficient!

Sources:


This assumes you have a directory structure such as the following...

enter image description here


Step 1: Create Your RSS Feed

You want to start out by creating a file like "media.xml" and add the following to it. Be sure to change the paths of the images (your website address etc).

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Default</title>
    <description>Feed Description</description>
    <link>http://mywebsite.com/photogallery.php</link>
    <item>
      <title>First Image</title>
      <media:description>This would be the first image.</media:description>
      <link>http://mywebsite.com/graphics/portfolio/pl_images/image1.jpg</link>
      <media:thumbnail url="http://mywebsite.com/graphics/portfolio/pl_thumbs/image1_thumb.jpg"/>
      <media:content url="http://mywebsite.com/graphics/portfolio/pl_images/image1.jpg"/>
    </item>
    <item>
      <title>Second Image</title>
      <media:description>This would be the second image.</media:description>
      <link>http://mywebsite.com/graphics/portfolio/pl_images/image2.jpg</link>
      <media:thumbnail url="http://mywebsite.com/graphics/portfolio/pl_thumbs/image2_thumb.jpg"/>
      <media:content url="http://mywebsite.com/graphics/portfolio/pl_images/image2.jpg"/>
    </item>
  </channel>
</rss>

Step 2: Edit Your Display Page

Open up index.php and make sure it looks similar to the following code. Take a close look at the following changes...

  • The cooliris.swf file is now hosted at your website rather than at "apps.cooliris.com".
  • The allowScriptAccess variables (ALL OF THEM) are now "never" rather than what they used to be "always".

index.php

<div id="cooliris" class="cooliris">
<object id="o" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%">
  <param name="movie" value="http://mywebsite.com/cooliris.swf" />
  <param name="flashvars" value="feed=http://mywebsite.com/media.xml&showSearch=false" />
  <param name="allowFullScreen" value="false" />
  <param name="allowScriptAccess" value="never" />
  <embed type="application/x-shockwave-flash"
    src="http://mywebsite.com/cooliris.swf"
    width="100%"
    height="100%"
    flashvars="feed=http://mywebsite.com/media.xml&showSearch=false"
    allowFullScreen="false"
    allowScriptAccess="never">
  </embed>
</object>
</div>

Step 3: Re-configure Cross-Domain If Needed

Before, when the app was hosted at cooliris.com you had to configure the following file and have it in the root of your site inorder for flash to load and run the apps from another domain. Well we are hosting the file on our local server now so we need to DELETE IT (crossdomain.xml) as it is no longer needed. This is what is used to look like...

crossdomain.xml

<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
    <allow-access-from domain="*.cooliris.com" secure="false" />
</cross-domain-policy>

Step 4: Go Grab A Copy Of The cooliris.swf File

Now we need the main component... We need a copy of the cooliris.swf file. You can grab a copy from this link hosted at github.com.

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