Sunday, 24 March 2013

Tutorial: Komen Terkini Bergambar

Assalamualaikum.
nie tutorial untuk recents comments with picture/avatar cam aku punya kat sidebar. hehe :)
mood rajin angat nie. heheh. macam2 tutorial nak dibuat cuma belom publish je.  :)
jom letak widget nie di blog supaya senang nak tengok komen2 terkini :D
*mabeles punya ayat* :P




1. Dashboard > Layout > Add A Gadget

2. Pilih Javascript and HTML dan masukkan kod

<style type="text/css">
ul.w2b_recent_comments {
    list-style: none;
    margin: 0;
    padding: 0;
}
.w2b_recent_comments li {
    background: none !important;
    margin: 0 0 6px !important;
    padding: 0 0 6px 0 !important;
    display: block;
    clear: both;
    overflow: hidden;
    list-style: none;
}
.w2b_recent_comments li .avatarImage {
    padding: 3px;
    background: #fefefe;
    -webkit-box-shadow: 0 1px 1px #ccc;
    -moz-box-shadow: 0 1px 1px #ccc;
    box-shadow: 0 1px 1px #ccc;
    float: left;
    margin: 0 6px 0 0;
    position: relative;
    overflow: hidden;
}
.avatarRound {
    -webkit-border-radius: 100px;
    -moz-border-radius: 100px;
    border-radius: 100px;
}
.w2b_recent_comments li img {
    padding: 0px;
    position: relative;
    overflow: hidden;
    display: block;
}
.w2b_recent_comments li span {
    margin-top: 4px;
    color: #666;
    display: block;
    font-size: 12px;
    font-style: italic;
    line-height: 1.4;
}
</style>
<script type="text/javascript">
//<![CDATA[
    // Recent Comments Settings
    var
 numComments  = 5,
 showAvatar  = true,
 avatarSize  = 60,
 roundAvatar = true,
 characters  = 40,
 showMorelink = false,
 moreLinktext = "More »",
 defaultAvatar  = "http://www.gravatar.com/avatar/?d=mm",
 hideCredits = true;
//]]>
</script>
<script type="text/javascript" src="http://helplogger.googlecode.com/svn/trunk/w2b recent comments with avatars.js"></script>
<script type="text/javascript" src="http://budaksukavanilla.blogspot.com/feeds/comments/default?alt=json&callback=w2b_recent_comments&max-results=5"></script>

3. Save!


Nota Pelangi
Kuning: jumlah komen
Hijau: Saiz gambar
Merah: URL gambar khas untuk ANONYMOUS
Biru: URL blog korang


dah siap? menarik kan? hehhe. :)
jaga diri baek2 semua.
ingat ALLAH selalu. :D
ilal liqa' :)

8 comments:

  1. Oh My, comelnya tutorial ni! Wink wink, nak cuba juga lah! ^___^

    ReplyDelete
  2. tq3...sya dah try buat..menjadi. Dah lma crik tuto ni, skjp lgi nak share dkt blog blh? ;)

    ReplyDelete
  3. ck jari manis: blh je. . :) kte kgsi ilmu. . :3

    ReplyDelete
  4. Macam mana nak exclude nama kita eh? :)

    ReplyDelete
  5. Wah comel lah. Dah try buat.. Nice.. thanks :)

    ReplyDelete
  6. This comment has been removed by the author.

    ReplyDelete

drop a comment~
arigatouuu!