Wednesday, August 19, 2009

Easiest Way to show recent comments on your blog

0 comments Posted by Fahad at 3:20 PM
It's very useful to Show Recent Comments on main blog page. Everyone will be able to know who have given comments on our articles without opening it one by one. Let me show you how to show recent comments on our main page blog. 1. Login to blogger then go to "Layout" 2. Then copy this code : <script style="text/javascript" src="http://kendhin.890m.com/comments.js"></script><script style="text/javascript">var a_rc=8;var m_rc=false;var n_rc=true;var o_rc=40;</script><script src="http://about-new-blogger.blogspot.com/feeds/comments/default?alt=json-in-script&callback=showrecentcomments"> </script> - The 8 number is the number of comments that will show up. - Change about-new-blogger.blogspot.com with your blog's name. 3. You can show it in page elements. Just click on "add page elements --> HTML/Javascript" Then insert the script in it. ta da!!! you are done with it
Read More »

Wednesday, August 12, 2009

Blogger Link to Me Wigdet

0 comments Posted by Fahad at 2:06 AM
Link to me Widget is a very useful widget for your blog as you might want to let your readers link back to you in an easy way.We will now make a new Link To Me Widget which will display the code needed for a reader to link back to your blog.We will also provide a Add link using Blogger Button.
This button will work like a widget installer,which makes it easier for your readers to add your link.They can link back to you easily by adding your link to me widget.

How to make link to Me Widget?
Procedure:
1.First of all Make a beautiful Small Logo of your blog,which can easily fit into any blog sidebars.It should be small and pretty.
2.Now upload this image somewhere. (example Tinypic.com or Photobucket.com)
3.Now note the url of this uploaded image
4.Copy the Code below into a Text File

<p>If you like this blog,then link back to me.<br/>
This is what you will see.</p>
<div style="text-align: center;">
<a style="border:0px;text-decoration:none;" href="Your_Blog_URL" title="Your_Blog_Title">
<img alt="Your_Blog_Title" style="border: 0px;" src="Url_of_a_Small_logo_of_your_blog"/>
</a>
</div>
<textarea rows="3" cols="30">
&lt;a href="Your_Blog_URL" title="Your_Blog_Title" style="text-decoration:none;border:0;"&gt;
&lt;img src="Url_of_a_Small_logo_of_your_blog" alt="Your_Blog_Title" style="border:0" /&gt;
&lt;/a&gt;
</textarea><br/>
<br/>

Optionally use this Widget installer to add this link to your blogger blog.

<form action="http://beta.blogger.com/add-widget" method="post">
<input style="display: none;" value="My Favourite Site" name="widget.title"/>
<textarea style="display: none;" name="widget.content">
&lt;a href="Your_Blog_URL" title="Your_Blog_Title" style="text-decoration:none;border:0;"&gt;
&lt;img src="Url_of_a_Small_logo_of_your_blog" alt="Your_Blog_Title" style="border:0" /&gt;
&lt;/a&gt;
</textarea>
<br/>
<input style="border:0px;" src="http://www.blogger.com/img/add/add2blogger_lg.gif" value="Link To Your_Blog_Title" name="go" type="image"/>
</form>

5.In this code replace all occurrences of Your_Blog_Title with the Title of your blog

6.Replace all occurrences of Your_Blog_URL with the url of your blog.

7.Replace all occurrences of Url_of_a_Small_logo_of_your_blog with the url of the logo that you uploaded.

8.Now your code is Ready!!
9.Copy out the modified code from your text editor.

10.Now Goto Blogger > Layout page

11.Choose to add a gadget and Opt for HTML/Javascript

12.In that widget paste the modified Code and Save.

Now you should have a link to me widget on your blog.If you want to test the Add Link With Blogger Button,Then try adding the widget to your blog itself.[You can remove it after testing!]

With Slight Modifications to the code,you can change this to a text link instead of an image link.
If You need any helo you can contact me or leave a comment and ask me
Thanks

Subscribe to us for new updates

Read More »

Wednesday, July 29, 2009

Label Cloud or Tag Cloud for Blogger

0 comments Posted by Fahad at 12:52 PM

In this post i am going to show you a simpler way on how to add Label or Tag cloud to blogger or blogspot
Tag cloud or Label cloud is a visual depiction of all the tags or labels that are used on your blog...



Goto Your blogger Layout>Page Elements page and add a Labels Widget there..You can Do that using the add a Page Element Option on that page.







Choose to sort the labels Alphabetically when prompted.

After Adding the Label Widget Goto Layout>Edit Html (Do not expand the widget templates for the sake of easy explanation)
You will find some code similar to

<b:widget id='Label1' locked='false' title='Labels' type='Label'/>


Now Replace that with


