The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
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 |
#2
|
||||
|
||||
You could do it with a couple of template edits.
|
#3
|
||||
|
||||
im not quite sure how that would be done in a template edit. aren't the [PHP and [CODE tags embedded in the post's message?
|
#4
|
||||
|
||||
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 --> |
#5
|
|||
|
|||
Code:
<if condition="is_member_of($bbuserinfo, X, Y, Z)"> <!-- php buffer start -->$code<!-- php buffer end --> <else /> Your in usergroup x, y or z and so can't see the code </if> |
#6
|
||||
|
||||
ok, thanks! i found the code i needed in the templates.
|
#7
|
||||
|
||||
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. |
#8
|
||||
|
||||
thanks for the heads up. how long are posts cached for?
eric |
#9
|
||||
|
||||
Whatever you have the setting set for that in the vBulletin settings.
--------------- Added [DATE]1202072385[/DATE] at [TIME]1202072385[/TIME] --------------- How do you get by that then? |
#10
|
||||
|
||||
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|