Wednesday, July 15, 2009

Membuat Artikel yang Berhubungan Berdasarkan Label

Sekarang kita belajar membuat "Artikel yang Berhubungan Berdasarkan Label" ( related post)...related post itu biasanya muncul dibawah postingan kita misalnya kita buat tulisan tentang Cara menulis yang baik trus label nya sama dengan tulisan Cara membaca yang baik, maka dibawah artikel Cara menulis yang baik akan muncul related post Cara membaca yang baik...kira kira seperti itu.
Sama seperti tutorial ku sebelumnya tinggal copy paste aja kode kodenya tidak sulit kan..heee , nah tapi yang ini harus hati hati ya pren caranya seperti ini:

1. Login ke Blogger
2. Pilih menu "Layout-->Edit HTML"
3. Beri tanda centang pada kotak "Expand Widgets Template".
4. Lalu Copy kode dibawah ini

<b:if cond='data:blog.pageType == "item"'>
<div class='similiar'>
<div class='widget-content'>
<h3>Artikel Yang Berhubungan</h3>
<div id='data2007'/><br/><br/>
<script type='text/javascript'>
var homeUrl3 = "<data:blog.homepageUrl/>";
var maxNumberOfPostsPerLabel = 4;
var maxNumberOfLabels = 10;
maxNumberOfPostsPerLabel = 100;
maxNumberOfLabels = 3;
function listEntries10(json) {
var ul = document.createElement('ul');
var maxPosts = (json.feed.entry.length <= maxNumberOfPostsPerLabel) ?
json.feed.entry.length : maxNumberOfPostsPerLabel;
for (var i = 0; i < maxPosts; i++) {
var entry = json.feed.entry[i];
var alturl;
for (var k = 0; k <; k++) {
if ([k].rel == 'alternate') {
alturl =[k].href;
var li = document.createElement('li');
var a = document.createElement('a');
a.href = alturl;
if(a.href!=location.href) {
var txt = document.createTextNode(entry.title.$t);
for (var l = 0; l <; l++) {
if ([l].rel == 'alternate') {
var raw =[l].href;
var label = raw.substr(homeUrl3.length+13);
var k;
for (k=0; k<20; k++) label = label.replace("%20", " ");
var txt = document.createTextNode(label);
var h = document.createElement('b');
var div1 = document.createElement('div');
function search10(query, label) {
var script = document.createElement('script');
script.setAttribute('src', query + 'feeds/posts/default/-/'
+ label +
script.setAttribute('type', 'text/javascript');

var labelArray = new Array();
var numLabel = 0;
<b:loop values='data:posts' var='post'>
<b:loop values='data:post.labels' var='label'>
textLabel = "<>";
var test = 0;
for (var i = 0; i < labelArray.length; i++)
if (labelArray[i] == textLabel) test = 1;
if (test == 0) {
var maxLabels = (labelArray.length <= maxNumberOfLabels) ?
labelArray.length : maxNumberOfLabels;
if (numLabel < maxLabels) {
search10(homeUrl3, textLabel);

5. Cari Kode <data:post.body/> dan letakkan script tadi dibawahnya ( di bawah kode <data:post.body/> ). Untuk blog yang ada link "readmore/baca selengkapnya" biasanya akan terdapat 2 kode. Taruh dibawah kode yang pertama.
6. Lalu simpan
7. Selesai

Tip untuk menemukan kode html secara cepat tekan CTRL+F lalu akan muncul kotak isian Find nah kamu ketik aja kode yang kamu cari disitu nanti tinggal tekan tombol next letak kode nya dak ketemu sendiri


Henny Y.Caprestya on July 16, 2009 at 10:26 PM said...

ooo...gitu toh. ternyata bisa juga ya?
aku pikir selama ini nggak bisa.
makasih atas infonya.

sobat on July 17, 2009 at 2:53 AM said...

jalan sore sambil cari kenalan..main e blog ya....tenang aja ga ada polisi koq hehehe salam kenal

Seti@wan Dirgant@Ra on July 21, 2009 at 2:47 AM said...

Makasih sobat atas tutorial ini.

simahir on August 2, 2009 at 9:22 PM said...

info yang sangat membantu..Makasih Mas.

R n B on August 2, 2009 at 9:37 PM said...

buat simahir : Sama sama sob semoga blog ini bermanfaat buat semuanya

R n B on August 2, 2009 at 9:37 PM said...

Buat Seti@wan Dirg@ntara : Sama sama sob semoga membantu

Video Bokep Online on November 22, 2009 at 10:18 PM said...

wah tanks forr alll

Anonymous said...

Southeast pandora jewelry and main Asian countries have twisted pandora bracelets rubies for centuries, but research as to where, cheap pandora charms and how to find more deposits is spare, and production has figured out how pandora uk and mining companies,” Giuliani says, pandora sale to look at exactly the right time and place.Farther cheap pandora investigation of claret formation, based on tectonic scenery, geochemistry, buy pandora fluid inclusions and isotopic ratios, allowed Giuliani’s lineup to remodel a new prototype pandora bracelets uk for the French Institute of Research for Development (IRD) and the National Scientific cheap pandora bracelets Center of Research, two government-sponsored knowledge and technology research pandora bracelets sale institutes that aim to aid in the sustainable pandora bangles development of developing countries.Before the collision of the Eurasian and Indian plates, cheap pandora bangles lagoons or deltas sat in the regions where marble is giant, he says, “andthere is the brains pandora necklace to expect that the new thoughts should help development of the artless capital.” cheap pandora charms Virginie Garnier, Gaston Giuliani and Daniel Ohnenstetter urban the shape to do just that. pandora charm They work for the garnet genesis.While studying the bedrock in Vietnam in 1998, new pandora charms the French players found rubies, which detained traces of aluminum, chromium and pandora beads vanadium from universities, international corporations, governments and why the rubies got there, and has created a paradigm to help these evaporites, pandora charm beads Garnier says, when the Eurasian and Indian plates pandora jewellerycollided, raising the Himalaya Mountains.

RIVAL ARDILES SANDO on November 13, 2010 at 5:13 AM said...

ko saya ga nemu kode

Mas Jojo on September 15, 2011 at 9:11 PM said...

Saya kok dapat gini GAn?
Your template could not be parsed as it is not well-formed. Please make sure all XML elements are closed properly.
XML error message: The content of elements must consist of well-formed character data or markup.

Anonymous said...

Rayban sunglasses accredit you to attending as your admired amateur or actress, aloof like a fast cantankerous to Hollywood.Ray ban solglasögon are one of the best iconic brands in the eyewear industry and favoured for their timelessly beautiful sunglasses which never abort to attending calmly beautiful and on trend. Cheap Gucci SunglassesThe cast is additionally the best of abounding celebrities and appearance icons and the assorted styles are consistently authoritative appearances at summer music festivals and aerial contour events.
This implies its enduringness and power to withstand the stiffness of the sport as well as the compounding of all of the other elements remarked above.
Cheap Moncler Jackets Most quality jackets do come at a higher cost but this unremarkably implies that these last longer due to their workmanship that warranties lastingness.

Surprised monkey looked at the abounding moon: Japan and Vietnam afore the accomplishments of high-relief lacquer,Cheap Replica Gucci Watches argent moon band acceptance to Angular Momentum of the ‘Tec & Art’ collection.
The first thing to do is for you to choose the Pandora bracelet size and type that would suit you beautifully. There is certainly an oxidized silver fashion that happens using a gold clasp. The leather bracelets can be found in numerous big difference shades. The snap clasps are incredibly protected, and have a tendency to mix in with all the other beads within the bracelet.Cheap Pandora Jewellery This braided leather bracelet by Pandora is long in length so it can be doubled around your wrist

membuat artikel terkait on October 6, 2012 at 10:53 PM said...

sepertinya saya juga memakai script sepeti itu

Direktori Penerjemah Indonesia on October 22, 2012 at 12:28 PM said...

Dicoba dulu mas widgetnya.
Makasih dah sharing.. :)

Post a Comment

Silahkan tulis komentar tentang blog ini, usulan, saran dan kritik serta ide ide yang membangun.

Related Posts Plugin for WordPress, Blogger...

Hobi Unduh Fans


Masukkan Emailmu Untuk Berlangganan Tutorial Terbaru Via Email:

Delivered by FeedBurner



Site Info

Powered by  MyPagerank.Net


100 Blog Indonesia Terbaik

Pop Up

Tutorial Tip Trik Copyright © 2009 WoodMag is Designed by Ipietoon for Free Blogger Template