Honestly I would look into wordpress. Granted I have no basis for suggesting this, but it's php and some schmucjk has probably written a plugin that does what you want.