How to Display Elements (Ads) Only On (Or Only Not At) Individual Single Post Item View Cara Tampilan Elemen (Iklan) Hanya Aktif (Atau Tidak Hanya Pada) Masing-masing Satu Jenis Lihat Posting

Blogger.com, a popular free blog publishing service from Google, has a extremely easy to use and convenient template system that allows users to design the blog user interface presentations by selecting a theme and then drag and drop various page elements such as poll, newsreel, video bar, feed, label, logo, AdSense, HTML/JavaScript and more to align them according to users' preference on blog layout. Blogger.com, yang populer penerbitan layanan blog gratis dari Google, yang sangat mudah dan nyaman untuk menggunakan sistem template yang memungkinkan pengguna untuk desain blog pengguna presentasi dengan memilih tema dan kemudian tarik dan lepas berbagai elemen halaman seperti jajak pendapat, film berita , video bar, pakan, label, logo, AdSense, HTML / JavaScript dan masih banyak lagi untuk menyesuaikan mereka menurut pengguna preferensi di blog layout. However, it also comes with serious limitations, such as when you want to make certain elements (ie Google AdSense ad unit) to appear and show when visitors visit single post item individually, or just want to shown the widget component block on homepage, archive and label or category pages. Namun, ia juga dilengkapi dengan keterbatasan serius, seperti bila Anda ingin membuat elemen tertentu (yakni unit iklan Google AdSense) untuk muncul dan muncul ketika pengunjung mengunjungi satu pos item individual, atau hanya ingin ditampilkan pada widget komponen blok pada homepage, arsip dan label atau kategori halaman.

Blogger.com allows users to manually the XML-based template HTML, thus allows a hack which enables users to manually edit the HTML code to achieve the aim to display and show certain widgets or part of webpages on individual post page view only. Blogger.com memungkinkan pengguna untuk secara manual XML berbasis template HTML, sehingga memungkinkan sebuah hack yang memungkinkan pengguna untuk mengedit secara manual kode HTML untuk mencapai tujuan untuk menampilkan dan menampilkan beberapa widget atau bagian dari halaman web pada setiap pos hanya melihat halaman. However, you have need to have a basic HTML knowledge to modify the HTML code of Blogger's template, which as editable by clicking on Template tab (or Layout of the blog you want to change if at Dashboard), and then click on Edit HTML . Namun, Anda perlu untuk memiliki pengetahuan dasar HTML untuk mengubah kode HTML dari template dari Blogger, seperti yang dapat diedit dengan mengklik tab Template (atau Layout dari blog yang akan diubah jika di Dashboard), dan kemudian klik Edit HTML.

The trick is show a widget in single post item view only is to add the following two lines of code to the top and bottom of the code block respectively: The trick yang menampilkan widget di satu pos hanya melihat item adalah dengan menambahkan dua baris berikut ke kode bagian atas dan bawah masing-masing blok kode:

<b:if cond='data:blog.pageType == "item"'>
</b:if>

The above lines will add in a condition which value is negative is the blog is not showing individual post content page. Baris di atas akan menambahkan dalam kondisi yang nilai negatif adalah blog tidak muncul setiap posting konten halaman. Thus anything that are wrapped inside it won't be shown on homepage, label or category pages, or archive pages. Oleh karena itu sesuatu yang dibungkus di dalamnya tidak akan ditampilkan pada homepage, label atau kategori halaman, atau halaman arsip. For example, while Misalnya, sementara wrapping the AdSense ads manually beside the post content AdSense rata iklan secara manual di samping pos konten , you can make the ads displayed only when individual posts are viewed by adding above 2 lines to the code, so that it will has the following structure: , Anda dapat membuat iklan yang ditampilkan hanya jika setiap posting yang dilihat dengan menambahkan 2 baris di atas ke kode, sehingga akan memiliki struktur sebagai berikut:

<b:if cond='data:blog.pageType == "item"'>
Parsed Google AdSense Ad Code (guide to Parsing Google AdSense Kode Iklan (panduan parse the HTML code of AdSense JavaScript with escape character parse HTML code AdSense JavaScript dengan karakter diri ) )
</b:if>

To display the page elements or ad units on every pages except individual post content view pages, wrap the following lines of code instead: Untuk menampilkan elemen halaman atau unit iklan pada setiap halaman kecuali setiap pos melihat konten halaman, wrap baris berikut kode sebagai gantinya:

<b:if cond='data:blog.pageType != "item"'>
</b:if>

