Archive for December, 2006

Archive for December, 2006

For New Blogger : Blogger categorising, pinging, and trackback helper

Posted on

JoongSeob Vito Kim has created a version of this script that works with the new blogger post editor.

I have made some minor bug fixes to this script, as well as made it so that it saves the trackback URLs when you save a draft. I took time to fix it, but now my website is back to normal.

Some time ago I married Johan’s and pinging script with my own trackback script into one new script. That script does not work on the new version of Blogger, and the trackback feature has been glitchy for some time. Outgoing trackback is still something we need on the new version of Blogger, and the pinging services provided by this script might even be useful on other blogging services. posting? Now that we have labels? Well, Freshtags, my calendar widget, and just tag management in general, will work better if you use If you disagree, this part of the script is optional.

This script does not overwrite the old script. Running both simultaneously will look dumb on the Blogger Classic interface (there will be duplication), but will not break anything. If you only run on the new Blogger, please remove the old script (if you have it installed).

Install the new script entry

Peek-a-boo HTML Widgets

Posted on

There was a minor styling error in this hack — I have fixed it now 🙂

This hack was inspired by a comment on my peek-a-boo link lists hack. It is a one-click install hack of a special HTML widget to your blog. Edit the template and content of the widget to be whatever you want (such as JavaScript includes for external blogrolls). The widget will appear either with just a title, or with ‘[+/-] TITLE’. Clicking the title (or [+/-], depending on the version you choose) will display all of the HTML/JavaScript contents.

Die index.html!

Posted on

It has annoyed me for some time that the default ‘Home’ links on the new Blogger (which I will continue to call Blogger BETA, at least for today, don’t worry, I know that’s officially wrong) go to /index.html. Some internal links (‘View Blog’ from the dashboard) do not, which is worse. Why have a URL longer than it need be? Why have multiple URLs available that people can bookmark? Doesn’t that just confuse things.

This hack is very simple and fixes the problem.

Comment Forms and Blogger BETA

Posted on

Blogger now has an inline comment form that is native:

Update 2007-02-08 : Contrary to a bit of a misunderstanding this hack DOES work with the new Blogger out of beta. If you can’t find the code try checking the ‘Expand Widget Templates’ checkbox. I have added a bugfix for the redirection bug some were experiencing.

The old inline comment form is dead to Blogger BETA (or, should I say, the new Blogger). Deader than ever, the form now does absolutely nothing.

Have no fear — there is good news!

Since we must use Blogger’s ugly comment page in some form (because of their new security token system), I wanted to include this in our pages somehow. I thought of making it inline, but discarded this idea because it would look rather dumb (since we can’t style that page) and would be displaying comments twice on the page, etc.

Enter lightbox. The following hack gives you a nice, integrated comment form that still appears somewhat separated (so visitors know you didn’t create that ugliness!). Visitors can close the ‘popup’ without commenting, but if they comment it will close and reload the page automatically. (See a demo on my test blog, but I can’t guarantee it will be there forever. My test blog is for testing and is therefore unpredictable.)

To install the hack, follow these steps:

  1. Go to the ‘Template’ tab and select ‘Edit HTML’.
  2. Check the ‘Expand Widget Templates’ box.
  3. Add this code right before your </head> tag (if you have my calendar hack, or any other Lightbox Gone Wild for Blogger hack, installed, this step in unnecessary):

    <script src='' type='text/javascript'/>
    <script src='' type='text/javascript'/>
    <link href='' rel='stylesheet' type='text/css'/>
  4. Find this code:

    <a expr:href='data:post.addCommentUrl' expr:onclick='data:post.addCommentOnclick'><data:postCommentMsg/></a>

    and replace it with this:

    <a class='lbOn' expr:href='"#comment-form-" +'><data:postCommentMsg/></a>
  5. If you do not use peek-a-boo comments or have a footer link pointing to the inline comments section (if you don’t know, you don’t) then find this code:

    <b:if cond='data:post.allowComments'>
    <a class='comment-link' expr:href='data:post.addCommentUrl' expr:onclick='data:post.addCommentOnclick'><b:if cond='data:post.numComments == 1'>1 <data:top.commentLabel/><b:else/><data:post.numComments/> <data:top.commentLabelPlural/></b:if></a>

    and replace it with this:

    <b:if cond='data:post.allowComments'>
    <a class='comment-link lbOn' expr:href='"#comment-form-" +'><b:if cond='data:post.numComments == 1'>1 <data:top.commentLabel/><b:else/><data:post.numComments/> <data:top.commentLabelPlural/></b:if></a>
  6. Find this code:

    <b:loop values='data:posts' var='post'>
    <b:if cond='data:post.dateHeader'>
    <h2 class='date-header'><data:post.dateHeader/></h2>

    And directly after it put this code:

    <script type='text/javascript'>
    var isLoad< = 0;
    function checkDeactivate< {
    if(isLoad< > 1) {
    document.getElementById('lbContent').innerHTML = '<div style="text-align:center;width:100%;font-size:16pt;font-family:sans-serif;"><br /><br /><br />Reloading...</div>';
    }//end if isLoad
    }//end function checkDeactivate
    <div expr:id='"comment-form-" +' style='display:none;'>
    &amp;lt;iframe onload=&quot;checkDeactivate< src=&quot;<data:post.addCommentUrl/>&amp;amp;isPopup=true#commentForm&quot; frameborder=&quot;0&quot; style=&quot;border-width:0px;width:100%;height:380px;&quot;&amp;gt;&amp;lt;/iframe&amp;gt;
    <div style='text-align: right;'><a class='lbAction' href='#' rel='deactivate'><img alt='' src='' style='display: inline; width: 10px; height: 10px;'/> Close</a></div></div>
  7. Save your template

New(?) Splog Format

Posted on

I discovered a new-to-me Splog format today. See these search results? See the acne scar removal articles? These Splogs are rel=nofollow linking to me with my name in order to make their SPAM show up in other’s search results… that’s low…