With older versions we added the following line towards the bottom of include/check_useraccount.php:
PHP Code:
$smarty->assign('user_membershipid',$user_account['membershipid']);
Then {$user_membershipid} is available in the template. This method may still be necessary in 4.4.