Archive for November, 2003

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.

Using PHP to FTP - and import a CSV file into a database

Friday, November 21st, 2003

I needed to grab a (CSV) file via FTP and import it into a database. The part that I thought would be the hardest (the FTP part) was actually very simple. Once again, PHP saves the day with incredibly powerful built in functionality. Here is the simple code that will connect to an FTP server and download a file:
(more…)

New Subscribe to Comments!!

Thursday, November 20th, 2003

Chad has been busily coding away and developed a cgi version of the subscribe to comments feature (originally developed in PHP). His is called “notifier”. I plan on installing it here soon - but I have tested it on a “test” blog and it works great!! Installation is pretty easy (similar installation as MT-Blacklist).

I believe he has plans to include a feature that will import existing subscriptions, that’ll probably be developed soon. If you have the (old) subscribe to comment script running and you want to change it to use this one - after following the installation instructions you only need to change the “action” attribute in your comments form tag. Change it back to the “default” - which if you’re using MT 2.64 - you can just put this in:

action=”<$MTCGIPath$><$MTCommentScript$>“

I should also add that Oscar Hills has also developed a similar plugin - but I haven’t gotten my hands on it to try it out. :)
Thanks so much guys for answering my cry for help! :D
(update: Just installed Chad’s version here - let me know if you notice anything wacky)

Not Matts Script…

Friday, November 14th, 2003

About a week ago, there was a guest authored post that involved using a script from Matt’s Script Archive. I’ve since been told (quite vehemently by some) that those scripts on Matt’s Script Archive are old, buggy, have major security flaws and should be avoided at all costs. (I never used them, so I didn’t know)

In any case, there ARE replacements to those scripts, and they can be found here: NMS (Which I think someone said stood for Not Matts Scripts ??).

The post that involved using them has since been taken down. (In case you’re wondering the post was about how to make “private” comments in MT - for which there’s an even simpler solution than the one in described in the post - which is to show the comments form on your page, but just don’t include the code to display the comments.)

Another Color Mixer/palette picker thing-a-ma-jig

Friday, November 14th, 2003

Here’s another color picker thingy™. I really don’t think you can have too many bookmarks to these. I love playing with color. :)

ColorMatch Remix

[As seen on Jennifer's Confetti Falling (sideblog), Jennifer's ETC, and Webgraphics. Yeah, so I'm a little late to the party.]

Subscribe to comments - one year later…

Thursday, November 6th, 2003

There have been a number of problems cropping up with the subscribe to comments script. My first thought had been that I would completely revamp it - make it use mySQL, etc. - however some problems can not be overcome unless it becomes an integral part of MT. Especially now with mt-blacklist and other comment spam blocking plugins.

I have two questions for you - feel free to email me or leave a comment with your thoughts:

1) Is there a doctor in the house? ;-) (or rather a PERL programmer?)
Basically is there someone out there that can either write this as a plugin or some other method directly into the MT code? The way it works now is that the comment subscribe script happens BEFORE MT gets the comment and can either deny it based on it’s content or the commenter’s IP address. (So you can probably guess what’s happening) As well, with all the SPAM legislation out there, there are some serious flaws to the script which would need to be addressed in an update. If there is someone out there, I would love to help out however I can (maybe I’d actually learn a little PERL in the process?!) - but in the very least - I can tell you what the script needs to do/how it needs to work.

2) Let it die?
Without the proper update to the code, I’m considering taking the feature down off this site altogether. Basically people who subscribe to comments run the risk of being spammed. I’ve done my best to prevent that - but I’m beginning to throw my hands up in the air… and with the traffic (and comment spam) this site gets, it’s getting out of hand.

So, any thoughts?

Color Picker, Another Comment Spam blocker, Simple Post Counter Script

Wednesday, November 5th, 2003

Catching up on a few things people sent in…

Javascript Color Picker
Version 2.0 can be found here - cleaner code, improved API, and better examples.
Sent in by Lloyd Dalton - daltonlp.com

Another Commend Spam Blocker
Spam Tramps
Sent in by Rich Blinne - blinne.org

Simple Post Counter Script
This will count how many times a post has been read.
There’s a mysql version - and a php/DBX version
Sent in by Jayant Kumar Gandhi - nibbleguru.com