Tampilkan postingan dengan label Blogger Widgets. Tampilkan semua postingan
Tampilkan postingan dengan label Blogger Widgets. Tampilkan semua postingan

Selasa, 10 Agustus 2010

How to Embed RSS Feeds into HTML Web Pages – The Easy Way

embed rss feeds Q. Yugalkishore is looking for a simple solution to help him   embed RSS feeds from Reuters website into his HTML web pages.


A. While there are tons of scripts that convert RSS feeds into Javascript*, I recommend using Google Gadget Creator for adding feeds to web pages – it’s easy as well as customizable. *If you are looking for a non-Javascript solution, get one of these Flash based RSS widgets from Yourminis or WidgetBox. add-rss-website


Step 1: Copy the URL of that RSS feed to the clipboard (make sure you copy the location of the feed, not the website).


Step 2: Append the feed URL to this string-


http://gmodules.com/ig/creator?url=


Confused ? Let me illustrate that with a quick example. Say the RSS feed address is http://feeds.labnol.org/labnol, then our string becomes:


http://gmodules.com/ig/creator?url=http://feeds.labnol.org/labnol

Step 3: Open this new link in your web browser, adjust the dimensions of the gadget, change the border color and finally click "Get the Code" button.


<script src="http://gmodules.com/ig/ifr?url=http://feeds.labnol.org/labnol&amp;synd=open&amp;w=320&amp;h=200&amp;title=&amp;border=%23ffffff%7C3px%2C1px+solid+%23999999&amp;output=js"></script>

Place this Javascript code anywhere in your web page where you want the RSS items to be displayed. Your site visitors can now scan the Reuters news headlines without leaving your website.

READ MORE - How to Embed RSS Feeds into HTML Web Pages – The Easy Way

Kamis, 13 Mei 2010

Related Posts Widget for Blogger with Thumbnails

Related Posts with Thumbnails for Blogger



Displaying the links to related posts along with a thumbnail of the corresponding post will help you increase the page views/user .Users will be tempted to go for the related posts when they are presented attractively with thumbnails.



This is another first release from me.This one also uses the media thumbnails generated by blogger for each post.

For displaying the thumbnails,this widget will use the images uploaded for the post using the blogger image uploader(from the post editor) [Update - Now supports external images also.]

Related Posts Widget with Thumbnails for Blogger

Here are the detailed steps to install the related posts widget for blogger with thumbnails

1.First of all Login to your blogger dashboard and navigate to Layout > Edit HTML and check the "Expand Widget Templates" check box

2.Now look for

&lt;/head>

and replace it with

&lt;!--Related Posts with thumbnails Scripts and Styles Start-->
&lt;!-- remove -->&lt;b:if cond='data:blog.pageType == &quot;item&quot;'>
&lt;style type="text/css">
#related-posts {
float:center;
text-transform:none;
height:100%;
min-height:100%;
padding-top:5px;
padding-left:5px;
}

#related-posts h2{
font-size: 1.6em;
font-weight: bold;
color: black;
font-family: Georgia, &#8220;Times New Roman&#8221;, Times, serif;
margin-bottom: 0.75em;
margin-top: 0em;
padding-top: 0em;
}
#related-posts a{
color:black;
}
#related-posts a:hover{
color:black;
}

#related-posts  a:hover {
background-color:#d4eaf2;
}
&lt;/style>
&lt;script type='text/javascript'>
var defaultnoimage="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbQIQ0fKRURcAwa8LLjNjw7DfiGnXCg1BQOYCZd_QkT0efJP3Gn4w5lPb7uHCDVz0E67sWzWpyktNiu-8zvV1xhcd4_faWNsnmY4Xgp6P6NZZzodV-JO8WNgeDt51TFmCs1uurhuWa_iM/s400/noimage.png";
var maxresults=5;
var splittercolor="#d4eaf2";
var relatedpoststitle="Related Posts";
&lt;/script>
&lt;script src='http://blogergadgets.googlecode.com/files/related-posts-with-thumbnails-for-blogger-pro.js' type='text/javascript'/>
&lt;!-- remove -->&lt;/b:if>
&lt;!--Related Posts with thumbnails Scripts and Styles End-->
&lt;/head>


3.Now Find

&lt;div class='post-footer-line post-footer-line-1'>

If you cant find it then try finding this one

&lt;p class='post-footer-line post-footer-line-1'>

Now immediately after any of these lines(whichever you could find) place this code snippet

&lt;!-- Related Posts with Thumbnails Code Start-->
&lt;!-- remove -->&lt;b:if cond='data:blog.pageType == &quot;item&quot;'>
&lt;div id='related-posts'>
&lt;b:loop values='data:post.labels' var='label'>
&lt;b:if cond='data:label.isLast != &quot;true&quot;'>
&lt;/b:if>
&lt;script expr:src='&quot;/feeds/posts/default/-/&quot; + data:label.name + &quot;?alt=json-in-script&amp;callback=related_results_labels_thumbs&amp;max-results=6&quot;' type='text/javascript'/>&lt;/b:loop>
&lt;script type='text/javascript'>
removeRelatedDuplicates_thumbs();
printRelatedLabels_thumbs(&quot;&lt;data:post.url/>&quot;);
&lt;/script>
&lt;/div>&lt;div style='clear:both'/>
&lt;!-- remove -->&lt;/b:if> 
&lt;b:if cond='data:blog.url == data:blog.homepageUrl'>&lt;b:if cond='data:post.isFirstPost'>
&lt;a href='http://www.bloggerplugins.org/2009/08/related-posts-thumbnails-blogger-widget.html'>&lt;img style="border: 0" alt="Related Posts Widget For Blogger with Thumbnails" src="http://image.bloggerplugins.org/blogger-widgets.png" />&lt;/a>&lt;a href='http://www.bloggerplugins.org/' >&lt;img style="border: 0" alt="Blogger Widgets" src="http://image.bloggerplugins.org/blogger-widgets.png" />&lt;/a>
&lt;/b:if>&lt;/b:if>
&lt;!-- Related Posts with Thumbnails Code End-->

4.You can adjust the maximum number of related posts being displayed by editing this line in the code.

var maxresults=5;

5.To edit the title of the widget you can change this line of code

var relatedpoststitle="Related Posts";

6.To change the default thumbnail, you can edit this line of code

var defaultnoimage="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbQIQ0fKRURcAwa8LLjNjw7DfiGnXCg1BQOYCZd_QkT0efJP3Gn4w5lPb7uHCDVz0E67sWzWpyktNiu-8zvV1xhcd4_faWNsnmY4Xgp6P6NZZzodV-JO8WNgeDt51TFmCs1uurhuWa_iM/s400/noimage.png";

7.To Change the Colour of the Splitter Line , edit

var splittercolor="#d4eaf2";


To change the other colours and all you will have to modify the CSS

If you fall into troubles implementing this,don't panic.. :) .just leave me a comment here and i will help you out. If you like to give me any suggestions on how to improve this widget,then it would be really great.

How to display the related posts on every page and not only on the post pages?


Just remove the two lines starting with <-- remove --> from both step 3 and step 2.

that is lines

   1: &lt;!-- remove -->&lt;b:if cond='data:blog.pageType == &quot;item&quot;'> 

and

&lt;!-- remove -->&lt;/b:if>

Permalink: Related Posts with Thumbnails for Blogger
READ MORE - Related Posts Widget for Blogger with Thumbnails