Gateway to Information, Products & Services to Help you Live a Sustainable Life
Sustainable Life
     
 
Subcribe to Susainable Life Feed
 
 
Add this Address to your feed software
 
http://sustlife.com/blog/feed
 
 
Get free environmental and sustainability news on your website
 
If you would like free content for your site you can add our feed to your site for free in the following ways
 
 

 

Picturebeta

You can use Picture if you want colourful layout for your digest

Using Picture you can include a feed digest on any HTML page, as long as you have the ability to edit the HTML directly. Find where in the HTML layout you want the digest to appear, and then paste in this code:

<map name="3B7NZUWKOO"><area shape='rect' coords="32,55,260,75" href='http://fd2005.feeddigest.com/go/3B7NZUWKOO/0' target=_blank><area shape='rect' coords="32,80,260,100" href='http://fd2005.feeddigest.com/go/3B7NZUWKOO/1' target=_blank><area shape='rect' coords="32,105,260,125" href='http://fd2005.feeddigest.com/go/3B7NZUWKOO/2' target=_blank><area title="Succoured by Feeddigest.com" shape='rect' coords="0,125,260,168" href="http://www.feeddigest.com" target=_blank></map><img src='http://media.feeddigest.com/3/3B/3B7NZUWKOO.gif' border=0 usemap="#3B7NZUWKOO"/>

Pros: Can include on any HTML page. Works fine. Users see digest content okay. Ideal for novices.
Cons: Every time you change number of items in your digest you need to update inclusion code on your page (get the new one from here).Possible character encoding issues in complex multi-language situations due to beta version.

JavaScript

Use JavaScript if you are a beginner or want the easiest method.

Using JavaScript you can include a feed digest on any HTML page, as long as you have the ability to edit the HTML directly. Find where in the HTML layout you want the digest to appear, and then paste in this code:

<script type="text/javascript" src="http://app.feeddigest.com/digest3/3B7NZUWKOO.js"><noscript><a href="http://app.feeddigest.com/digest3/3B7NZUWKOO.html">Click for &quot;Sustainable Life Latest Story&quot;.</a> Powered by <a href="http://www.feeddigest.com/">RSS Feed Digest</a></noscript></script>

Pros: Can include on any HTML page. Works fine. Users see digest content okay. Ideal for novices.
Cons: Not the fastest method. Digest text is not part of the page content, so search robots will not see it. Possible character encoding issues in complex multi-language situations.

PHP Include ('include' method)

If you have PHP support on your server, you can use the following code to include a feed digest directly into your page's source code:

<?php
include ("http://app.feeddigest.com/digest3/3B7NZUWKOO.html");
?>

Pros: Fast. Works well with complex multi-language and character encoding situations.
Cons: Requires PHP pages to be used, or a .htaccess workaround for Apache. Some hosts do not support 'include' anymore (such as GoDaddy).

PDF

You can include PDF to your HTML code

Note that you can change width and height parameters of <div> and <embed> tags to your needs.

<div style="width:800;height:600;"><EMBED src="http://fd2005.feeddigest.com/3B7NZUWKOO.pdf" width="800" height="600" href="http://fd2005.feeddigest.com/3B7NZUWKOO.pdf"></EMBED><div class="fdpoweredby" style="text-align: right;"><a href="http://www.feeddigest.com"><img src="http://media.feeddigest.com/fdimage3B7NZUWKOO.gif" alt="Provided by feeddigest.com" border="0"></a></div></div>

Provided by feeddigest.com

PHP CURL Include with Timeout

If you have PHP support on your server and the CURL library, you can use the following code to include a feed digest directly into your page's source code:

<?php
$ch = curl_init();
$timeout = 5; // in seconds, you can change this lower if you want
curl_setopt ($ch, CURLOPT_URL, 'http://app.feeddigest.com/digest3/3B7NZUWKOO.html');
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
$file_contents = curl_exec($ch);
curl_close($ch);
echo $file_contents;
?>

Pros: Fast. Works well with complex multi-language and character encoding situations. Works on ISPs that do not allow 'include'. Allows a timeout.
Cons: Requires PHP pages to be used, or a .htaccess workaround for Apache. Requires CURL.

ASP VBScript

This is for people using Microsoft based Web servers with ASP support:

<%
dim Http
Set Http = Server.CreateObject("Microsoft.XMLHTTP")
Http.Open "Get","http://app.feeddigest.com/digest3/3B7NZUWKOO.html",False
Http.Send()
Response.Write(Http.ResponseText)
%>