Thanks for the code guys, I shoulda read this post before staring at the code for awhile to make it work. The instructions were missing the { after this step listed below, if you add the { to it, it fixes all the script error problems.
Find:
if ($Moderator eq "") {
$Moderator = " ";
}
# check Forum Total option--
below that add:
if ($thisforuminfo[0] eq "9") {
*note* - i added in the { on the last line for you guys, so if anyone was still unclear on what was causing the problem, then just add in the litte { and all is good my friends. Btw, i find this board very good and I'd like to thank everyone for their help with so many things, I've always been a reader and not a poster for some reason.