The wife was asking for a bang code to toss in to because she did not like the <p> tag for her stories. Once I actually sat down to do it, it only took a few minutes, but in the process I just got annoyed at the script length and organization. So I went to work on it and damn did I trim it down. I started with a 713 line script and ended with a 555 line one. If we go back before the move, rantfest was 896 lines long, and with minor exception, all the functionality from it made it to the new server (minor exception being I used to trim out HTML from comments in the rantfest code, now it is trimmed out when the user posts it). So I dropped 183 lines when we moved servers, then another 158 tonight, for a total of 341 lines of code that are now gone. I also took the time to document what the hell I was doing and organize it so that I can expand out faster and more efficiently. There are still a couple of areas in the code that could use some revision, but they are not getting love tonight... and probably not tomorrow either.
Oh, and I also finally got around to working on the delete script to make it double check that you realize when you click the "Delete" button that it is going to delete the post/page. This was another request from the wife. She was adding a bunch of pages to her site today and accidentaly killed one because the delete button and "back to menu" links are relatively close to each other.




