How to Display Elements (Ads) Only On (Or Only Not At) Individual Single Post Item View Як відображати елементи (оголошень) Only On (Або тільки не в) Індивідуальна Single Post Пункт Відкрити

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, популярний блог видавничої служби від Google, має надзвичайно простий у використанні і зручний шаблон система, яка дозволяє користувачам розробляти презентації Блог призначеного для користувача інтерфейсу, вибравши тему, а потім перетягнути різні елементи сторінки, такі як опитування, кінохроніка , відео-бар, корми, етикетка, логотип, AdSense, HTML / JavaScript і багато іншого з метою приведення їх відповідно до уподобань користувачів на блозі макет. 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. Проте він також приходить з серйозними обмеженнями, наприклад, якщо ви хочете, щоб деякі елементи (наприклад, Google AdSense рекламний блок) з'являтися і показувати, коли відвідує одну посаду пункту індивідуально, або просто хочете показано віджетів компонент блоку на головній сторінці, архів та етикетки або категорії сторінок.

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 дозволяє користувачам вручну на основі XML шаблонів HTML, що дозволяє зламати який дозволяє користувачам вручну редагувати HTML код для досягнення мети "і" Відображення певних віджети або частина веб-сторінки на окремі сторінки посаду тільки. 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 . Однак ви повинні мати базові знання HTML, щоб змінити HTML код шаблонів Blogger, який, як редаговані, натиснувши на вкладку "Шаблон" (або макет блогу ви хочете змінитися, якщо на панелі інструментів), а потім натисніть кнопку Змінити 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: Хитрість полягає показати віджет в одній Відкрити пункт посаду тільки додати наступні два рядки коду у верхній і нижній частині блоку коду, відповідно:

<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. Вищевказані лінії будуть додати стан, вартість яких негативно це блог не показується окремій сторінці змісту посади. Thus anything that are wrapped inside it won't be shown on homepage, label or category pages, or archive pages. Таким чином все, що загортаються всередину він не буде показаний на головній сторінці, етикетки або категорію сторінок або сторінок архіву. For example, while Наприклад, хоча wrapping the AdSense ads manually beside the post content упаковка реклами AdSense вручну поруч з поста змісту , 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: , Ви можете зробити оголошення з'являються тільки тоді, коли окремі повідомлення розглядаються, додавши вище 2 рядки коду, щоб воно має наступну структуру:

<b:if cond='data:blog.pageType == "item"'>
Parsed Google AdSense Ad Code (guide to Оброблено оголошень Google AdSense кодекс (Керівництво по parse the HTML code of AdSense JavaScript with escape character Parse HTML кодом AdSense з JavaScript Символ ) )
</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: Для відображення елементів сторінок або рекламних блоків на всіх сторінках, крім індивідуальних пост змісту перегляду сторінок, обернути наступних рядків коду замість:

<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. Вищевказані заяви використовувати умовні заяви аналогічні IF, ELSE, END IF в більшості Мови програмування. The Blogger XML support these three conditional statements too. Blogger XML підтримку цих трьох умовних заяв теж. Two already been used above, with the third one ELSE is <b:else>. Дві вже використовували вище, з однією третиною інше <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. Ви можете використовувати <b:else> доручити Blogger шаблон для відображення елемента керування (наприклад AdBrite реклами) на всіх сторінках, крім однієї сторінки посту, і показати іншим віджети (наприклад, оголошень AdSense) на окремих сторінках повідомлень.

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. Інше, ніж оголошення код або web-сайтів, які були вручну вставляється в Blogger HTML, вище трюк може бути застосована до віджетів засновані елементів сторінки, які додаються в макеті. 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. Але для цього потрібно ретельно вивчити HTML код, щоб визначити, які блоки коду, є тим елементом, щоб додати в наведених вище кодів на упаковці на верхній і нижній навколо них.

IMPORTANT : The page is machine translated and provided "as is" without warranty. ВАЖЛИВО: Сторінка машина переведена і надаються "як є" без гарантії. Machine translation may be difficult to understand. Машинний переклад може бути важким для розуміння. Please refer to Будь ласка, зверніться до original English article оригінальний англійська статтю whenever possible. коли це можливо.


