How to Display Elements (Ads) Only On (Or Only Not At) Individual Single Post Item View Ako na zobrazenie prvkov (reklamy) len (alebo len vôbec nie) Jednotlivé položky jediný príspevok Zobraziť
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árny blog publikovanie služba od Google, je veľmi ľahko ovládateľný a pohodlný systém šablón, ktorý umožňuje navrhovať blogu prezentácie používateľského rozhrania výberom témy a pretiahnite jednotlivé prvky stránky, ako je anketa, aktuality , video bar, krmivá, etikety, logá, AdSense, HTML / JavaScript a prispôsobiť sa podľa preferencií používateľa 'na blogu rozloženie. 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. Je však tiež prichádza s vážnym obmedzeniam, ako keď chcete vykonať niektoré prvky (napr. Google AdSense reklamné jednotky) sa objaviť a ukázať návštevníkom, keď po návšteve jednej položky jednotlivo, alebo len chcete zobrazí widget súčasťou bloku na homepage, archív a označenia alebo kategóriu stránok.
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 umožňuje užívateľovi ručne XML-založené šablóny HTML, čo umožňuje hack, ktorý používateľom umožňuje ručne upraviť kód HTML na dosiahnutie cieľa na displeji a ukázať niektoré aktualizácie alebo jeho časti stránok na jednotlivé zobrazenie stránky iba poštou. 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 . Avšak, máte potrebné mať základné znalosti HTML modifikovať HTML kód šablóny služby Blogger, ktorý ako editovateľné kliknutím na záložku Template (alebo rozloženie tohto blogu, ktorý chcete zmeniť, ak na Dashboard), a potom kliknite na Upraviť 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: Trik je ukázať widget v jednom pohľade post položka len je pridať nasledujúce dva riadky kódu na hornej a spodnej blok kódu, respektive:
<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. Vyššie uvedené linky budú pridať do stavu, ktorý je hodnota záporná, je blog nezobrazuje individuálne po obsahovej stránke. Thus anything that are wrapped inside it won't be shown on homepage, label or category pages, or archive pages. Tak čo, ktoré sú balené v nej nebudú uvedené na domovskej stránke, označenie alebo kategóriu stránok, alebo archív stránky. For example, while Napríklad, zatiaľ čo wrapping the AdSense ads manually beside the post content obal AdSense reklamy ručne vedľa post obsah , 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: , Môžete reklamy zobrazujú len vtedy, keď jednotlivé príspevky sú videní pridaním výšky 2 riadky kódu, takže to bude má nasledujúcu štruktúru:
<b:if cond='data:blog.pageType == "item"'>
Parsed Google AdSense Ad Code (guide to Parsed Google AdSense kód (sprievodca parse the HTML code of AdSense JavaScript with escape character analyzovať HTML kód AdSense JavaScript s riadiacou znak ) )
</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: Ak chcete zobraziť rôzne prvky stránok či reklamných jednotiek na všetkých stránkach, okrem jednotlivých post obsah stránok názor, zabaliť nasledujúce riadky kódu, miesto:
<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. Vyššie uvedené údaje využívať podmienené príkazy podobne ako IF, ELSE, END IF vo väčšine programovacích jazykov. The Blogger XML support these three conditional statements too. Blogger XML podporujú tieto tri podmienené príkazy príliš. Two already been used above, with the third one ELSE is <b:else>. Dvaja už bola použitá vyššie, tretia sa nikto iný <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. Môžete využiť <b:else> poveriť Blogger šablónu na zobrazenie tejto widget (napr. AdBrite reklamy) na všetkých stránkach, okrem jediné miesto stránky a ukázať iný widget (napr. reklamy AdSense) na jednotlivých stránkach post.
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. Iné ako reklamy kód alebo JavaScripts, ktoré sú vložené do ručne Blogger HTML, vyššie trik môže byť použitý na widget na prvky stránky, ktoré sa pridávajú do rozloženia. 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. Ale je potrebné starostlivo preštudovať HTML kód pre identifikáciu, ktorý bloky kódu je prvok, aby sa pridali na vyššie kódy zabaliť hore a dole okolo nich.
IMPORTANT : The page is machine translated and provided "as is" without warranty. Upozornenie: stránka je stroje preložené a za predpokladu, "ako je" bez záruky. Machine translation may be difficult to understand. Strojový preklad môže byť ťažké pochopiť. Please refer to Nájdete na original English article originál Anglicky artikl whenever possible. ak je to možné.
Related Articles Súvisiace články
- Move Blogger Inline Ads Between Posts to Inside Within Post Position Presunúť Blogger Inline Reklamy Medzi Pracovné miesta Inside Do pošty Pozícia
- How to Wrap AdSense Ads Around and Inline Beside Blogger Post Content Ako sa obalí AdSense Reklamy Asi a Inline U Blogger pošty Obsah
- Place AdSense Ad Unit In Various Positions Inside Within Blogger Post Contents Miesto AdSense reklamné jednotky na rôznych pozíciách v rámci Vnútri Blogger pošty Obsah
- Free Online MergePDF to Combine Individual PDF Files into A Single File Free Online MergePDF kombinácií jednotlivých súborov PDF do jedného súboru
- Paginating or Split WordPress Post or Page with NextPage in WordPress Not Working Paginating alebo Split WordPress Post alebo stránky s NextPage do WordPress Nie Činnosť
- Retrieve and Get WordPress Post ID Outside the Loop as PHP Variable Načítanie a Brať WordPress pošty ID Outside Loop ako PHP premenné
- Adding Extra More Fields to WordPress Write/Edit Post/Page Right Column Pridanie Extra Ďalšie odbory na WordPress Write / Upraviť Posta / Blok Pravý stĺpec
- Workaround to Add Custom Channels into Blogger AdSense Page Element Widget Workaround až na Pridať vlastné kanály do Blogger prvok stránky služby AdSense Widget
- Implement Ad Revenue Sharing in Blogger (Supports Google AdSense And Any Code) Vykonávať Delenie príjmov z reklamy v Blogger (podporuje Google AdSense a žiadny kód)
- Disable and Turn Off Post Revisions Tracking in WordPress 2.6 or Above Oslabiť a Zastavenie toku po Revízia Monitorovanie do WordPress 2.6 či Nad










































