tips and tricks for movable type

configuration listing with php and mysql
September 07, 2003

I was really excited when Kristine presented us with the Multiple Blog Suite - but for some reason, my browser (IE5.5) didn't seem to get along with the Suite files too well.

Since I already have a means of backing up my templates, I wasn't too distressed about that. But I really wanted to get my hands on the Configuration piece of the Suite.

So I stole K's code, and used it as the foundation for my own Configuration Listing, adding some new option details not included in the original.

First off, if you're not using PHP and MySQL, then I'm sorry, this isn't going to be anything you can use. Maybe one day, I'll learn Perl, but for now, these are the two subjects I'm brain-deep in trying to figure out.

I've zipped the files and put most of the instructions there, but I'll give you a little overview.

Files included:

  • configreadme.txt
  • configscript.php
  • configscriptwrite.php
  • connect.php
  • nav.inc
  • styles.css

There are two versions of the script itself: configscript.php and configscriptwrite.php.

The first gives you a display page only, which you can save locally using File > Save As from your browser. The second gives you the display page and writes the contents to a .txt file on your server as a backup.

If you have multiple blogs, you can create multiple copies of the script file, and use nav.inc to view the listings for each of them.

And styles.css is provided for customization if you're not fond of the traditional Girlie colors.

Because I'm a stickler for managing everything I can in MT, each of the script files for my blogs was created as a Template Module in my newly created Backup blog (more on what I use this blog for can be found at Virtual Venus).

Finally, there's a sample output page for your viewing pleasure.

It may not be useful to anyone other than me, but I really enjoyed the challenge of learning to do this. And there's really no point to learning if you don't share the final results. :smile:

Comments

Your Blog really matter! Congratulations for you job!

by Gemella | 09.08.03 11:07 AM

Thanks!

by girlie | 09.09.03 05:26 PM

Yup I hafta agree I love this blog for the massive archive of tips girlie could you please update it more often ??

by Arvind Satyanarayan | 09.10.03 09:00 AM

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

TrackBack: 5
(URL: http://www.thegirliematters.com/sf/mt-track.cgi/155)

» Note to self: export more often.
Excerpt: Be honest. When was the last time you exported your blog entries?
Weblog: Live in the Delirious Cool
Tracked: 10.05.03 05:45 PM

» Backing up MovableType
Excerpt: Continuing on the theme of paranoia, I’ve been paying serious—and very overdue—attention to backing up my MovableType installation and entries1. I’ve been really bad at remembering to export and backup the entries, and the thoug...
Weblog: but she's a girl...
Tracked: 11.18.03 02:37 PM

» Create An Export Blog
Excerpt: I'm really bad about remembering to do exports of my blog entries in MT, primarily because I have multiple blogs and it's a pain in...
Weblog: Virtual Venus
Tracked: 12.30.03 03:58 PM

» Seeing your MT configuration settings
Excerpt: Don't you love when you're doing something for someone else and you come across something that helps yourself? I'm working on my largest MovableType project to date. It will involve multiple blogs, each with different categories and settings. Keeping i...
Weblog: A View From Home
Tracked: 01.25.04 08:41 AM

» Repairing MT after db corruption
Excerpt: I am running Movable Type under the default berkeley database, and that db got corrupted.* I was able to get things working, but it still wasn't perfect. Besides the annoying error messages at the bottom of many windows (comment posting,...
Weblog: Knowledge Jolt with Jack
Tracked: 06.08.04 09:48 AM