Wednesday, August 24, 2005


Installed the Trackback service recommended by Blogger and it appeared to have deleted all the comments on my blog. This was worrying.

Haloscan help forum had the answer - it hadn't actually deleted the old comments, it had just hidden them.

Here's how I did the code - the best way is to hide the Haloscan commenting service (which doesn't have the facility to delete spam comments) and reinstate the Blogger comments service, whilst retaining the Trackback facility.

<!-- hide Haloscan comment service
<a class="comment-link" href="<$BlogItemNumber$>/" title="Comment" onclick="HaloScan('<$BlogItemNumber$>'); return false;">
<script type="text/javascript">postCount('<$BlogItemNumber$>'); </script></a> end hiding Haloscan comments-->
<-- this is the Trackback bit you want to keep -->
| <a class="comment-link" href="<$BlogItemNumber$>/" title="Trackback" onclick="HaloScanTB('<$BlogItemNumber$>'); return false;"><script type="text/javascript">postCountTB('<$BlogItemNumber$>'); </script></a>

<!-- Trackback autodiscovery code
trackback:ping="<$BlogItemNumber$>" />
<!-- reinsert Blogger comment service -->

| <a href="<$BlogItemCommentCreate$>"
<$BlogItemCommentCount$> comments</a>

<!-- end of reinserting Blogger comments -->


No comments: