Hey tubedogg, it worked!
I added that last code into forumdisplay.php and it worked perfectly. I wanted to make sure that it was legitimate PHP before attempting to use it.
I basically looked around other PHP files, saw some similar code, changed it a bit and came up with it. It sounded like it would work, but since I just pulled it out of my a$$, I wasnt' sure.
Thanks for your help though!
-Hideki