April 14th, 2009 06:24 14.dubna 2009 06:24
Bravo!! Bravo! They work first time, both wrap adsense tip and this one too. Pracujú prvýkrát, a to ako zabaliť adsense tip a tohle taky. Nobody has ever explaining this as clear as easy as yours. Nikto nikdy vysvetľuje to tak jasné, ako jednoduché, ako vy. Thanks Vďaka
January 12th, 2009 18:20 12.ledna 2009 18:20
Hey there, thanks for sharing this technique. Ahoj, vďaka za zdieľanie tohto techniku. However, I've tried this on my blog but can't see the correct result. Napriek tomu som sa snažil to na mojom blogu, ale nemôže vidieť správny výsledok.
When you say 'item', would that means the url for that particular post? Keď hovoríte 'item', to znamená, že by sa url pre konkrétne miesto?
Thank you for your kind help! Ďakujem Vám za pomoc!
October 2nd, 2008 06:01 2.října 2008 06:01
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. Prešiel som váš príspevok však nechápali, že kde presne (v Edit HTML Bloggeri Layout) vložiť kódy po parsovanie HTML kód AdSense JavaScript s escape znaky.
Pls Help. Pls Help. I am in great need of it. Som vo veľmi potrebuje.
I shall be highly obliged. Budem veľmi zaviazaný.
September 27th, 2008 11:05 27.září 2008 11:05
Can this be done with wordpress in a similar way? Môže sa tak diať s wordpress podobným spôsobom?
September 27th, 2008 10:44 27.září 2008 10:44
Thank You very mush.It is working perfectly here. Thank You very mush.It funguje perfektne tu.
September 7th, 2008 21:20 7.září 2008 21:20
This is an extremely well article and whatever saying here in intact while going to real time basis. To je veľmi dobre článok a čo hovorí tu v neporušenom a zároveň bude v reálnom čase. My appreciations to giving such terrific information and the well written style. Moje ocenenia pre poskytovanie také úžasné informácie a dobre napísané štýlu. Nice work. Dobrá práca.
I have placed ad sense by following the instructions given here and it is working fantastic without a second involvement. Som umiestnil reklamu zmysel podľa pokynov uvedených tu a funguje bez fantastické druhé zapojenia.
Many thanks from my end. Díky moc z môjho konca.
Sherin from Investinternals Sherin od Investinternals
August 16th, 2008 23:54 16.srpen 2008 23:54
Thanks a lot..this trick is very useful to me.. Díky moc .. tento trik je veľmi užitočné pre mňa ..
May 30th, 2008 02:30 30.května 2008 02:30
this is what i looking for. to je to, čo som hľadal. thanks for help. vďaka za pomoc.
May 6th, 2008 22:19 6.května 2008 22:19
Hi, Nazdar,
I like to play with html, and location of adsense on my blogs. Rád si hraju s HTML, a umiestnenie adsense na moje blogy. I chanced upon your post and implemented the code to appear on a single post. Som náhodou na váš príspevok a zavedenie kódu sa objaviť na jediné miesto. Then I got a new template and I had to start all over again.So now I have bookmarked your post, for future reference. Potom som dostal novú šablónu, a musel som začať celej again.So teraz mám záložkou svoj príspevok, na budúce použitie. Great post. Great post.
April 11th, 2008 01:29 11.apríla 2008 01:29
I've tried but code is automatically set to: Snažil som sa, ale kód je automaticky nastavená na:
test display test displeja
My aim is to display “test display” only on homepage. Mojím cieľom je zobrazenie "test display" len na homepage.
January 13th, 2008 01:32 13.ledna 2008 01:32
I used Použil som
(if(in_category(CATID)) (if (in_category (catid))
{ (
} )
Works great Works great
January 2nd, 2008 16:45 2.ledna 2008 16:45
Do u have any idea how the same thing can be done using the classic template in blogger? Činiť u mať akýkoľvek nápad, ako možno to isté vykonať pomocou klasickej šablóny blogger?
The if condition to check for? Ak podmienka na kontrolu?
November 5th, 2007 02:20 5. novembra 2007 02:20
Thanks. Vďaka. That helped. , Ktoré pomohli.
October 3rd, 2007 01:17 3.októbra 2007 01:17
[...] Note that you can also make the ads appear only on single post view. [...] Všimnite si, že môžete aj reklamy zobrazovať len na jeden post pohľadu. [...] [...]