Bloggerde Yazarların Resimlerini Göstermek
Etiketler: Blogger
Blogunuzdaki yazarların resmini gösterin.
1 -
<b:if cond='data:top.showAuthor'> <data:top.authorLabel/> <data:post.author/> </b:if>
Bununla değiştirin
<div class='post-avatar-frame'> <div class='post-avatar'> <script type='text/javascript'> makeprofilelink("<data:post.author/>","img"); </script> <b:if cond='data:top.showAuthor != "true"'> <data:post.author/> </b:if> </div></div> <b:if cond='data:top.showAuthor'> <data:top.authorLabel></data:top.authorLabel> <script type='text/javascript'> makeprofilelink("<data:post.author></data:post.author>","txt"); </script> </b:if>
2 - Javascript Kodları <head> </head> arasına,
<script type='text/javascript'>
var team = new Array();
team["yazar"]="12312312312321353231";
team["yazar1"]="45645656876854645645";
team["yazar2"]="456456565646";
team["yazar3"]="7537537537535314";
function makeprofilelink (authorname, type) {
var pid = team[authorname];
if (type=="img") { document.write("<a href='http://www.blogger.com/profile/" + pid + "'><img class='post-avatar' height='40' src='http://isminiz.googlepages.com/resim/" + authorname + ".jpg' title='View Profile'/></a>"); }
else if (type=="txt") { document.write( "<a href='http://www.blogger.com/profile/" + pid + "'>" + authorname + "</a>"); }
else { document.write("<a href='http://www.blogger.com/profile/" + pid + "'>" + authorname + "</a""); }
}
</script>
3 - Css Kodları <head> </b:skin> arasına,.post-avatar {
border-style:none;
display:block;
}
.post-avatar-frame {
background:#FFFFFF; //arkaplan rengi
border-style:none; //kenar çizgisini gösterme
display:block; //sayfada göster
float:left; //sola yasla
}
Değiştirmeniz gereken yerler :1- team["yazar"]="12312312312321353231";
2- http://isminiz.googlepages.com/resim/" + authorname + ".jpg
- Burada dosya uzantısı jpg,png,gif olabilir.
Kaynak : Googlegroups - Blogger Yardım Grubu
Demo : demo adresi



![[Abraham Lincoln, Congressman-elect from Illinois. Three-quarter length portrait, seated, facing front] (LOC)](http://farm4.static.flickr.com/3444/3253744672_280e1f8372_s.jpg)
![[Abraham Lincoln, candidate for U.S. president. Head-and-shoulders portrait, facing right, June 3, 1860] (LOC)](http://farm4.static.flickr.com/3130/3253744436_0b1df30f69_s.jpg)
![[Abraham Lincoln, candidate for U.S. president. Half-length portrait, seated, facing front] (LOC)](http://farm4.static.flickr.com/3093/3252917783_e81308e684_s.jpg)
![[Presidential campaign button with portraits of Abraham Lincoln and Hannibal Hamlin] (LOC)](http://farm4.static.flickr.com/3127/3253744148_8589906875_s.jpg)


![[Abraham Lincoln, U.S. President. Seated portrait, holding glasses and newspaper, Aug. 9, 1863] (LOC)](http://farm4.static.flickr.com/3054/3253743680_87c0d915d0_s.jpg)


![[Abraham Lincoln, U.S. President. Seated portrait, facing front, January 8, 1864] (LOC)](http://farm4.static.flickr.com/3392/3252916681_e81dd0fff6_s.jpg)
![[Abraham Lincoln, U.S. President, looking at a photo album with his son, Tad Lincoln, Feb. 9, 1864] (LOC)](http://farm4.static.flickr.com/3465/3253743092_6e8ceffc46_s.jpg)
![[Abraham Lincoln, U.S. President. Seated portrait, facing right] (LOC)](http://farm4.static.flickr.com/3298/3252916341_a86b263d37_s.jpg)





Önceki Kayıtlar