BOWMANZ WEB

HEBOH!!! Orang Mojokerto Punya Blog...

Tips Blog [Artikel terkait - top komentator - recent comments]

Tips dasar blogger dulu udah pernah, sekarang ganti yang lebih lanjut. Pada postingan kali ini saya akan sedikit berbagi cara untuk menambah konten di blog kita, yaitu membuat artikel terkait, top 10 komentator, dan Recent Comments..! Hebat ya, satu posting tiga tips. duh sombong amat... Yah kan blog ini bukan blog tutorial yang tiap satu tutoriel dibuat satu posting, hehe piss bro ! "Wuooooey...cepetan donk kebanyakan omong loe !!!" Haduuuw, ga sabaran amat, oke deh langsung ajah...

Membuat Artikel Terkait

Artikel terkait atau realeted post ini untuk blog yang udah dilengkapi fasilitas readmore, kalo belum cepetan buat klik disini hehe.. Karena sudah lebih banyak postingan yang dipublikasikan jadi tidak ada salahnya toh jika membuat artikel yang di kait-kaitkan menurut label atau istilahnya "artikel terkait". hehe lanjuttt....

Duduk tenang depan Monitor, siapkan cemilan dulu (niru bahasanya blogger yang udah ngetop)

Masuk dulu lewat pintu www.blogger.com
Kalo udah masuk ke dasbor, langsung aja klik layout atau tata letak lalu edit Html (dah tau kan tempatnya ?) Kemudian di edit template html klik download template lengkap untuk mengantisipasi bila terjadi kesalahan agar data blog tidak ilang semua, lalu kasih tanda centang pada Expand Template Widget agar widget2 tidak ilang.

Langkah selanjutnya, tekan CTRL+F lalu ketikkan kode : <p><data:post.body/></p> ketemu, tambahkan kode dibawah ini dibawahnya:

<b:if cond='data:blog.pageType == "item"'>
<div class='similiar'>

<div class='widget-content'>
<h3>Artikel Terkait</h3>
<div id='data2007'/><br/><br/>
<script type='text/javascript'>

var homeUrl3 = &quot;<data:blog.homepageUrl/>&quot;;
var maxNumberOfPostsPerLabel = 4;
var maxNumberOfLabels = 7;

maxNumberOfPostsPerLabel = 7;
maxNumberOfLabels = 3;


