The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Hide [code],[html],[php] BBCode from Unregistered/Unverified Details »» | |||||||||||||||||||||||||||||||||
Hide [code],[html],[php] BBCode from Unregistered/Unverified
Developer Last Online: Jun 2015
I have searched for such mod on the forums and couldn't find a fully functional one - either due to post cache issue or etc.
I have created something similar and fully functional without any cache issue based on kh99's (moderator at vb.org) idea. This is my first release on this forum so hope that you guys don't go hard on me. Features:
Installation: 1) Go to AdminCP -> Styles & Templates -> Style Manager -> *PRIMARY PARENT STYLE* -> Expand Template 2) Select BB Code Layout Templates -> Replace bbcode_code with the following: HTML Code:
<!-- START PRIVATE BBCODE --> <div class="bbcode_container"> <div class="bbcode_description">{vb:rawphrase code}:</div> <pre class="bbcode_code"<vb:if condition="$vboptions['codemaxlines']"> style="height:<vb:if condition="$blockheight<$vboptions['codemaxlines']">{vb:math {vb:raw blockheight}*{vb:stylevar mid_fontSize}+{vb:stylevar mid_fontSize}*2}<vb:else />{vb:math {vb:raw blockheight}*{vb:stylevar mid_fontSize}+{vb:stylevar mid_fontSize}}</vb:if>;"</vb:if>>{vb:raw code}</pre> </div> <!-- END PRIVATE BBCODE --> HTML Code:
<!-- START PRIVATE P_BBCODE --> <div class="bbcode_container"> <div class="bbcode_description">{vb:rawphrase code}:</div> <hr /><code class="bbcode_code">{vb:raw code}</code><hr /> </div> <!-- END PRIVATE P_BBCODE --> HTML Code:
<!-- START PRIVATE BBCODE --> <div class="bbcode_container"> <div class="bbcode_description">{vb:rawphrase html_code}:</div> <pre class="bbcode_code"<vb:if condition="$vboptions['codemaxlines']"> style="height:<vb:if condition="$blockheight<=$vboptions['codemaxlines']">{vb:math {vb:math {vb:raw blockheight}+2}}*{vb:stylevar mid_fontSize}}<vb:else />{vb:math {vb:math {vb:raw blockheight}+1}*{vb:stylevar mid_fontSize}}</vb:if>;"</vb:if>>{vb:raw code}</pre> </div> <!-- END PRIVATE BBCODE --> HTML Code:
<!-- START PRIVATE P_BBCODE --> <div class="bbcode_container"> <div class="bbcode_description">{vb:rawphrase html_code}:</div> <hr /><code class="bbcode_code">{vb:raw code}</code><hr /> </div> <!-- END PRIVATE P_BBCODE --> HTML Code:
<!-- START PRIVATE BBCODE --> <div class="bbcode_container"> <div class="bbcode_description">{vb:rawphrase php_code}:</div> <div class="bbcode_code"<vb:if condition="$vboptions['codemaxlines']"> style="height:<vb:if condition="$blockheight<$vboptions['codemaxlines']">{vb:math {vb:raw blockheight}*{vb:stylevar mid_fontSize}+{vb:stylevar mid_fontSize}*2}<vb:else />{vb:math {vb:raw blockheight}*{vb:stylevar mid_fontSize}+{vb:stylevar mid_fontSize}}</vb:if>;"</vb:if>><code>{vb:raw code}</code></div> </div> <!-- END PRIVATE BBCODE --> HTML Code:
<!-- START PRIVATE P_BBCODE --> <div class="bbcode_container"> <div class="bbcode_description">{vb:rawphrase php_code}:</div> <hr /><code class="bbcode_code">{vb:raw code}</code><hr /> </div> <!-- END PRIVATE P_BBCODE --> 9) Replace bbcode_code with the following: HTML Code:
<!-- START PRIVATE M_BBCODE --> <div class="bbcode_container"> <div class="bbcode_description">{vb:rawphrase code}: [<a href="#" class="view">{vb:rawphrase view}</a>]</div> <pre class="bbcode_code">{vb:raw code}</pre> </div> <!-- END PRIVATE M_BBCODE --> HTML Code:
<!-- START PRIVATE M_BBCODE --> <div class="bbcode_container"> <div class="bbcode_description">{vb:rawphrase html_code}: [<a href="#" class="view">{vb:rawphrase view}</a>]</div> <pre class="bbcode_code">{vb:raw code}</pre> </div> <!-- END PRIVATE M_BBCODE --> HTML Code:
<!-- START PRIVATE M_BBCODE --> <div class="bbcode_container"> <div class="bbcode_description">{vb:rawphrase php_code}: [<a href="#" class="view">{vb:rawphrase view}</a>]</div> <div class="bbcode_code"><code>{vb:raw code}</code></div> </div> <!-- END PRIVATE M_BBCODE --> 13) Select Plugins & Products -> Add New Plugin for the normal postbit with the following: PHP Code:
PHP Code:
PHP Code:
Now the [code],[html],[php] BBCode should be hidden from unregistered and unverified accounts - of course, feel free to alter the codes above to match your needs. Have a great day. Screenshots
Supporters / CoAuthors Show Your Support
|
2 благодарности(ей) от: | ||
puertoblack2003, sodasusu |
Comments |
#2
|
||||
|
||||
Nice work !
|
#3
|
|||
|
|||
I found this works much better - a simple plugin - works with all custom bbcodes, signatures and usergroups too
https://vborg.vbsupport.ru/showthread.php?t=318467 |
#4
|
||||
|
||||
how should i can hide keywords
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|