damn, it's so obvious...
think i have had to less time yesterday when trying this out.
the postbit template is parsed within the getpostbit-
FUNCTION so all variables which are not global would be nulled.
so in your admin/functions.php in getpostbit section you have to add
PHP Code:
global $unregopen,$unregclose;
befor this:
PHP Code:
// user
global $bbuserinfo,$session,$ignore,$cookietimeout;