DPK - found the problem. The reason you can't get the bg to print properly even with an if/else statement is that you need to to chomp the $user_profile[6] field in public_memberlist.pl. Once I did that, the bg did properly display after I used my if/else statement.
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.