[ mute ]

[ collection of odds and ends found on the internet ] < is >

Wednesday, November 17, 2004

If you're looking for a way to put a "Recent Comments" section on your blog via Blogger, this BloggerHack works perfectly! In case you're interested in putting a time field, follow these instructions:

*** WARNING *** You'll be tinkering with the javascript AT YOUR OWN RISK. If you don't know javascript, then wait for the authors to implement this otherwise you may mess up the code. However, if you can glance at this and know what's being done, more power to you. *** END WARNING ***

Add:

st=st.replace('[time]',d);

after the line:

st=st.replace('[name]',author);

Thus, it'll look like this:

st=st.replace('[name]',author);
st=st.replace('[time]',d);

to create a variable: [time] that displays the date and time.

BTW, for this to work (and to avoid having "NNnN" show up), you must have the date/time settings set to "mm/dd/yy hh:mm:ss" in your Settings | Formatting | Timestamp Format section.