ruph, compare the file you have with the one I posted, the bugfixes are in there... for a quick fix, (nevermind, all that stuff I wrote a while ago is wrong, I am tired :))
Rename this file with a .pl extension and upload it in ascii to your Template directory and see if it clears up:
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.