Depending on your version of UBB, for version 5X I use a login hack which which I modified to suit my needs. Basically all u need to do is draw a form on your main page and put 2 input boxes, then you post that form to the cgi script that logs you in. Quite easy to do.
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.