frenchtoast
06-11-2008, 02:37 PM
Hello
I have setup a blog on my web site and i want 5-10 recent blog post to be displayed on my site (static html) homepage in a seo friendly way
I tried using BuzzBoost it works but I have found out that when you google text cached it doesn’t display the post
For eg
http://vandelaydesign.com/blog/tools/display-your-feed-on-a-static-html-page-using-feedburners-buzzboost/
Homepage http://vandelaydesign.com/
Google cached
http://209.85.175.104/search?q=cache:http://vandelaydesign.com/&hl=en&rlz=1T4GGIH_enIN270IN270&strip=1
This is what google sees
Subscribe to RSS headline updates from:
Powered by FeedBurner
I read somewhere about using rss2html but I have no clue how to setup that
Please help
Thanks
mlseim
06-11-2008, 05:16 PM
What is the actual URL for your blog RSS feed?
I think the URL I'm seeing on your site is for your main page? (not the blog)?
frenchtoast
06-12-2008, 09:17 AM
sorry Mlseim that site was just an example my site is Rightcopywriter.com
will look forwared to hearing from you
Thanks
rangana
06-12-2008, 10:06 AM
I recently made success on doing this just yesterday. I used the script from 2rss.com (http://www.2rss.com/software.php?page=atom2rss). There's a good documentation which would help you.
mlseim
06-12-2008, 05:09 PM
OK ...
Below is a solution to displaying your own RSS feed on any of your
other pages. First, the page in which it is displayed, needs to have
the extension .php or use .htaccess to process all of your .html (.htm)
pages as PHP.
Put this script into your page, and you'll have to customize the
output for styling (fonts, font sizes, etc). Change the echo part
to reflect the proper styling for the output.
<?php
// rss page from your blog -
$feed_url = "http://www.rightcopywriter.com/blog/feed";
# INITIATE CURL.
$curl = curl_init();
# CURL SETTINGS.
curl_setopt($curl, CURLOPT_URL,"$feed_url");
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 0);
# GRAB THE XML FILE.
$xmlTwitter = curl_exec($curl);
curl_close($curl);
# SET UP XML OBJECT.
# Depending on your PHP version, use one of the lines below.
# Comment out the one you are not using.
//$xml = new SimpleXMLElement($xmlTwitter);
$xml = simplexml_load_string($xmlTwitter);
// How many items to display
$count = 5;
// How many characters from each item
// 0 (zero) will show them all.
$char = 200;
foreach ($xml->channel->item as $item) {
if($char == 0){
$newstring = $item->description;
}
else{
$newstring = substr($item->description, 0, $char);
}
if($count > 0){
//in case they have non-closed italics or bold, etc ...
echo"</i></b></u></a>\n";
echo"
<div style='font-family:arial; font-size:.8em;'>
<b>{$item->title}</b><br />
$newstring ... <a href='{$item->guid}'>read more</a>
<br /><br />
</div>
";
}
$count--;
}
?>
frenchtoast
06-14-2008, 08:54 AM
Thanks mlseim :) but I don't want to change the extension of my pages because I might lose search engine ranking
is there any other way ?
can you tell me how this site is display latest blog post on their sitehttp://www.curls.biz/ and if I can do the same ?
Thanks
OK ...
Below is a solution to displaying your own RSS feed on any of your
other pages. First, the page in which it is displayed, needs to have
the extension .php or use .htaccess to process all of your .html (.htm)
pages as PHP.
Put this script into your page, and you'll have to customize the
output for styling (fonts, font sizes, etc). Change the echo part
to reflect the proper styling for the output.
<?php
// rss page from your blog -
$feed_url = "http://www.rightcopywriter.com/blog/feed";
# INITIATE CURL.
$curl = curl_init();
# CURL SETTINGS.
curl_setopt($curl, CURLOPT_URL,"$feed_url");
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 0);
# GRAB THE XML FILE.
$xmlTwitter = curl_exec($curl);
curl_close($curl);
# SET UP XML OBJECT.
# Depending on your PHP version, use one of the lines below.
# Comment out the one you are not using.
//$xml = new SimpleXMLElement($xmlTwitter);
$xml = simplexml_load_string($xmlTwitter);
// How many items to display
$count = 5;
// How many characters from each item
// 0 (zero) will show them all.
$char = 200;
foreach ($xml->channel->item as $item) {
if($char == 0){
$newstring = $item->description;
}
else{
$newstring = substr($item->description, 0, $char);
}
if($count > 0){
//in case they have non-closed italics or bold, etc ...
echo"</i></b></u></a>\n";
echo"
<div style='font-family:arial; font-size:.8em;'>
<b>{$item->title}</b><br />
$newstring ... <a href='{$item->guid}'>read more</a>
<br /><br />
</div>
";
}
$count--;
}
?>
frenchtoast
06-17-2008, 09:39 AM
Thanks mlseim for your help.. that did the trick :)