Archive for the ‘Movable Type’ Category

Number of users currently online (part II)

Saturday, March 27th, 2004

I’ve been looking around for “users currently online” type scripts. So, tonight, I hacked together two great scripts. The first comes from Spoono - this script uses php and mySQL to keep track of how many users are on your site. Then tonight I saw Lynda’s script - which uses php, a flat file and makes use of MT’s cookies to actually display WHO is on your site (they would have had to leave a comment on the site to show up in this list)

So I combined the two…
(more…)

MT Paginate

Friday, January 2nd, 2004

MT Paginate: Just implemented this plugin on another (lesser known) site I run. Very easy - Very cool. I was easily able to take my category archives and paginate them so that one page wasn’t loading tons and tons of entries (there was one category that was more “top heavy” than the others). The pagination won’t show up unless the archive needs it. Very well done!!

[Found on MT-Plugins.org]
(more…)

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…)

Yearly Comment Leader Script

Tuesday, December 23rd, 2003

I just implemented the comment leaderboard script available here, but I wanted to feature the *yearly* comment leaders as opposed to the monthlies. I tinkered with it and lo and behold, it actually worked!
(more…)

Don’t Be a Spammer!

Tuesday, November 25th, 2003

Last weekend, I had to deal with almost 4,000 bounce messages that were sent “from” my domain. I blamed it on someone using my domain for the reply to address, but now I wonder if it wasn’t a new version of spamming through MT. “Mail This Entry” used for spam - “If you are using Movable Type’s “Mail This Entry” feature on your blog, you are advised to rename your mt-send-entry.cgi file, or remove the feature entirely. If you are not using the feature on your blog, you still need to either rename the script, disable it by changing the permissions, or remove it from your server altogether.” Read all about it at Girlie Matters.

MT-Blacklist 1.5 Released

Tuesday, October 28th, 2003

Just released today - MT-Blacklist Version 1.5! Defend your blog!

If you are using Adam Kalsey’s comment notification hack, you might need to make some changes. See more details here. Other hacks and plugins may require additional tweaking, so remember - do a backup first!

Comment Notification Hack for MT-Blacklist

Wednesday, October 15th, 2003

On October 13th, the MT-Blacklist plugin was released by Jay Allen. However, I found that the Blacklist.pm conflicts with the Adam Kalsey comment notification Hack.

There is a simple way of fixing this small error if you do not want to receive e-mails of your comments. It worked for me but I can’t guarantee it will work for you. If you try it, make sure you back up the original files you are modifying before attempting. I don’t suggest this to novice MT users.
(more…)

More Meaningful Comment Notifications

Saturday, September 6th, 2003

I wanted to change how my blog comment notifications looked. Since I only have one blog, I don’t need the first part to tell me which blog the comment is from. I also wanted to do whois lookups on the ipaddresses so I can get more info about the people who are commenting on my site.

(more…)

Author’s RSS Feed field in comments

Thursday, June 12th, 2003

A while back Chris had asked about getting an extra field in the comments form. At the time all I could do was figure out a way to get the field emailed to you. But thanks to a few lessons I learned in the last script/MT-hack I wrote - I’ve figured out how to do it all. So this is part MT-hack and part plugin.

Here’s a summary of what this does:

You add a field in your comments form to collect RSS feed’s from your commenters and then you can display it back in your comments on your site - just like you do with their blog-URL.

What’s involved:

You’ll be editing any template you use that displays comments or the comment form, and install a plugin (which is as simple as uploading a file to your site) As well, You’ll need to edit two MT files and the mt-database. If you’re not comfortable doing this - I suggest you set up a test MT install and play with this first.

Here is the download for the plugin. The tags associated with the plugin will not work on their own - you’ll need to follow all of the instructions (below).

Some credit notes: A MASSIVELY HUGE THANK YOU to “Milbertus” (A.) of milbertus.com for writing the plugin for the MTCommentFeed tag (MTCommentPreviewFeed tags still in development at this time) (I wrote the plugin for the MTCommentIfRSS tag. w00t!)
(more…)