Hi, I was wondering how to hide the content of code tags from unregistered members.
hiding code content from guests
Collapse
X
-
Admin CP -> Styles & Templates -> Style Manager -> {Choose Style} -> {Drop Down Menu} Edit Templates -> BB Code Layout Templates -> « All Template Groups » -> bbcode_code
# find in template: bbcode_code
# add conditional to not display for selected usergroup
# replace 'X' with usergroup you do not want to view CODE
HTML Code:<if condition="!is_member_of($bbuserinfo, X)"><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></if>
-
Need to find a way to add a message like... You need to be logged in to View Code
Any Idea?Nish Vamadevan
www.techforums.info - Online Technical ForumsComment
-
Here you go.
HTML Code:<if condition="!is_member_of($bbuserinfo, X)"><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></if><if condition="is_member_of($bbuserinfo, X)"><b>You must be logged in to view codes.</b></if>
Last edited by The-Ensemble; Thu 19 Jul '07, 6:19am.Comment
-
-
-
Sorry, there is no function to do this. This requires modifying the code. We cannot officially support code modifications or forums running modified code, however you can try searching or asking for help with this over at www.vbulletin.org.Comment
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Comment