![]() |
Prevent usergroup(s) from viewing [PHP] or [CODE]
I've searched vb.org as well as Google but can't seem to find a way to prevent usergroups from viewing text between [ c o d e ] or [ p h p ] BBcode tags.
Does anyone know if a mod exists for this? Thanks, Eric |
You could do it with a couple of template edits.
|
Quote:
|
You can make the edits in the bbcode templates for which ones you want to block.
In the bbcode_php template, look for this code: HTML Code:
<!-- php buffer start -->$code<!-- php buffer end --> |
Code:
<if condition="is_member_of($bbuserinfo, X, Y, Z)"> |
ok, thanks! i found the code i needed in the templates.
|
Careful... posts are cached.
If an admin (or X,Y,Z) views the post first, it becomes cached. The next guest can walk by and see it. |
thanks for the heads up. how long are posts cached for?
eric |
Whatever you have the setting set for that in the vBulletin settings. ;)
--------------- Added [DATE]1202072385[/DATE] at [TIME]1202072385[/TIME] --------------- Quote:
|
Quote:
|
All times are GMT. The time now is 01:08 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|