The above statements make use of conditional statements similar to IF, ELSE, END IF in most programming languages. Pernyataan di atas menggunakan pernyataan yang mirip dengan kondisi IF, ELSE, END JIKA pada kebanyakan bahasa pemrograman. The Blogger XML support these three conditional statements too. Blogger XML mendukung tiga pernyataan kondisional juga. Two already been used above, with the third one ELSE is <b:else>. Dua sudah digunakan di atas, dengan ketiga ELSE adalah <b:else>. You can make use of <b:else> to instruct Blogger template to display this widget (eg AdBrite ads) on all pages except single post pages, and show another widget (eg AdSense ads) on individual post pages. Anda dapat menggunakan <b:else> ke menginstruksikan Blogger template untuk menampilkan widget ini (misalnya AdBrite iklan) di semua halaman posting kecuali satu halaman, dan menampilkan widget lain (misalnya iklan AdSense) pada setiap pos halaman.

Other than ads code or JavaScripts that are manually inserted into Blogger HTML, the above trick can be applied to widget based page elements that are added to the layout. Selain iklan atau kode JavaScripts yang secara manual dimasukkan ke Blogger HTML, trik di atas dapat diterapkan untuk widget berbasis elemen halaman yang ditambahkan ke dalam layout. But you need to study carefully the HTML code to identify which blocks of code is the element in order to add in above codes to wrap on top and bottom around them. Tapi Anda harus hati-hati untuk belajar kode HTML untuk mengidentifikasi blok kode yang merupakan elemen untuk menambahkan kode di atas ke dalam wrap di atas dan bawah di sekitar mereka.

IMPORTANT : The page is machine translated and provided "as is" without warranty. PENTING: Halaman yang diterjemahkan mesin dan diberikan "sebagaimana adanya" tanpa jaminan. Machine translation may be difficult to understand. Mesin terjemahan mungkin sulit dimengerti. Please refer to Silakan merujuk ke original English article artikel asli Inggris whenever possible. bila memungkinkan.


