Pasang Related Post (Artikel Terkait) Cantik Ala Utta Bag.2

Baiklah saya langsung saja yah all, soalnya da keburu mlm :D , jadi Related Post (Artikel Terkait) yg akan saya share kali ini, yaitu pengembangan dari Related Posts Ver.1 yang memiliki fungsi scroll atau bisa dilihat disini. nah berhubung karena saya rencana mau mengganti related post lagi, yaa lebih baik dishare ajj siapa tau swktu2 mau pke lagi, dan siapa tau ada diantra sobat blogger yang ingin memakainya.!heheee,..

Oke, biar gampang bisa dilihat seperti gambar di bawah ini :
 
http://picturestack.com/912/85/14Hut2a4downMlJ.jpg

Gimana?? tertarik untuk memasangnya....
jika begitu sobat tinggal mengikuti langkah-langkah berikut.

1. Login ke blogger
2. Tata Letak.
3. Edit HTML.
4. Carilah kode ]]></b:skin> ,lalu letakkan Kode CSS berikut tepat diatasnya.
 
/* Related Posts Ver 2 */
.rbbox{padding:13px;color:darkred;font:normal 15px lobster,sans-serif;margin:5px 0;opacity:0.8;background-color:#151515;border:1px solid #333;border-top-color:#333;border-bottom-color:#111;transition:all .2s ease-in-out;-moz-transition:all .2s ease-in-out;-o-transition:all .2s ease-in-out;-ms-transition:all .2s ease-in-out;-webkit-transition:all .2s ease-in-out;}
.rbbox:hover{opacity:2.2;background:#111 url(URL) no-repeat right bottom;border:1px solid #222;box-shadow:inset 0 0 7px #000;-moz-box-shadow:inset 0 0 7px #000;-webkit-box-shadow:inset 0 0 7px #000;}
.rbbox li{border-bottom:1px solid #000;
-webkit-box-shadow:0 1px -0px #222;-moz-box-shadow:0 1px -0px #222;box-shadow:0 1px -0px #222}
.rbbox li a:hover{margin-left:12px;background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjl0HwomfcMH-dbintT_PPu-eeSAEQXWyYIaddX6OCWBB2rCV56Yrc4QKcQWp9zXttcgbEi41iMzotY72gGHap_rDyUJjFC5AcRalSiywDEI1EWN0BVXzRTAuibVIm6xmMAtBr6fktnoktA/s1600/lightning.gif);}
.rbbox ul li{list-style:none;padding:4px 5px 4px 17px;line-height:25px;background:url(http://i1211.photobucket.com/albums/cc432/Aldi96/icont.gif) no-repeat 0 7px;}
.rbbox a:visited,
.rbbox a:link {color:#bbb;font:bold 13px Terminal Dosis Light;text-shadow:0 0 2px #000;text-decoration:none;transition:all .2s ease-in-out;-moz-transition:all .2s ease-in-out;-o-transition:all .2s ease-in-out;-ms-transition:all .2s ease-in-out;-webkit-transition:all .2s ease-in-out;}
.rbbox ul {list-style:none;margin-left:-38px}
.rbbox a:active {color:#eee;text-decoration:line-through;}
.rbbox a:hover {color:#00CCD3;text-shadow:0px 0px 2px #00CCD3;text-decoration:none;}
 
5. Langkah Selanjutnya kita cari lagi Kode <p><data:post.body/></p> , Setelah ketemu, letakkan kode script berikut tepat dibawahnya. (bisa juga diletakkan diatas kode <div class='post-footer-line post-footer-line-1'> )

<b:if cond='data:blog.pageType == &quot;item&quot;'>
<span style='color:#333;font:normal 15px impact;text-shadow:0 0 1px #ddd'><h3>You might also like these article :</h3></span>
<div class='rbbox'>
<div style='margin:0;padding:7px;height:220px;overflow:auto;border:1px solid #222;'>
<div id='albri'/>
<script type='text/javascript'>
var homeUrl3 = &quot;<data:blog.homepageUrl/>&quot;;
var maxNumberOfPostsPerLabel = 4;
var maxNumberOfLabels = 10;
maxNumberOfPostsPerLabel = 50;
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;albri&#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>
<script type='text/javascript'>RelPost();</script>
</div>
</b:if>

6. Priview dulu, jika tidak terjadi masalah pada templatenya, maka baru Klik SIMPAN TEMPLATE.

NB :>> Diatas terdapat tulisan yang berwarna, sobat tinggal merubahnya saja sesuai keinginan.

Lihat Juga Related Post Yang Lainnya :

1. Pasang Related Post (Artikel Terkait) Thumbnails - Marquee (Berjalan). dan
2. Pasang Related Post (Artikel Terkait) With Thumbnail And Summary.


Semoga tutorial ini berguna bagi anda, jangan lupa komentarnya yach.hehee,.. ^^