ayda

Identifying blogsome main page

| Ayda | blogsome

When I used to blog with Blogspot, I knew that I could use <MainOrArchivePage> tag to make a content only appear on the main page and archive page, but not in the post page, and today finally I found this post at Blogsome forum that make me able to do the same thing in my Blogsome blog.

Here’s the sample code:

{if $smarty.server.QUERY_STRING == "wpblog=poer"}  
<div class="content">
   <div id="flickr">
      <script type="text/javascript" src=
      "http://www.flickr.com/badge_code_v2.gne?count=4&amp;…">
      </script>
    </div>
</div>
{/if}

With that code, I can make sure that my flickr badge will only appear in the main page of my blog, and it will be invisible in other pages.

If you want to use it in your blog, just replace the code between {if}..{/if} tag with yours, and don’t forget to also replace the string ’poer’ in ’wpblog=poer’ code, into your blog name *http://blog-name.blogsome.com*.

Bagikan artikel ini ke: InfoGue · Lintas Berita · Facebook · Twitter

Related Entries:

Random Entries:

2 people have left comments

Do you like the blogsome blogs much better than blogger. I have been using wordpress, but I was thinking of using something like blogger. Whats you opinion?

Jasons last blog post..Web Design Trick: Javascript Column Heights

Jason wrote on June 9, 2008 - 7:29 pm | Visit Link

Blogsome is more flexible than blogger interm of theme editing, but blogger is much better than blogsome interm of google exposure (organic traffic) and easy to use.

But thats just from my experience, and I already not using either blogsome or blogspot for almost 1.5years, so maybe its not relevant anymore.

Wawan wrote on June 10, 2008 - 11:14 am | Visit Link

feel free to leave a comment

Comment Guidelines: Basic XHTML is allowed (a href, strong, em, code). All line breaks and paragraphs are automatically generated. Off-topic or inappropriate comments will be edited or deleted. Email addresses will never be published. Keep it PG-13 people!

All fields marked with " * " are required.