First of all, I apologize for my english because I use google translate.I found a solution for BBcode_attachment to be invisible to the unregistered.It is tested both in VB 5.2 and 5.3.3.
Admincp ยป Languages & Phrases ยป Phrase Manager ยป Add New Phrase
Phrase Type : GLOBAL
Product : vBulletin
Varname : hide_code
Text : Please Login or <a href="register.php">Register</a> to see codes
Go to your Admincp ยป Styles & Templates ยป Style Manager ยป Your Style ยป BB Code Layout Templates
Open bbcode_attachment_list will see this code:
Search on line 4 <ul> below it add this
Go to the end of the closing tags and under </ ul>
</ div> add this Below
I hope you find it useful
Admincp ยป Languages & Phrases ยป Phrase Manager ยป Add New Phrase
Phrase Type : GLOBAL
Product : vBulletin
Varname : hide_code
Text : Please Login or <a href="register.php">Register</a> to see codes
Go to your Admincp ยป Styles & Templates ยป Style Manager ยป Your Style ยป BB Code Layout Templates
Open bbcode_attachment_list will see this code:
Search on line 4 <ul> below it add this
Code:
<vb:if condition="!is_member_of($user, 1)">
</ div> add this Below
Code:
<pre class= <pre class="bbcode_attachment_list"<vb:if condition="!empty($attachment['filename'])"> style="height:{vb:raw blockCssHeight};"</vb:if>{vb:raw code}</pre> <vb:else /> {vb:rawphrase hide_code} </vb:if> </vb:if>