I've redesigned my quotes blog so that only a random entry is displayed on the first page. I turned off date archiving, and deleted all the dated files, then deleted printer-friendly files, and removed all the links to print the page. I thought this might free up some space on my server, but as far as I can tell it's made little difference. I like the new slim-line look of it though. Since I have a random entry in the side bar on the rest of the pages, I could also delete the reference to Quotes on the navigation tabs. Perhaps when I have something else to replace it with I'll do that, since I have to manually edit all the templates that use the tabs. The reason for that was the active tab on each page, otherwise I could have included it in the header.
Security was a problem with the PHP files when connecting to the database. I followed the directions in the tutorial Learning Movable Type: Querying a MySQL database with PHP - Random Quotes when I first set this up but got errors on the archive pages. I left all the sql connect information in the php file which I know is a no-no. So today I did something about that and followed the tutorial again. Everything is working perfectly since I decided to use a fixed path. It was the ../ that threw the first script out. Now I can sleep easy knowing no-one is hacking my database.


Leave a comment