Blogger Kullananlar İçin Buzz Butonu
Yeni Blogger için Kod
<a expr:href=’"http://www.google.com/reader/link?url=" + data:post.url + "&title=" + data:post.title + "&srcURL=" + data:blog.homepageUrl ‘><img src=”http://4.bp.blogspot.com/_FX3RmPElUpc/S3VkcrkMk4I/AAAAAAAAAzc/XkmkEsom8OQ/s144/googlebuzz.png” /></a>
Klasik Blogger için
<a href=’http://www.google.com/reader/link?url=<$BlogItemPermalinkURL$>&title=<$BlogItemTitle$>&srcURL=YOURBLOG.blogspot.com’><img src=”http://4.bp.blogspot.com/_FX3RmPElUpc/S3VkcrkMk4I/AAAAAAAAAzc/XkmkEsom8OQ/s144/googlebuzz.png” /></a>
WordPress için
<a
target=”_blank” href=”http://www.google.com/reader/link?url=<?php the_permalink() ?>&title=<?php the_title(); ?>&srcURL=<?php bloginfo(‘url’); ?>” ><img
src=”http://img2.pict.com/15/da/3e/2809374/0/googlebuzz.png” width=”50″ height=”58″ /></a>
Read more: http://jaxov.com/2010/02/add-buzz-this-button-count-wordpress/#ixzz0hYslKnzn
veya WPBUZZER pluginini kullanın.
En son olarak sayfanızın </body> tagından hemen önce aşağıdaki script dosyasını ekliyorsunuz.
<script type=’text/javascript’>
/***
bilgisayarkurtu buzz buton cybokron
***/
//get all anchor tags with buzzbutton as the class
urlContainer = {};
hashContainer = {};
function getAllButtons() {
anchrs = document.getElementsByTagName(“a”);
btns = new Array();
for(i=0; i<anchrs.length; i++) {
if(anchrs[i].className == “buzzbutton”) {
btns.push(anchrs[i]);
}
}
return btns;
}
var btns = getAllButtons();
for(i=0;i<btns.length;i++) {
long_url = btns[i].href;
urlContainer[long_url] = i;
BitlyClient.shorten(long_url, ‘replace_link’);
}
function replace_link(data) {
for (var r in data.results) {
doc = data.results[r];
break;
}
short_url = doc[‘shortUrl’];
hash = doc[‘hash’];
hashContainer[hash] = urlContainer[r];
btns[urlContainer[r]].href = “http://bit.ly/”+hash;
BitlyClient.stats(hash, ‘getStat’);
}
function getStat(data) {
var clicks = data.results.clicks;
var hash = data.results.hash;
span = document.createElement(“span”);
span.innerHTML = clicks;
btns[hashContainer[hash]].parentNode.insertBefore(span, btns[hashContainer[hash]]);
}
</script>
Yorum Yap