The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
Hi all, i have need that somebody confirm me if this tpl edit is correct to hide the CODE tag content. I hope that is correct
I have opened the tpl bbcode_code and i have addedd this conditional: Original tpl: Code:
<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>
Code:
<vb:if condition="is_member_of($bbuserinfo, 1,2,3,4,)">
<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>
<vb:else />
<a href="http://mysite.net/register.php" target="_blank"> Only Registered and Logged users can see this content.</a>
</vb:if>
Somebody can suggest me the best solution please? Thanks in advance |
|
#2
|
|||
|
|||
|
What you're trying to do won't completely hide the code from adventurous people.
Have you tried this? .. https://vborg.vbsupport.ru/showthread.php?t=266744 |
|
#3
|
|||
|
|||
|
Quote:
ok i'll go to try that hack thanks a lot, it is all that i'm searching
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|