Showing posts with label Blogger Hacks. Show all posts
Showing posts with label Blogger Hacks. Show all posts

Tuesday, March 31, 2009

Free Language Translator

Free Language Translator for your blog

1-Google language Translator

<form action="http://www.google.com/translate"><script language="JavaScript"><!-- document.write ("<input name="u" value="+location.href+" type="hidden">")// --></script><input value="en" name="hl" type="hidden"><input value="UTF8" name="ie" type="hidden"><input value="" name="langpair" type="hidden"><input onclick="this.form.langpair.value=this.value" title="French" value="en|fr" type="image" height="20" src="http://photos1.blogger.com/img/ 43/1633/320/13539949_e76af75976.jpg" width="30" name="langpair"><input onclick="this.form.langpair.value=this.value" title="German" value="en|de" type="image" height="20" src="http://photos1.blogger.com/img/ 43/1633/320/13539933_041ca1eda2.jpg" width="30" name="langpair"><input onclick="this.form.langpair.value=this.value" title="Italian" value="en|it" type="image" height="20" src="http://photos1.blogger.com/img/ 43/1633/320/13539953_0384ccecf9.jpg" width="30" name="langpair"><input onclick="this.form.langpair.value=this.value" title="Portuguese" value="en|pt" type="image" height="20" src="http://photos1.blogger.com/img/ 43/1633/320/13539966_0d09b410b5.jpg" width="30" name="langpair"><input onclick="this.form.langpair.value=this.value" title="Spanish" value="en|es" type="image" height="20" src="http://photos1.blogger.com/img/ 43/1633/320/13539946_2fabed0dbf.jpg" width="30" name="langpair"><input onclick="this.form.langpair.value=this.value" title="Japanese" value="en|ja" type="image" height="20" src="http://photos1.blogger.com/img/ 43/1633/320/13539955_925e6683c8.jpg" width="30" name="langpair"><input onclick="this.form.langpair.value=this.value" title="Korean" value="en|ko" type="image" height="20" src="http://photos1.blogger.com/img/ 43/1633/320/13539958_3c3b482c95.jpg" width="30" name="langpair"><input onclick="this.form.langpair.value=this.value" title="Chinese Simplified" value="en|zh-CN" type="image" height="20" src="http://photos1.blogger.com/img/ 43/1633/320/14324441_5ca5ce3423.jpg" width="30" name="langpair"><input onclick="this.form.langpair.value=this.value" title="Arabic" value="en|ar" type="image" height="20" src="http://photos1.blogger.com/blogger/ 3709/485/1600/arabic-flag.gif" width="30" name="langpair2"></form>

2-Google language Translator(2)

<form action="http://www.google.com/translate" onsubmit="this.u.value=window.location.href" method="GET"><input value="en" name="hl" type="hidden"><input value="UTF8" name="ie" type="hidden"><input value="" name="u" type="hidden">Select Language: <select name="langpair"><option value="en|fr">French<option value="en|de">German<option value="en|it">Italian<option value="en|pt">Portuguese<option value="en|es">Spanish<option value="en|ar">Arabic BETA<option value="en|zh-CN">Chinese (Simplified) BETA<option value="en|ja">Japanese BETA<option value="en|ko">Korean BETA<option value="en|ru">Russian BETA</select><input value="Translate" type="submit"></form>


3-Alta Vista Babel Fish

/><script language="JavaScript1.2" src="http://www.altavista.com/static/scripts/translate_engl.js"></script>
Read rest of entry

Saturday, February 28, 2009

Add Yahoo Buzz button to your blog

Step 1. Choose your favorite button from Yahoo! Buzz that fitted well with your site design (large button with vote count - Square Button - is highly recommended), then click “Get Code”.

Step 2. If you have selected the Square Button the code will be like this

<script type="text/javascript" src="http://d.yimg.com/ds/badge2.js" badgetype="square">ARTICLEURL</script>


Step 3. Replace the ARTICLEURL with . After replaced, your code will look like this

<script type="text/javascript" src="http://d.yimg.com/ds/badge2.js" badgetype="square"><data:post.url/></script>


Step 5. Go to Layout -> Edit HTML

step 6 look for and add the code above it so the code will look


