$username and $user_number are always present - you can get the status via OpenProfile... however, there can be conditions during which a post can be processed that is NOT owned by the user making the request, so this may have unintended side-effects.
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.