Thursday, January 29, 2009

Bikin ReadMore Cara:1

Dear Gals,

Bosen gak sih sama postingan tentang yang satu ini? Hihii... moga aja ngga. Saking banyaknya yang ngebahas soal ini saya sering nyoba-nyoba sendiri, error sendiri, and pusing sendiri ~~hiks..hiks.. :'( kacian deh loe~~. Tapi sejak pake caranya mba pinter satu ini, readmore yang saya pake (dalam hal ini continue reading) jadi gak pernah bermasalah tuch!

[[Sekalian ach mo ucapin: thank u so much buat mba' Jovie... bener-bener dech, you hv such a great way with words, salute! Btw aq contek neh mba caranya, jgn marah yac^^;]]

Truz kenapa judulnya "Cara:1" sich??? Hhee, itu karena ternyata ada banyak cara untuk membuat program Readmore ini, dan saya bakal ngebahas cara kedua di posting selanjutnya. Nah klo masih mo tahu cara bikin readmore persis seperti yang ada di blog ini, lanjut yuk! Mari...


  1. Masuk ke halaman edit html
  2. Centang Expand Widget Template
  3. Cari kode di bawah ini: (tekan Ctrl+F untuk memudahkan pencarian)

    <p><data:post.body/></p>

  4. Letakkan kode di bawah ini sebelum kode pada langkah no.3

    <b:if cond='data:blog.pageType == "item"'>
    <style>.fullpost{display:inline;}</style>
    <p><data:post.body/></p>
    <b:else/>
    <style>.fullpost{display:none;}</style>

  5. Dan kode di bawah ini setelah kode pada langkah no.3

    <a expr:href='data:post.url'>Continue Reading..</a></b:if>

  6. Sehingga hasilnya menjadi seperti ini:

    <b:if cond='data:blog.pageType == "item"'>
    <style>.fullpost{display:inline;}</style>
    <p><data:post.body/></p>
    <b:else/>
    <style>.fullpost{display:none;}</style>
    <p><data:post.body/></p>
    <a expr:href='data:post.url'>Continue Reading..</a></b:if>

  7. SAVE Template.
  8. Sekarang klik Settings >> Formatting >> Post Template, dan letakkan kode berikut ini:

    <div class="fullpost">

    </div>

  9. SAVE Setting.
  10. Nah nantinya tiap kamu mau buat postingan baru kode di no.8 akan otomatis muncul di tab Edit Html (bukan Compose). Berikut contoh cara panggilnya:

    Wikipedia is a multilingual, Web-based, free-content encyclopedia project. The name "Wikipedia" is a portmanteau (a combination of portions of two words and their meanings) of the words wiki (a type of collaborative Web site) and encyclopedia. Wikipedia's articles provide links to guide the user to related pages with additional information.
    <div class="fullpost">
    Wikipedia is written collaboratively by volunteers from all around the world; anyone can edit it. Since its creation in 2001, Wikipedia has grown rapidly into one of the largest reference Web sites, attracting at least 684 million visitors yearly by 2008. There are more than 75,000 active contributors working on more than 10,000,000 articles in more than 260 languages. As of today, there are 2,726,941 articles in English. Every day, hundreds of thousands of visitors from around the world collectively make tens of thousands of edits and create thousands of new articles to augment the knowledge held by the Wikipedia encyclopedia.
    </div>

Selesai dech! Moga gak bingung yach dengan penjelasan yg njelimet ini, and moga berhasil...

3 Efficacious Recipes to Eliminate Cellulite

No matter how old you are, what your skin type, and how your weight, cellulite is always a great enemy. He usually appears in the thighs, ab...