Bad Credit Loans - US Business Directory - Bad Credit Loans - Wordpress Themes - Watch Anime

PDA

View Full Version : Blogger Template Modification


Infiniterb
Mar 4th 2005, 9:13 pm
Is there any way to customize the blogger template to include a bit of code (such as adsense code) within the latest post?

NewComputer
Mar 4th 2005, 9:22 pm
I use the blogger code within all my own pages. So the answer would be yes.

Infiniterb
Mar 4th 2005, 9:25 pm
Ah, ok. I looked through the blogger help section but couldn't find what I was looking for.

I basically just want to take an adsense code block and implement it in the top post, but not have it in the posts below.

NewComputer
Mar 4th 2005, 9:31 pm
Do you mean at the top of your page? Or after comments or where? Have you seen an example, if so post the url on here.

Infiniterb
Mar 4th 2005, 9:36 pm
Haven't seen an example, yet. But basically, what I want to do is place an adsense ad within the latest post on the blog just before the actual post itself. Meaning that ads would be BELOW the latest post title, but ABOVE the post content.

I know I can put custom content within each post, but for adsense I couldn't do that since we're limited to 3 adsense code blocks. So I need to limit it to just the first post, ideally.

honey
Mar 4th 2005, 9:55 pm
Yes, you can change, anything and EVERYTHING.

Infiniterb
Mar 4th 2005, 10:14 pm
Basically, I need a variable that gives the lastpostid so I could write something like:

<if condition = " <$BlogItemNumber$> > <$LastBlogItemNumber$>">

Insert adsense code
</if>

The <$LastBlogItemNumber$> doesn't exist, however. Anyone got any ideas?

SEbasic
Mar 6th 2005, 10:13 am
Hmmmmm.... that's a tricky one...

You can make it so that certian elements will be on the main and archive pages, but not the individual posts, but I'm not sure about how to do what you are asking...

The closest Blogger tags that I can think of for that would be...


<MainPage>This will only appear on the home page</MainPage>
<ArchivePage>This will only appear on the archive pages</ArchivePage>
<ItemPage>This will only appear on the individual post pages</ItemPage>
<MainOrArchivePage>This will appear on both the archive and home pages.</MainOrArchivePage>


Hope it helps a little bit, although I'm not sure it's exactly what you were looking for.