How to Display Elements (Ads) Only On (Or Only Not At) Individual Single Post Item View Kā Display Elements (ADS) Tikai (vai tikai ne at) Individuālais 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, populārās bezmaksas emuāru publicēšanas pakalpojumu no Google, ir ārkārtīgi viegli lietojams un ērts template sistēmu, kas ļauj lietotājiem veidot blogu lietotāja interfeisa noformējumu, izvēloties tēmu un velciet un nometiet dažādas lappuses elementi, piemēram, aptaujas, kinožurnāls , video bārs, dzīvnieku barības, etiķešu, logo, AdSense, HTML / JavaScript un vairāk, lai pielāgotu tos atbilstoši lietotāju priekšrocības 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. Tomēr tas nāk arī ar nopietniem ierobežojumiem, piemēram, ja vēlaties veikt dažus elementus (piemēram, Google AdSense reklāmas daļa) ierasties un parādīt, kad apmeklētāji apmeklēt vienu post posteni atsevišķi, vai vienkārši vēlaties redzams widget komponents bloķēt mājas lapa, arhīvs un etiķeti vai kategorijā lapās.

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 lietotājiem ļauj manuāli XML balstīta template HTML, tādējādi ļauj sacirst, kas ļauj lietotājam manuāli rediģēt HTML kodu, lai sasniegtu mērķi, lai parādītu un parādīt atsevišķu logrīki vai daļu no tīmekļa lapas par atsevišķiem post lapu skats tikai. 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 . Tomēr, Jums ir jābūt pamata HTML zināšanas modificēt HTML kods Blogger template, kas, kā editable, noklikšķinot uz Template tab (vai shēma blogs, kuru vēlaties mainīt, ja uz paneļa), un pēc tam noklikšķiniet uz Rediģēt 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: Triks ir parādīt widget vienkārša post postenī lai tikai ir pievienot šādas divas darbības līnijas koda augšā un apakšā koda bloka attiecīgi:

<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. Augšminēto papildinās ar nosacījumu, kuru vērtība ir negatīva, ir emuārs nav redzama individuāli pēc satura lapā. Thus anything that are wrapped inside it won't be shown on homepage, label or category pages, or archive pages. Tātad kaut kas ir iesaiņoti tā iekšpusē nebūs redzams mājas lapā, etiķešu vai kategoriju lapas, vai archive pages. For example, while Piemēram, lai gan wrapping the AdSense ads manually beside the post content ietīšana AdSense reklāmu manuāli blakus post saturs , 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: , Varat veikt reklāmas parādīts tikai tad, kad atsevišķos punktos apskatīts pievienojot iepriekš 2 līnijas kods, tādēļ, ka tā ir šāda struktūra:

<b:if cond='data:blog.pageType == "item"'>
Parsed Google AdSense Ad Code (guide to Parsēt Google AdSense reklāmu kodekss (rokasgrāmata parse the HTML code of AdSense JavaScript with escape character izanalizēt HTML kods AdSense JavaScript ar izņēmuma raksturu ) )
</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: Parādīt lapas elementus vai reklāmu vienību par katru izņemot atsevišķas amatu saturu skatīt lapas, lapas wrap šādas rindas kodu vietā ir:

<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. Iepriekš paziņojumi izmantot ierobežotas pārskatu līdzīgs IF, VĒL, END IF lielākajā daļā programmēšanas valodas. The Blogger XML support these three conditional statements too. Blogger XML atbalsts šiem trim nosacījumiem paziņojumus too. Two already been used above, with the third one ELSE is <b:else>. Divi jau ir izmantoti iepriekš, trešais cits <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. Jūs varat izmantot <b:else> uzdot Blogger template, lai parādītu šo widget (piemēram AdBrite ads) par visiem, izņemot vienu pēc lapas lappusēm un parāda citu widget (piemēram, AdSense ads) par atsevišķu pasta lapās.

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. Izņemot reklāmas kodu vai JavaScripts kas ir manuāli ievietoti Blogger HTML, iepriekš triks var piemērot widget pamatā lapas elementus, ko pievieno izkārtojumu. 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. Bet jums ir nepieciešams rūpīgi izpētīt HTML kods, lai identificētu, kuras no koda bloku ir elements, lai pievienotu iepriekš kodu aplauzt augšā un apakšā ap tiem.

IMPORTANT : The page is machine translated and provided "as is" without warranty. SVARĪGI: lapa mašīna iztulkot un pasniegts tàds, "kàds tas ir" bez garantijas. Machine translation may be difficult to understand. Mašīntulkošanas var būt grūti saprast. Please refer to Lūdzu, skatiet original English article oriģināls angļu rakstu whenever possible. kad vien iespējams.


