How to Display Elements (Ads) Only On (Or Only Not At) Individual Single Post Item View כיצד להציג אלמנטים (מודעות) בלבד (או לא רק) הודעה בודדת יחיד הצג פריט

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, בלוג פופולרי פרסום חינם שירות של גוגל, יש מאוד קלה לשימוש נוח התבנית ואת מערכת המאפשר למשתמשים לעצב את ממשק המשתמש הבלוג מצגות על ידי בחירת ערכת נושא ולאחר מכן גרור ושחרר דף אלמנטים שונים כגון סקר, יומן החדשות , סרגל הווידאו, Feed, תוויות, לוגו, 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 לנתח את קוד ה-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. האמור לעיל תוחודל לנצל מותנה תוחודל דומה אם, אחר, 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. אחר מאשר מודעות או קוד JavaScripts שאינן ידנית 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 תגובות ל "כיצד להציג אלמנטים (מודעות) בלבד (או לא רק) בודדת הצג פריט יחיד פוסט"

  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 ינואר 12th, 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? כאשר אתה אומר 'פריט', האם זה אומר את כתובת האתר המסוים לכתוב?

    Thank you for your kind help! אנו מודים לך על סוג עזרה!

  3. Tarun Goel Tarun Goel
    October 2nd, 2008 06:01 2 באוקטובר, 2008 06:01
    12 12

    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. אני כבר הלך דרך ההודעה שלך אבל לא מבין איפה בדיוק (ב עריכת HTML של בלוגרים מתווה) כדי להדביק את קוד ה-HTML לאחר פענוח הקוד של AdSense JavaScript לברוח עם תווים.

    Pls Help. Pls עזרה. 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 izu mou
    September 27th, 2008 10:44 ספטמבר 27, 2008 10:44
    10 10

    Thank You very mush.It is working perfectly here. Thank you very mush.It כאן פועל באופן מושלם.

  6. Sherin 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. עבודה טובה.

    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 Sherin מ 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 מאי 30, 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. אני chanced עם קבלת ההודעה שלך ואת יישמו את הקוד להופיע על אחד לכתוב. 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 עכשיו אני צריך לכתוב את bookmarked, עבור בעתיד. Great post. פירסום נהדר.

  10. Vlada 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. המטרה שלי היא להציג "המבחן המוצגים" רק על הבית.

  11. Rapidshare Bloggers בלוגרים Rapidshare
    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 בלוף @ שפר חיים
    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? U האם יש לך מושג איך את אותו הדבר יכול להיעשות באמצעות תבנית קלאסית ב-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 כיצד גלישת מודעות AdSense בסביבות inline ו-Blogger שליחת לצד תוכן »Digital החיים שלי
    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 חיפוש נכנס על תנאי סעיף

adsense javascript display conditiona AdSense JavaScript המוצגים conditiona - -- New articles of my Blogger.com blog appear not in Google index מאמרים חדשים של Blogger.com הבלוג שלי לא מופיע באינדקס של Google - -- How to Display Adsense Ads when Individual Single Post Is Viewed כיצד להציג מודעות AdSense כאשר בודדת יחיד שליחת מוצג - -- b if cond 'data blog.pagetype " index" ' אם cond ב 'נתונים blog.pagetype "מדד"' - -- elements : "post item", אלמנטים: "לכתוב פריט", - -- how show wordpress element only in homepage כיצד להציג רק אלמנט wordpress הבית - -- how to show adsense only in posts and not on homepage in blogger כיצד להציג AdSense רק הודעות ולא על הבית ב-Blogger - -- blogger conditional item view Blogger מותנה פריט נוף - -- customize blogger templates single post display התאמה אישית של תבניות אחת Blogger לכתוב המוצגים - -- page wrap ads דף לעטוף מודעות - -- wordpress how to show article element only on single page wordpress להראות כיצד מאמר רק על רכיב דף בודד - -- how to retrieve individual xml element in javascript html כיצד לשלוף בודדת XML הרכיב JavaScript HTML - -- blogger elements appearing only on homepage Blogger אלמנטים להופיע רק על הבית - -- blogger conditional statements Blogger תנאי תוחודל - -- display only on single full post view wordpress להציג רק על יחיד מלא לכתוב להציג wordpress - -- how to not show adds on archive page איך לא להראות מוסיף על דף ארכיון - -- modify individual post view blogger שינוי תצוגת הודעה בודדת Blogger - -- html display element רכיב ה-HTML לתצוגה - -- single post view in blogger הודעה אחת לצפות ב-Blogger - -- adsense into a single individual post AdSense לתוך אחת בודדת לכתוב - -- Show Adssense Ads on Homepage or individual posts only on Wordpress blogs הצג מודעות Adssense הבית או על הודעות בודדות בלבד על הבלוגים Wordpress - -- javascript show only in homepage blogger JavaScript להראות רק הבית של Blogger - --