Not quite sure what you’re asking, but if you’re just trying to display a message to non-logged in users, use something like:
<?php if ( !bb_is_user_logged_in() ) : ?>
Welcome, please log in or register!
<?php endif; ?>
My coding is pretty terrible too ;P I just learn from poking around in bbPress and WordPress and breaking things a lot, so you’re going about it the right way