<b:widget id='Label1' locked='false' title='Label Cloud'
type='Label'>
<b:includable id='main'>
<b:if cond='data:title'>
<h2><data:title/></h2>
</b:if>
<div class='widget-content'>
<div id='labelCloud'/>
<p align='center'>
<script type='text/javascript'>
var cloudMin = 1;
var maxFontSize = 25;
var maxColor = [35,130,196];
var minFontSize = 10;
var minColor = [35,130,195];
var lcShowCount = false;
// Don't change anything past this point -----------------
// Cloud function s() ripped from del.icio.us
function s(a,b,i,x){
if(a>b){
var m=(a-b)/Math.log(x),v=a-Math.floor(Math.log(i)*m)
}
else{
var m=(b-a)/Math.log(x),v=Math.floor(Math.log(i)*m+a)
}
return v
}
var c=[];
var labelCount = new Array();
var ts = new Object;
<b:loop values='data:labels' var='label'>
var theName = &qout;<data:label.name/>&qout;;
ts[theName] = <data:label.count/>;
</b:loop>
for (t in ts){
if (!labelCount[ts[t]]){
labelCount[ts[t]] = new Array(ts[t])
}
}
var ta=cloudMin-1;
tz = labelCount.length - cloudMin;
lc2 = document.getElementById('labelCloud');
ul = document.createElement('ul');
ul.className = 'label-cloud';
for(var t in ts){
if(ts[t] &lt; cloudMin){
continue;
}
for (var i=0;3 &gt; i;i++) {
c[i]=s(minColor[i],maxColor[i],ts[t]-ta,tz)
}
var fs = s(minFontSize,maxFontSize,ts[t]-ta,tz);
li = document.createElement('li');
li.style.fontSize = fs+'px';
a = document.createElement('a');
a.title = ts[t]+' Posts in '+t;
a.style.color = 'rgb('+c[0]+','+c[1]+','+c[2]+')';
a.href = '/search/label/'+encodeURIComponent(t);
if (lcShowCount){
span = document.createElement('span');
span.innerHTML = '('+ts[t]+') ';
span.className = 'label-count';
a.appendChild(document.createTextNode(t));
li.appendChild(a);
li.appendChild(span);
}
else {
a.appendChild(document.createTextNode(t));
li.appendChild(a);
}
ul.appendChild(li);
abnk = document.createTextNode(' ');
ul.appendChild(abnk);
}
lc2.appendChild(ul);
</script>
</p>
<noscript>
<ul>
<b:loop values='data:labels' var='label'>
<li>
<b:if cond='data:blog.url == data:label.url'>
<data:label.name/>
<b:else/>
<a expr:href='data:label.url'><data:label.name/></a>
</b:if>
(<data:label.count/>)
</li>
</b:loop>
</ul>
<br/>Powered By:<small><a href='http://www.blogger-new-widgets.blogspot.com'>
Blogger Widgets</a></small>
<br/>Blogger Label Cloud:<small>
<a href='http://blogger-new-widgets.blogspot.com/2009/07/tag-label-
cloud-widget-for-blogger-or.html'>Label Cloud for Blogger</a></small>
</noscript>
<b:include name='quickedit'/>
</div>
</b:includable>
</b:widget>


Now find


]]></b:skin>


and replace it with


#labelCloud {text-align:center;font-family:arial,sans-serif;}
#labelCloud .label-cloud li{display:inline;background-image:none !important;padding:0 5px;margin:0;vertical-align:baseline !important;border:0 !important;}
#labelCloud ul{list-style-type:none;margin:0 auto;padding:0;}
#labelCloud a img{border:0;display:inline;margin:0 0 0 3px;padding:0}
#labelCloud a{text-decoration:none}
#labelCloud a:hover{text-decoration:underline}
#labelCloud li a{}
#labelCloud .label-cloud {}
#labelCloud .label-count {padding-left:0.2em;font-size:9px;color:#000}
#labelCloud .label-cloud li:before{content:"" !important}
]]></b:skin>


Save your template and now you should get a working Label Cloud On your Blog.


Changing Cloud Colours:

you can change those colors editing the code a little bit..
you will have to expand your widget templates and modify these 2 lines of code

var maxColor =

and

var minColor =
you have to specify the RGB values there separated by commas..If you are sure of what should be the hex codes of the maximum and minimum colors,then you can use this to convert the hex value to RGB values..If you are not sure of what the hex code of the colors are then have a look at this.


Changing the Font Sizes:
You can change the font sizes by editing these 2 lines of code

var minFontSize =
and
var maxFontSize =




This Tag Cloud Widget was originally developed by phydeaux3
Read More »

Friday, July 24, 2009

Contact Me

0 comments Posted by Fahad at 12:41 PM

Name:*

Email:*

Subject:*

Message:*





Read More »

About Me

0 comments Posted by Fahad at 12:26 PM
I am Fahad engineering student from Pakistan.... I love to blog and i wana share all the knowledge i got. As you are familiar with the common saying that the knowledge which is shared is better...
Read More »

Subscribe

0 comments Posted by Fahad at 12:04 PM

You can subscribe here.....

Subscribe in a reader

Subscribe to Blogger Widgets

Add to Google Reader or Homepage

Add to My AOL

Or you can subscribe via email to get updates

Enter your email address:



Read More »
 

Author

My photo
Hello, My name is Fahad.Currently I am doing Bachelors in Business Administration. I love to make friends and to blog.

Popular Posts

Recent Comments

© 2011. All Rights Reserved | Blogger Widgets | Template by Blogger Widgets

Home | About | Top