Wednesday, March 24, 2004

How to add comments to your blog

Michael asked me how to add comments to a blog. Rather than just send him email, I'll post it here. I could just post the several lines it takes... but I find putting context around it (so you can find it in your own template) helps. If this isn't enough info, just leave me a comment and I'll add more.

Click on the HaloScan button at the top of my page and register. It will tell you where to go from there... but just in case it is confusing. You edit your template and add the following three sections of code.

In your header area add the following which gets the javascript going.

<head>

</style>
<script type="text/javascript" src="http://www.haloscan.com/load.php?user=yourUserName"></script>
</head>


Of course replace yourUserName with your actual user name. Also, there is quite a bit of text cut out... but as you can see it is in the head section and after the end of the style subsection.

I then add in the part that says "sign my guest book" which is a comment not attached to any particular post, but to the entire page. BTW: I've found these go away after about a year.

    <tr>

<td>
<center>
Sign my Guest Book!
<a href="javascript:HaloScan('GuestBook');"><
script type="text/javascript">postCount('GuestBook');</script></a>
</center>

</td>
</tr>



And lastly is the comment associated with each entry:

      <Blogger>


<div class="posts">
<BlogItemTitle>
<b><$BlogItemTitle$></b><br />
</BlogItemTitle>
<a name="<$BlogItemNumber$>"></a>

<$BlogItemBody$><br>
<span class="byline">
posted by <$BlogItemAuthorNickname$>
at <a href="<$BlogItemArchiveFileName$>#<$BlogItemNumber$>"><$BlogItemDateTime$></a>

<a href="javascript:HaloScan('<$BlogItemNumber$>');"><
script type="text/javascript">postCount('<$BlogItemNumber$>');</script>
</a>
<noscript><a href="http://www.haloscan.com/comments.php?user=yourUserName&amp;comment=<$BlogItemNumber$>"
>Comments</a></noscript>

</span></div>
</Blogger>


On section I cut out the BlogDateHeader section, because it was a lot of text.

I think that's about it. If you have any issues leave a comment and I'll update this post!

2 comments:

Anonymous said...

Blizzard warnings were issued for parts of Illinois, Iowa, Michigan, Minnesota and Wisconsin as snow socked the states in tandem with breeze gusts topping 45 miles (72 kilometers) per hour.
The storm -- 10 days in front the hit of winter -- took its greatest toll in Minnesota, where as much as two feet (61 centimeters) of snow had fallen in some locations, according to the Nationalistic Sickly Advantage (NWS).
The state's largest big apple Minneapolis was junior to a blanket of white 17 inches (43 cm) broad, the worst snowfall to charge the new zealand urban area in more than 19 years and the fifth-biggest on record.
As an gauge of the thunder-shower's severity, Minneapolis-St. Paul Ecumenical Airport -- a transit heart with expertness in contending with foul weather -- was shut down exchange for the oldest notwithstanding in years.

Anonymous said...

Les jeux de machines a sous en ligne sont les jeux de casino les plus populaires dans un casino en ligne teem plusieurs raisons. Une des principales raisons est qu'il y a une grande variete de machines a sous.