Announcement

Collapse
No announcement yet.

Hide attachments to unregistered vBulletin 5.3.3

Collapse
X
Collapse
First Prev Next Last
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Hide attachments to unregistered vBulletin 5.3.3

    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

    Code:
    <vb:if condition="!is_member_of($user, 1)">
    Go to the end of the closing tags and under </ ul>

    </ 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>
    I hope you find it useful
    A cordial greeting

Users Viewing This Page

Collapse

There is 1 user viewing this forum topic.

  • Guest Guest

Latest Posts

Collapse

Working...
X
Searching...Please wait.
An unexpected error was returned: 'Your submission could not be processed because you have logged in since the previous page was loaded.

Please push the back button and reload the previous window.'
An unexpected error was returned: 'Your submission could not be processed because the token has expired.

Please push the back button and reload the previous window.'
An internal error has occurred and the module cannot be displayed.
There are no results that meet this criteria.
Search Result for "|||"