Archive for the ‘MT Tips n Tricks’ Category

Updated Show/Hide script - (with additional links in the same line)

Tuesday, December 30th, 2003

Long title. Sorry. :D Someone wanted to use the show/hide comments script but have more than just the “show comments”/”hide comments” text in the same line. Basically - what they wanted was :

Permalink | Show Comments(3) | Add Comment | Trackback(2)

Where the “Show Comments” would drop down and do the show/hide comments - and it would only be there IF there had been comments to display. (for this last part, to use this script, you need to be running PHP on your page)

I know this is a very particular case - but there’s pieces in here you could probably cut, mix, and match.
(more…)

Calendar modification

Sunday, December 28th, 2003

This is very basic - but I wanted to save the code somewhere. The default “Calendar” template has the dates linked to the last entry on that calendar day (mtpermalink) - but it would make more sense to have those links point to the DAILY ARCHIVE page (this assumes you have “daily” checked off as one of your archiving types in your weblog settings/archiving)
(more…)