14 Responses to “How to Display Elements (Ads) Only On (Or Only Not At) Individual Single Post Item View” 14 Responses to "Bagaimana Tampilan Elemen (Iklan) Hanya Aktif (Atau Tidak Hanya Pada) Masing-masing Satu Jenis Posting Lihat"

  1. joe joe
    April 14th, 2009 06:24 14 April, 2009 06:24
    14 14

    Bravo!! Bravo! They work first time, both wrap adsense tip and this one too. Mereka bekerja pertama kali, baik wrap adsense tip dan yang satu ini juga. Nobody has ever explaining this as clear as easy as yours. Tidak seorangpun yang pernah menjelaskan ini sebagai jelas semudah Anda. Thanks Terima kasih

  2. Joharin Joharin
    January 12th, 2009 18:20 Januari 12, 2009 18:20
    13 13

    Hey there, thanks for sharing this technique. Hey there, thanks for sharing teknik ini. However, I've tried this on my blog but can't see the correct result. Namun, saya sudah mencoba ini di blog saya, tetapi tidak dapat melihat hasil yang benar.

    When you say 'item', would that means the url for that particular post? Bila Anda berkata 'item', yang berarti akan url bagi dikirim?

    Thank you for your kind help! Thank you for your kind help!

  3. Tarun Goel Tarun Goel
    October 2nd, 2008 06:01 2 Okt 2008 06:01
    12 12

    Nice Blog. Nice Blog. I've gone thru your post But didn't understand that where exactly (in Edit HTMl of Bloggers Layout) to paste the codes after parsing the HTML code of AdSense JavaScript with escape characters. I've gone melalui pos tetapi tidak memahami bahwa apabila tepat (dalam Edit HTML dari Blogger Layout) untuk menyisipkan kode HTML setelah parsing kode AdSense JavaScript dengan karakter diri.

    Pls Help. Bantuan pls. I am in great need of it. I am in great need of it.

    I shall be highly obliged. Saya akan sangat wajib.

  4. HydroMan HydroMan
    September 27th, 2008 11:05 September 27, 2008 11:05
    11 11

    Can this be done with wordpress in a similar way? Ini dapat dilakukan dengan wordpress dalam cara yang sama?

  5. izu mou Izu mou
    September 27th, 2008 10:44 September 27, 2008 10:44
    10 10

    Thank You very mush.It is working perfectly here. Thank You very mush.It bekerja sempurna di sini.

  6. Sherin Sherin
    September 7th, 2008 21:20 7 September, 2008 21:20
    9 9

    This is an extremely well article and whatever saying here in intact while going to real time basis. Ini adalah artikel yang sangat baik dan apa yang dikatakan di utuh sambil pergi ke real-time basis. My appreciations to giving such terrific information and the well written style. Saya appreciations untuk memberikan informasi dan dahsyat seperti yang ditulis dengan baik gaya. Nice work. Nice work.

    I have placed ad sense by following the instructions given here and it is working fantastic without a second involvement. Saya rasa telah menempatkan iklan dengan mengikuti petunjuk yang diberikan di sini dan bekerja fantastis tanpa keterlibatan kedua.

    Many thanks from my end. Many thanks dari akhir.

    Sherin from Investinternals Sherin dari Investinternals

  7. Jmay88 Jmay88
    August 16th, 2008 23:54 16 Agust 2008 23:54
    8 8

    Thanks a lot..this trick is very useful to me.. Thanks a lot .. Trik ini sangat berguna untuk saya ..

  8. gre GRE
    May 30th, 2008 02:30 30 Mei 2008 02:30
    7 7

    this is what i looking for. ini adalah apa yang saya cari. thanks for help. thanks for help.

  9. sheetal sheetal
    May 6th, 2008 22:19 6 Mei 2008 22:19
    6 6

    Hi, Hai,
    I like to play with html, and location of adsense on my blogs. Saya suka bermain dengan html, dan lokasi dari adsense di blog saya. I chanced upon your post and implemented the code to appear on a single post. Aku chanced pada posting Anda dan menerapkan kode yang muncul pada satu pos. Then I got a new template and I had to start all over again.So now I have bookmarked your post, for future reference. Kemudian saya mendapatkan template baru dan saya harus mulai seluruh again.So sekarang saya ada bookmarked posting Anda, untuk referensi di masa mendatang. Great post. Great posting.

  10. Vlada Vlada
    April 11th, 2008 01:29 11 Apr 2008 01:29
    5 5

    I've tried but code is automatically set to: I've tried tetapi kode diatur secara otomatis ke:


    test display uji layar

    My aim is to display “test display” only on homepage. Saya Tujuannya adalah untuk menampilkan "uji layar" hanya pada homepage.

  11. Rapidshare Bloggers Rapidshare Blogger
    January 13th, 2008 01:32 Januari 13, 2008 01:32
    4 4

    I used I used
    (if(in_category(CATID)) (jika (in_category (CATID))
    { (
    } )

    Works great Works great :)

  12. Sham @ Enhance Life Meningkatkan sham @ Life
    January 2nd, 2008 16:45 2 Jan 2008 16:45
    3 3

    Do u have any idea how the same thing can be done using the classic template in blogger? Do u mempunyai ide bagaimana hal yang sama dapat dilakukan dengan menggunakan template klasik di blogger?

    The if condition to check for? Jika kondisi yang memeriksa?

  13. Indiaholic Indiaholic
    November 5th, 2007 02:20 November 5, 2007 02:20
    2 2

    Thanks. Terima kasih. That helped. That helped.

  14. How to Wrap AdSense Ads Around and Inline Beside Blogger Post Content » My Digital Life Cara dibungkus AdSense Ads Sekitar dan Inline Disamping Blogger Posting Konten »My Digital Life
    October 3rd, 2007 01:17 3 Okt 2007 01:17
    1 1

    [...] Note that you can also make the ads appear only on single post view. [...] Catatan bahwa Anda juga dapat membuat iklan hanya muncul di satu pos melihat. [...] [...]

Leave a Reply Meninggalkan Balas

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> Anda dapat menggunakan tag ini: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime = ""> <em> <i> <q cite=""> <strike> <strong>

Subscribe to comments feature has been disabled. Berlangganan ke fitur komentar telah dinonaktifkan. To receive notification of latest comments posted, subscribe to Untuk menerima pemberitahuan komentar diposting terbaru, berlangganan My Digital Life Comments RSS feed Saya Digital Life Komentar RSS feed or atau register to receive mendaftar untuk menerima new comments in daily email digest. komentar baru di email harian digest.
Custom Search

New Articles Artikel Baru

Incoming Search Terms for the Article Cari Syarat masuk untuk Artikel

New articles of my Blogger.com blog appear not in Google index Artikel baru dari Blogger.com blog saya tidak muncul dalam indeks Google - -- How to Display Adsense Ads when Individual Single Post Is Viewed Cara Tampilan Adsense Kemarin ketika Individu Single Post Apakah dilihat - --