Posted by : Unknown
Selasa, 08 November 2011
"Cara Menampilkan Jumlah total comment & jumlah Total Post". Jadi disini nanti Sobat akan lihat berapa banyak postingan dan comment yang ada di blog or website Sobat. Bagaimana caranya, seperti penjelasan dibawah ini:
1. Login ke blogger.com
2. Buka Dashboard blog opamer
3. Klik Layout
4. Lalu pilih Page Elements
5. Klik link Add a Gadget
6. Pilih HTML/JavaScript
7. Copy Paste Script dibawah ke kolom HTML/JavaScript:
<script style="text/javascript">
function showpostcount(json) {
document.write('Total Posts : <b>' + parseInt(json.feed.openSearch$totalResults.$t,10) + '</b><br>');}</script>
<script src="http://postkj.blogspot.com/feeds/posts/default?alt=json-in-script&callback=showpostcount"></script><script style="text/javascript"></script>
<script style="text/javascript">
function numberOfComments(json) {
document.write('Total Comments : <b>' + json.feed.openSearch$totalResults.$t + '</b><br>');}</script>
<script src="http://postkj.blogspot.com/feeds/comments/default?alt=json-in-script&callback=numberOfComments"></script>
KETERANGAN
Ganti tulisan Berwarna "Merah" bertuliskan "http://postkj.blogspot.com" dengan nama website opamer.
8. Kalau sudah diganti tinggal di save..
9. Finish
Rating: 4.5
Reviewer: Unknown
ItemReviewed: Cara Tampilkan Jumlah Comment and Post