14 Responses to “How to Display Elements (Ads) Only On (Or Only Not At) Individual Single Post Item View” 14 Atbildes uz "Kā Display Elements (ADS) Tikai (vai tikai ne at) Individuālais Single Post Item View"

  1. joe joe
    April 14th, 2009 06:24 Aprīlis 14, 2009 06:24
    14 14

    Bravo!! Bravo! They work first time, both wrap adsense tip and this one too. Viņi strādā pirmo reizi, gan wrap adsense gals un šī too. Nobody has ever explaining this as clear as easy as yours. Neviens nekad izskaidro, kāpēc tik skaidra kā viegli, kā jūsu. Thanks Pateicība

  2. Joharin Joharin
    January 12th, 2009 18:20 Janvāris 12, 2009 18:20
    13 13

    Hey there, thanks for sharing this technique. Hey there, thanks for sharing šo tehniku. However, I've tried this on my blog but can't see the correct result. Tomēr, es esmu mēģinājis šo par manu blogu, bet nevar redzēt pareizu rezultātu.

    When you say 'item', would that means the url for that particular post? Kad jūs sakāt: "pozīcijas", tas tas nozīmē, ka url šai konkrētajai pastu?

    Thank you for your kind help! Paldies par Jūsu palīdzību!

  3. Tarun Goel Tarun Goel
    October 2nd, 2008 06:01 2 oktobris 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. Esmu gājusi caur pastu Bet nesaprata, ka, kur tieši (jo par blogeru Layout HTML Edit) ielīmēt kodu pēc parsing HTML kods AdSense JavaScript ar evakuācijas zīmes.

    Pls Help. Pls Help. I am in great need of it. Es esmu ļoti nepieciešama no tā.

    I shall be highly obliged. Es būtu ļoti pateicīgs.

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

    Can this be done with wordpress in a similar way? To var izdarīt ar WordPress kas līdzīgā veidā?

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

    Thank You very mush.It is working perfectly here. Thank you very mush.It strādā perfekti šeit.

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

    This is an extremely well article and whatever saying here in intact while going to real time basis. Tas ir ļoti labi pantu un neatkarīgi sakot šeit neskarts, bet dodas uz reālā laikā. My appreciations to giving such terrific information and the well written style. Mans appreciations dot šādu drausmīgs informācijas un labi uzrakstīts stilā. Nice work. Jauks darbs.

    I have placed ad sense by following the instructions given here and it is working fantastic without a second involvement. Man ir laiduši reklāmas nozīme, sekojot norādījumiem šeit, un tas strādā fantastiski bez otrās iesaistīšanos.

    Many thanks from my end. Liels paldies no manas beigas.

    Sherin from Investinternals Sherin no Investinternals

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

    Thanks a lot..this trick is very useful to me.. Thanks a lot .. šis triks ir ļoti noderīga, lai mani ..

  8. gre gre
    May 30th, 2008 02:30 Maijs 30, 2008 02:30
    7 7

    this is what i looking for. tas ir tas, ko es meklēju. thanks for help. thanks for help.

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

    Hi, Čau,
    I like to play with html, and location of adsense on my blogs. Man patīk spēlēt ar html, un vietu, adsense par manu blogus. I chanced upon your post and implemented the code to appear on a single post. Man nejauši uz savu ziņu un īsteno kods, kas parādīsies uz vienu amatu. Then I got a new template and I had to start all over again.So now I have bookmarked your post, for future reference. Tad es saņēmu jaunu veidni, un man nācās sākt visu pa again.So tagad esmu grāmatzīmi savā amatā, turpmākām atsaucēm. Great post. Great post.

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

    I've tried but code is automatically set to: Es esmu mēģinājis, bet kods ir iestatīts uz:


    test display tests displejs

    My aim is to display “test display” only on homepage. Mans mērķis ir parādīt "test displejs" tikai uz mājas lapu.

  11. Rapidshare Bloggers Rapidshare Emuāru autori
    January 13th, 2008 01:32 Janvāris 13, 2008 01:32
    4 4

    I used Es lieto
    (if(in_category(CATID)) (if (in_category (catid))
    { (
    } )

    Works great Lieliski darbojas :)

  12. Sham @ Enhance Life Izlikšanās @ Uzlabot Life
    January 2nd, 2008 16:45 2 janvāris 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 ir kādas idejas, kā pašu var izdarīt, izmantojot klasiskās veidnes blogger?

    The if condition to check for? Ja nosacījums, lai pārbaudītu?

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

    Thanks. Pateicība. That helped. Tas palīdzēja.

  14. How to Wrap AdSense Ads Around and Inline Beside Blogger Post Content » My Digital Life Kā Wrap AdSense reklāmām un Inline Blakus Blogger Post Saturs »Mana Digital Life
    October 3rd, 2007 01:17 3 oktobris 2007 01:17
    1 1

    [...] Note that you can also make the ads appear only on single post view. [...] Ievērojiet, ka jūs varat veikt arī reklāmas parādās tikai vienā post skats. [...] [...]

Leave a Reply 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> Jūs varat izmantot šos tagus: <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. Parakstīties uz komentāriem iezīme ir atspējota. To receive notification of latest comments posted, subscribe to Saņemt informāciju par jaunāko komentārus, parakstīties uz My Digital Life Comments RSS feed Mana Digital Life Comments RSS feed or vai register to receive reģistrēties, lai saņemtu new comments in daily email digest. jauni komentāri ikdienas e-pasta sagremot.
Custom Search

New Articles Jauns pants

Incoming Search Terms for the Article Ienākošo Meklēt noteikumi pants

blogger: show element only on homepage Blogger: parādīt elements tikai uz mājas lapu - -- adsense javascript display conditiona adsense javascript displejs conditiona - -- conditional statement used in advertisement nosacījuma izmantotās norādes reklāma - -- Ads That Use Conditional Statements Reklāmas, kas Lietot nosacījuma Statements - -- New articles of my Blogger.com blog appear not in Google index Jauni panti manu blogu Blogger.com parādās nevis Google indeksā - -- How to Display Adsense Ads when Individual Single Post Is Viewed Kā Display Adsense reklāmas, kad Individuāls Single Post Is Apskatīts - -- b if cond 'data blog.pagetype " index" ' B Ja cond datu blog.pagetype "indekss" " - -- elements : "post item", elementus: "pasta sūtījums", - -- how show wordpress element only in homepage kā parādīt WordPress elements tikai mājaslapa - -- how to show adsense only in posts and not on homepage in blogger kā parādīt adsense tikai amatos, nevis uz mājas lapas blogger - -- blogger conditional item view blogger nosacījumu vienuma skatā - -- customize blogger templates single post display pielāgot blogger templates vienu post displejs - -- page wrap ads page wrap reklāmas - -- wordpress how to show article element only on single page WordPress kā parādīt rakstu elements tikai vienā lapā - -- how to retrieve individual xml element in javascript html kā atgūt atsevišķu XML elementu javascript html - -- blogger elements appearing only on homepage blogger elementi parādās tikai uz mājas lapu - -- blogger conditional statements blogger nosacījumu paziņojumi - -- display only on single full post view wordpress parādīt tikai vienu pilnu post lai WordPress - -- how to not show adds on archive page kā neparādīsies papildina ar arhīvu page - -- modify individual post view blogger grozīt atsevišķas post viedokli blogger - -- html display element html displejs elements - -- single post view in blogger viens post view in blogger - -- adsense into a single individual post adsense vērā atsevišķs indivīds pastu - -- Show Adssense Ads on Homepage or individual posts only on Wordpress blogs Rādīt Adssense reklāmas par Homepage vai individuālā darba vietās tikai uz WordPress blogus - -- javascript show only in homepage blogger javascript rādīta tikai mājaslapa blogger - -- www.joharin's window.com www.joharin 's window.com - -- blogger conditional blocks blogger nosacījumu bloki - -- javascript display element javascript displejs elements - -- show element to only homepage+blogger parādīt elements, lai tikai homepage + blogger - -- google index only article, not adverts Google indeksā tikai priekšmeti, kas nav sludinājumus - -- adsense appear after blog title only on single post view adsense redzams pēc ziņojuma virsrakstā tikai par vienu amatu viedokli - -- ads that can be made into a conditional statement reklāmas, kuras var pārvērst nosacītu paziņojums - -- cache:hOoBfyixwnoJ:jinnsblog.blogspot.com/2009/08/how-to-insert-adsense-in-post-content.html blogspot如何在post中加adsense cache: hOoBfyixwnoJ: jinnsblog.blogspot.com/2009/08/how-to-insert-adsense-in-post-content.html blogspot如何在post中加adsense - -- examples of advertisements with conditional statements piemēri reklāmas nosacītais paziņojumiem - -- postview dashboard postview panelis - -- change post display homepage but not single pārmaiņas pēc parādīt mājas lapu ne vienu - -- "display only on homepage" wordpress "Displeja tikai mājaslapa" WordPress - -- conditional advertising if.. nosacījuma reklāmu, ja .. then tad - -- joharin window joharin logu - -- adsense conditional caching AdSense nosacījumu caching - -- classic template ads are not showing in some pages? classic template reklāmas neparādās dažas lapas? - -- show ads in individual post page only rādīt reklāmas atsevišķās post saits - -- Display Only Post Titles on Category Pages Display tikai post sadaļu par trešās kategorijas Pages - -- conditional statements in blogger nosacījuma paziņojumus blogger - -- display certain elements in blogger displejs daži elementi Blogger - -- blogger conditional display on individual post page blogger nosacījumu rādīt atsevišķu post page - -- blogger condiionally single item post blogger condiionally vienu vienību pastu - -- blogger conditionally single item post blogger nosacīti atsevišķa vienība pastu - --