Membuat Highlight Author Comment Pada Komentar Thread

Postingan ini menyambung postingan sebelumnya tentang cara saya bikin highlight author comments tanpa plugin, dan kali ini saya akan berikan trik bikin sorotan komentar penulis apabila kamu memakai plugin WordPress Thread Comment, karena trik yang saya posting sebelumnya tidak berfungsi pada komentar-komentar nested.

  1. Pertama-tama install plugin wordpress thread comment apabila belum menggunakannya.
  2. Setelah diaktifkan, buka tab Options atau Settings pada dashboard dan klik tab WP Thread Comment
  3. Pada box Edit Comment HTML, masukkan kode dibawah ini menggantikan kode-kode defaultnya (jangan lupa untuk mengganti email@domain.com dengan e-mail kamu) ↓
    <div class="comment-childs<?php if ($comment->comment_author_email == "email@domain.com") { ?><?php echo $deep ? ' highlight' : ''; ?>" id="comment-[ID]"><?php }  else { ?><?php echo $deep%2 ? ' chalt' : ''; ?>" id="comment-[ID]"><?php } ?><?php if(function_exists("get_avatar")) echo get_avatar( $comment, 32 ); ?><p>[author] <em>reply on [date] [time]</em>:</p>[content]</div>
  4. Pada box Edit Comment CSS, masukkan style dibawah ini menggantikan style yg sudah ada:
    .editComment, .editableComment, .textComment{ display: inline;}.comment-childs{border: 1px solid #999;margin: 5px 2px 2px 4px;padding: 4px 2px 2px 4px;background-color: white;} .chalt {background-color: #FFFFFF;} .highlight {background-color: #00CCFF;}#newcomment{border:1px dashed #777;width:90%;} #newcommentsubmit{color:red;} .adminreplycomment{border:1px dashed #777;width:99%;margin:4px;padding:4px;background-color:#C8FF9F;} .mvccls{color: #999;}

background-color pada class .chalt berfungsi untuk memberi warna background pada komentar orang lain, sedangkan background-color pada class .highlight berfungsi untuk memberi warna background komentar penulis/admin. Ganti sesukamu. Silakan dicoba!

Instant Internet Business Ideas

Related Posts ↓

Rahasia Sukses Paid Review

{20 Comments so far }

  1. ???? said,

    Wrote on May 26, 2008 @ 1:59 pm

    thanks for your introduction of this plugin. thanks!

  2. persikers said,

    Wrote on May 26, 2008 @ 7:57 pm

    wah tambah lagi 1 ilmu… Thx mas atas tips nya

  3. Eka said,

    Wrote on May 28, 2008 @ 8:30 am

    wah…musti utak atik lagi nih… :)

  4. kipas said,

    Wrote on June 6, 2008 @ 7:48 am

    bro, setelah coba kok dapat pesan :

    Parse error: syntax error, unexpected T_STRING, expecting ‘,’ or ‘;’ in /plugins/wordpress-thread-comment/wp-thread-comment.php(465) : eval()’d code on line 1

    maksudnya bagaimana?

  5. fanari said,

    Wrote on June 7, 2008 @ 12:57 pm

    @kipas: maaf ya ada sedikit kesalahan di kodenya, tapi sekarang udah saya benerin, jadi silakan coba lagi mas..

  6. mig33citeureup said,

    Wrote on June 11, 2008 @ 3:40 pm

    Mas.. naro adsense di akhir artikel atau tengah artikel tuk wp.2.5.1 gimana caranya.. ga ada single.php… trims

  7. fanari said,

    Wrote on June 14, 2008 @ 7:26 pm

    @mig33citeureup: coba masukin ke index.php

  8. Ronggo said,

    Wrote on June 22, 2008 @ 4:09 pm

    mantaf juga nuh perlu di coba

  9. dony said,

    Wrote on January 15, 2009 @ 4:31 am

    udah ku baca tinggal praktek nie

  10. Accittind said,

    Wrote on January 22, 2009 @ 6:33 am

    Using internet is simple as hell. But I can tell y ou right now, it can be very hard, if you are the first time user.
    So, first thing I suggest – open the Explorer, and type in the address you like.
    You’ll get there really fast, it depends on your connection speed.
    Good luck.

  11. Eko Hary said,

    Wrote on May 14, 2009 @ 7:14 am

    Tengkyu atas ilmunya, langsung dicoba.

  12. Akmal Online said,

    Wrote on June 13, 2009 @ 2:25 pm

    Praktekkin dulu ah..
    Menarik nih kyknya..

  13. Wordpress Tip : Create Highlighted Author’s Comments | Home of RIA said,

    Wrote on July 30, 2009 @ 11:15 am

    [...] Ariawan’s blog, they are Belajar CSS Yuk: Membuat Higlight Komentar(Bahasa Indonesia) and Bikin Highlight Author Comment Pada Komentar Thread(Bahasa Indonesia). To make this article easier to understand in, I assume you are using the default [...]

  14. budijaya said,

    Wrote on August 14, 2009 @ 10:24 pm

    thank mas otak-atiknya
    mw coba dulu di xampp

  15. bee said,

    Wrote on December 1, 2009 @ 1:01 am

    ribet euuuy….

  16. Info Gaptek said,

    Wrote on December 14, 2009 @ 3:35 pm

    Thanks sob!

    Akhirnya berhasil juga ngoprek wp-thread-comment

    :thumbsup:

  17. satriacell said,

    Wrote on January 7, 2010 @ 7:46 am

    wah bagus infonya kang, tapi sayangnya aku ga pake wordpress, untuk yang blogger ga ada ya sob supaya aku bisa pasang makasih tutornya

  18. setting gprs said,

    Wrote on January 27, 2010 @ 8:18 am

    aku juga cari yang buat blogger nich

  19. Rafi said,

    Wrote on February 17, 2010 @ 11:40 am

    Wow….Thanks yah Infonya. Bener2 Kereeen :)

  20. Optimasi SEO said,

    Wrote on May 9, 2010 @ 10:46 am

    wah kok warnanya gak bisa di rubah sesuai keinginan kita ya gan?

Comment RSS · TrackBack URI

Leave a Comment ↓

Name

E-mail

Website