Alright, but I have a question first. On three of your additions, I was to add an 'end if.' Well on one of them, there was only one end if, so now there's 2. On the other 2, there were 2 end if's, so now there's 3. Is that normal? B/c in your directions you didn't note whether I already had 1 end if there or 2. (Just clarifying.)
There should be 2 end if's as I had shown you in my post. The red code is what you should add.
When you update your topic.txt file, I will just send you the completly fixed file insetad of you doing it by hand. That way I can be sure that there are no errors in the file.
Are you sure you updated the topic.asp file on your site? There is nothing wrong with your file as far as I can see. I have looked over it twice and don't see anything that would give an error.
Try re-uploading the topic.asp file. To make sure your file is being updated, create an empty line at the top of your file. Then go to your topic.asp page on your forum and see if the line number changes in the error.