The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I'm using vB 3.7.3 PL1. The template in question is "bbcode_code".
I want to block guest from viewing text inside CODE tags. This is what I've done: HTML Code:
<if condition="$show['member']"> <div style="margin:20px; margin-top:5px"> <div class="smallfont" style="margin-bottom:2px">$vbphrase[code]:</div> <pre class="alt2" dir="ltr" style=" margin: 0px; padding: $stylevar[cellpadding]px; border: 1px inset; width: $stylevar[codeblockwidth]; height: {$blockheight}px; text-align: left; overflow: auto">$code</pre> </div> <else /> <div style="margin:20px; margin-top:5px"> <div class="smallfont" style="margin-bottom:2px">$vbphrase[code]:</div> <pre class="alt2" dir="ltr" style=" margin: 0px; padding: $stylevar[cellpadding]px; border: 1px inset; width: $stylevar[codeblockwidth]; height: {$blockheight}px; text-align: left; overflow: auto">You must be logged in to view this content.</pre> </div> </if> I open the post in Google Chrome where I'm logged in, and another instance in IE where I'm not and I'm able to see code in both browsers ![]() What am I doing wrong? Thanks in advance. |
#2
|
||||
|
||||
![]()
bbCode templates don't parse if conditions.
|
#3
|
|||
|
|||
![]()
Is there any other way to achieve what I need?
|
#4
|
||||
|
||||
![]()
<a href="https://vborg.vbsupport.ru/showthread.php?t=105160" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=105160</a>
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|