14 Responses to “How to Display Elements (Ads) Only On (Or Only Not At) Individual Single Post Item View” 14 Відповіді на "Як відображати елементи (оголошень) Only On (Або тільки не в) Індивідуальна Single Post Пункт" Вид "

  1. joe Джо
    April 14th, 2009 06:24 14 квітня 2009 06:24
    14 14

    Bravo!! Браво! They work first time, both wrap adsense tip and this one too. Вони працюють перший час, як відгук упаковка AdSense і ця теж. Nobody has ever explaining this as clear as easy as yours. Ніхто ніколи не пояснюючи це ясно, як легко, як ваша. Thanks Спасибо

  2. Joharin Joharin
    January 12th, 2009 18:20 12 січня 2009 18:20
    13 13

    Hey there, thanks for sharing this technique. Гей, спасибо за обмін цій техніці. However, I've tried this on my blog but can't see the correct result. Тим не менше, я намагався це на моєму блозі, але не може побачити правильний результат.

    When you say 'item', would that means the url for that particular post? Коли ти говориш: "пункту", хіба це означає, що URL для конкретної посади?

    Thank you for your kind help! Дякуємо Вам за допомогу!

  3. Tarun Goel Тарун Гоел
    October 2nd, 2008 06:01 2 жовтня 2008 06:01
    12 12

    Nice Blog. Nice блог. 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. Я пройшла через ваш пост, але не розуміють, що, де саме (у Змінити HTML блогерів макета) для вставки коду після розбору HTML кодом AdSense JavaScript з втечею символів.

    Pls Help. PLS HELP. I am in great need of it. Я у великому її потребує.

    I shall be highly obliged. Я буду дуже вдячний.

  4. HydroMan HydroMan
    September 27th, 2008 11:05 27 Вересня 2008 11:05
    11 11

    Can this be done with wordpress in a similar way? Чи може це бути зроблено з WordPress аналогічним чином?

  5. izu mou Ізу МОВ
    September 27th, 2008 10:44 27 Вересня 2008 10:44
    10 10

    Thank You very mush.It is working perfectly here. Спасибо mush.It працює прекрасно тут.

  6. Sherin Шерін
    September 7th, 2008 21:20 7 вересня 2008 21:20
    9 9

    This is an extremely well article and whatever saying here in intact while going to real time basis. Це дуже добре статті і все, що говорили тут, в недоторканою а збирається реальному масштабі часу. My appreciations to giving such terrific information and the well written style. Моя appreciations щоб зробити такі приголомшливою інформацією і добре написані стилем. Nice work. Nice Work.

    I have placed ad sense by following the instructions given here and it is working fantastic without a second involvement. Я помістив оголошення сенсі, дотримуючись вказівок тут і воно працює без фантастичний другу участі.

    Many thanks from my end. Велике спасибі від моєю метою.

    Sherin from Investinternals Шерін з Investinternals

  7. Jmay88 Jmay88
    August 16th, 2008 23:54 16 серпня 2008 23:54
    8 8

    Thanks a lot..this trick is very useful to me.. Спасибо .. Ця прийом дуже корисні для мене ..

  8. gre GRE
    May 30th, 2008 02:30 Травень 30th, 2008 02:30
    7 7

    this is what i looking for. Ось що я шукав. thanks for help. Дякуємо за допомогу.

  9. sheetal Sheetal
    May 6th, 2008 22:19 6 травня 2008 22:19
    6 6

    Hi, Привіт,
    I like to play with html, and location of adsense on my blogs. Мені подобається грати з HTML, і розташування AdSense на мій блог. I chanced upon your post and implemented the code to appear on a single post. Я випадково на вашу посаду і реалізований код, щоб виступити на одній посаді. Then I got a new template and I had to start all over again.So now I have bookmarked your post, for future reference. Тоді я отримав новий шаблон, і мені довелося почати все again.So більше тепер у мене є закладка вашого посту, для подальшого використання. Great post. Великий піст.

  10. Vlada Влада
    April 11th, 2008 01:29 11 квітня 2008 01:29
    5 5

    I've tried but code is automatically set to: Я намагався, але коду автоматично встановлюється на:


    test display випробування дисплеєм

    My aim is to display “test display” only on homepage. Моєю метою є відображення "Test Display" тільки на головній сторінці.

  11. Rapidshare Bloggers Rapidshare Bloggers
    January 13th, 2008 01:32 13 січня 2008 01:32
    4 4

    I used Я використав
    (if(in_category(CATID)) (IF (in_category (Catid))
    { (
    } )

    Works great Роботи більше :)

  12. Sham @ Enhance Life Sham @ покращення життя
    January 2nd, 2008 16:45 2 січня 2008 16:45
    3 3

    Do u have any idea how the same thing can be done using the classic template in blogger? У тебе є будь-яку ідею як те ж саме можна зробити за допомогою класичний шаблон Blogger?

    The if condition to check for? Якщо умова для перевірки?

  13. Indiaholic Indiaholic
    November 5th, 2007 02:20 5 листопада 2007 02:20
    2 2

    Thanks. Спасибо. That helped. Це допомогло.

  14. How to Wrap AdSense Ads Around and Inline Beside Blogger Post Content » My Digital Life Як Wrap AdSense оголошення навколо та вбудовані Крім Blogger публікувати вміст »Моя Цифрова життя
    October 3rd, 2007 01:17 3 жовтня 2007 01:17
    1 1

    [...] Note that you can also make the ads appear only on single post view. [...] Зверніть увагу, що ви також можете зробити оголошення з'являються тільки на одну думку посаду. [...] [...]

Leave a Reply Написати відповідь

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> Ви можете використовувати ці теги: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <справі DateTime = ""> <em> <i> <q Cite=""> <strike> <strong>

Subscribe to comments feature has been disabled. Підписатися на коментарі функція була відключена. To receive notification of latest comments posted, subscribe to Щоб отримувати повідомлення про останні коментарях, підписатися My Digital Life Comments RSS feed Моя Цифрова життя Коментарі RSS Feed or або register to receive Увійдіть, щоб отримувати new comments in daily email digest. нові коментарі в щоденній електронній пошті.
Custom Search

New Articles Нові статті

Incoming Search Terms for the Article Вхідні терміни пошуку для статті

if statements in blogger якщо заяви до Blogger - -- show element individual page Показати елемента окрема сторінка - -- ads with conditional statements Оголошення з умовними Заяви - -- how to show post only for one label blogger Як показують пост тільки для одного знаку Blogger - -- only display javascript element on homepage відображатися тільки JavaScript елементів на головній сторінці - -- conditional statements in advertisements умовних заяв в рекламі - --