<div style='float:right;padding:5px;'><script badgetype='square' src='http://d.yimg.com/ds/badge2.js' type='text/javascript'><data:post.url/></script></div>
<data:post.body/>

Read rest of entry

Sunday, February 22, 2009

show related Posts below Each blogger Posts

Before you start any Blogger Hack Please Backup your Blogger Template


Goto Blogger Edit Html Page,Expand Widget Templates and Paste the Following Code just above </head> in your blogger Template

<style>

#related-posts {
float : left;
width : 540px;
margin-top:20px;
margin-left : 5px;
margin-bottom:20px;
font : 11px Verdana;
margin-bottom:10px;
}
#related-posts .widget {
list-style-type : none;
margin : 5px 0 5px 0;
padding : 0;
}
#related-posts .widget h2, #related-posts h2 {
color : #940f04;
font-size : 20px;
font-weight : normal;
margin : 5px 7px 0;
padding : 0 0 5px;
}
#related-posts a {
color : #054474;
font-size : 11px;
text-decoration : none;
}
#related-posts a:hover {
color : #054474;
text-decoration : none;
}
#related-posts ul {
border : medium none;
margin : 10px;
padding : 0;
}
#related-posts ul li {
display : block;
background : url("http://i263.photobucket.com/albums/ii150/mohamedrias/newconcept_bullet.png") no-repeat 0 0;
margin : 0;
padding-top : 0;
padding-right : 0;
padding-bottom : 1px;
padding-left : 16px;
margin-bottom : 5px;
line-height : 2em;
border-bottom:1px dotted #cccccc;
}

</style>

<script type='text/javascript'>
//<![CDATA[
var relatedTitles = new Array();
var relatedTitlesNum = 0;
var relatedUrls = new Array();
function related_results_labels(json) {
for (var i = 0; i < json.feed.entry.length; i++) {
var entry = json.feed.entry[i];
relatedTitles[relatedTitlesNum] = entry.title.$t;
for (var k = 0; k < entry.link.length; k++) {
if (entry.link[k].rel == 'alternate') {
relatedUrls[relatedTitlesNum] = entry.link[k].href;
relatedTitlesNum++;
break;
}
}
}
}
function removeRelatedDuplicates() {
var tmp = new Array(0);
var tmp2 = new Array(0);
for(var i = 0; i < relatedUrls.length; i++) {
if(!contains(tmp, relatedUrls[i])) {
tmp.length += 1;
tmp[tmp.length - 1] = relatedUrls[i];
tmp2.length += 1;
tmp2[tmp2.length - 1] = relatedTitles[i];
}
}
relatedTitles = tmp2;
relatedUrls = tmp;
}
function contains(a, e) {
for(var j = 0; j < a.length; j++) if (a[j]==e) return true;
return false;
}
function printRelatedLabels() {
var r = Math.floor((relatedTitles.length - 1) * Math.random());
var i = 0;
document.write('<ul>');
while (i < relatedTitles.length && i < 20) {
document.write('<li><a href="' + relatedUrls[r] + '">' + relatedTitles[r] + '</a></li>');
if (r < relatedTitles.length - 1) {
r++;
} else {
r = 0;
}
i++;
}
document.write('</ul>');
}
//]]>
</script>



Now Search for <p><data:post.body/></p> and Replace it with the Following Code


<p><data:post.body/></p>
<b:if cond='data:blog.pageType == "item"'>
<div id="related-posts">
<h2>Other Recommended Posts on <b:loop values='data:post.labels' var='label'><data:label.name/><b:if cond='data:label.isLast != "true"'>,</b:if><b:if cond='data:blog.pageType == "item"'>
<script expr:src='"/feeds/posts/default/-/" + data:label.name + "?alt=json-in-script&callback=related_results_labels&max-results=5"' type='text/javascript'/></b:if></b:loop> </h2>

<script type='text/javascript'> removeRelatedDuplicates(); printRelatedLabels(); </script>

</div></b:if>


After you Complete the above steps Save your blogger Template and see the hack working.
Read rest of entry
 

My Blog List

Term of Use

blogger copy Copyright © 2009 Black Nero is Designed by Ipietoon Blogger Templates Sponsored by Online Business Journal