function listEntries10(json) {
var ul = document.createElement(&#39;ul&#39;);
var maxPosts = (json.feed.entry.length &lt;= maxNumberOfPostsPerLabel) ?
json.feed.entry.length : maxNumberOfPostsPerLabel;
for (var i = 0; i &lt; maxPosts; i++) {
var entry = json.feed.entry[i];
var alturl;

for (var k = 0; k &lt; entry.link.length; k++) {
if (entry.link[k].rel == &#39;alternate&#39;) {
alturl = entry.link[k].href;
break;
}
}
var li = document.createElement(&#39;li&#39;);
var a = document.createElement(&#39;a&#39;);
a.href = alturl;

if(a.href!=location.href) {
var txt = document.createTextNode(entry.title.$t);
a.appendChild(txt);
li.appendChild(a);
ul.appendChild(li);
}
}
for (var l = 0; l &lt; json.feed.link.length; l++) {
if (json.feed.link[l].rel == &#39;alternate&#39;) {
var raw = json.feed.link[l].href;
var label = raw.substr(homeUrl3.length+13);
var k;
for (k=0; k&lt;20; k++) label = label.replace(&quot;%20&quot;, &quot; &quot;);
var txt = document.createTextNode(label);
var h = document.createElement(&#39;b&#39;);
h.appendChild(txt);
var div1 = document.createElement(&#39;div&#39;);
div1.appendChild(h);
div1.appendChild(ul);
document.getElementById(&#39;data2007&#39;).appendChild(div1);
}
}
}
function search10(query, label) {

var script = document.createElement(&#39;script&#39;);
script.setAttribute(&#39;src&#39;, query + &#39;feeds/posts/default/-/&#39;
+ label +
&#39;?alt=json-in-script&amp;callback=listEntries10&#39;);
script.setAttribute(&#39;type&#39;, &#39;text/javascript&#39;);
document.documentElement.firstChild.appendChild(script);
}

var labelArray = new Array();
var numLabel = 0;

<b:loop values='data:posts' var='post'>
<b:loop values='data:post.labels' var='label'>
textLabel = &quot;<data:label.name/>&quot;;

var test = 0;
for (var i = 0; i &lt; labelArray.length; i++)
if (labelArray[i] == textLabel) test = 1;
if (test == 0) {
labelArray.push(textLabel);
var maxLabels = (labelArray.length &lt;= maxNumberOfLabels) ?
labelArray.length : maxNumberOfLabels;
if (numLabel &lt; maxLabels) {
search10(homeUrl3, textLabel);
numLabel++;
}
}
</b:loop>
</b:loop>
</script>
</div>

</div>
</b:if>

Tulisan yang berwarna merah tu bisa diganti apa aja boleh meski bukan "Artikel terkait" entah itu kacang rebus atau jagung bakar hehe... kentang goreng :) wkkwkwkwkk...

Berikutnya Membuat Top 10 Komentator
Nih bagi blogger yang udah banyak komentarnya sekali-sekali buat penghargaan bagi sobat setia yang sudah berkomentar. Kalo diblog ini sih belum ada hehe.. komentarnya masih dikit malu...

Dah masuk blogger klik layout/tata letak lalu Add Widget, pilih page element atau HTML javasript lalu masukkan kode di bawah ini :

<script type="text/javascript">
function pipeCallback(obj) {
document.write('<ol>');
var i;
for (i = 0; i < obj.count ; i++)
{
var href = "'" + obj.value.items[i].link + "'";
var item = "<li>" + "<a href=" + href + ">" + obj.value.items[i].title + "</a> </li>";
document.write(item);
}
document.write('</ol>');
}
</script>
<script src="http://pipes.yahoo.com/pipes/pipe.run?_render=json&_callback=pipeCallback&_id=47909d73002419d14e697928bd9c4f24&url=http%3A%2F%2Fmasbhakti.blogspot.com&num=10&filter=Bhakti" type="text/javascript"></script>

Jangan lupa tulisan yang berwarna merah diganti dengan nama alamat blog situ sendiri hehe.. trus yang warna biru ganti dengan nama anda sebagai author. Sudah saya coba dan berhasil, selamat mencoba...

Terakhir membuat recent Comment atau komentar terakhir.
Caranya sama seperti yang Top komentator, tapi scriptnya aja yang gak sama..

<script style="text/javascript" src="http://anas.ku93.googlepages.com/comments.js"></script><script style="text/javascript">var numcomments = 10;var showcommentdate = true;var showposttitle = true;var numchars = 100;var standardstyling = true;</script><script src="http://masbhakti.blogspot.com/feeds/comments/default?alt=json-in-script&callback=showrecentcomments"></script>

Tulisan warna kuning ganti dengan jumlah komentar terakhir yang mo ditampilin, warna biru jumlah diskripsi komen lalu warna merah ganti ama blog situ sendiri,,, mudah toh mantep toh ayo monggo dicoba... I Love You Full kata Mbah Surip hahaha... Udahan dulu boss capek ngetiknya...

Berkaitan



3 komentar:

Anonim mengatakan...

they, however, give off unimaginable faculty. links of london charms The key is how to decide properly. The shape of links of london charms Earrings is connected to one’s face mold. People with triangular charms bracelets face are not apposite to bear long Links Of London Earrings with pendants links of london womens watches while studs in around identity can proffer a substance of coordination. links of london watch uk If you have an oval face, you can erode Links Of London Earrings in any style. cheap links of london rings Please never try too long, too small or too big ones.

df mengatakan...

Tricks For Finding Cheap Clothing And Jewelry monclerWhen you save money on your shopping trip, moncler Boutique you can spend the extra money on other things that you want. moncler pas cher For some people, the more funds they save, the more shopping they can do. moncler prix And while other people enjoy the saving, they also like holding on to their money. moncler soldes There are lots of ways that you can find excellent deals on merchandise for sale. moncler paris Discounted Clothing and Jewelry can be found using the right tools.For the average consumer a shopping trip will take place several times a year. That is due to the fact that most people require new clothes as body shapes change, or materials and colors begin to look warn and old. moncler polo With retailers always putting out new designs and fashion trends, moncler veste it can be hard to pass by the new items. When you can save a few dollars on new things, moncler doudoune it can make the process of frequent shopping not seem so bad.You will see a change in your spending money as you discover the tricks to buying deals. moncler homme If you look for sales and hold off for items that you want to come on sale, then you can save money.

chunxue mengatakan...

During the World War II, Art Deco jewellery was ugg sale a very popular style among women. The females started ugg boots wearing short dresses and cut their hair short. And uggs such boyish style was accessorized with Art Deco jewellery. They used cheap ugg boots long dangling earrings and necklaces, multiple bracelets and bold ugg boots uk rings.Art Deco jewellery has harshly geometric and symmetrical theme instead disocunt ugg boots of free flowing curves and naturalistic motifs. Art Deco Jewelry buy ugg boots today displays designs that consist of arcs, circles, rectangles, squares, and ugg outlet triangles. Bracelets, earrings, necklaces and rings are added with long ugg boots outlet lines and curves.One example of Art Deco jewelry is the Art Deco ring. Art Deco rings have ugg mall sophisticated sparkle and bold styles. These rings are not intended for a subtle look, they are meant to be noticed. Hence, these are perfect for people with bold styles.

Poskan Komentar

Komentar Anda adalah Motivator ...

Komentator

Ada kesalahan di dalam gadget ini

Recent Comments