The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
Hide [code] content from guests
Hey, I was using this template modification to hide [code] content from guests:
https://vborg.vbsupport.ru/showthread.php?p=2602245 unfortunately it is suddenly not working anymore with 5.6.0 (didnt do any changes, just the update). Can anybody help me to modify the code in a way, so that it is working again? I was using this code before: Code:
<vb:if condition="$vboptions['codemaxlines']"> {vb:set verticalPadding, 12} {vb:set horizScrollbarAllowance, 20} {vb:set blockCssHeight, {vb:math {vb:raw blockheight} * {vb:stylevar bbcode_code_line_height} + {vb:raw verticalPadding} + {vb:raw horizScrollbarAllowance}}} </vb:if> <div class="bbcode_container"> <div class="bbcode_description">{vb:rawphrase code}:</div> <vb:if condition="is_member_of($user, 2, 3, 6)"> <pre class="bbcode_code"<vb:if condition="$vboptions['codemaxlines']"> style="height:{vb:raw blockCssHeight};"</vb:if>>{vb:raw code}</pre> <vb:else /> {vb:rawphrase hide_code} </vb:if> </div> Would appreciate any help! Greetings! --------------- Added [DATE]1583869352[/DATE] at [TIME]1583869352[/TIME] --------------- It only works if I add usergroup "1" to the code (guests). Then its shown to all. Otherwise its hidden for all. Strange... |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|