One way would be to use a vb conditional in the respective templates. For example in the template "bbcode_code" replace:
with:
HTML Code:
<vb:if condition="$show['guest']">You must be registered and logged in to view code contents.<vb:else />{vb:raw code}</vb:if>
edit: I now realize you perhaps want to hide the entire boxes, rather than the content. If so then wrap all of the HTML in the templates with:
HTML Code:
<vb:if condition="$show['member']">Pre-existing template HTML in here</vb:if>