Quote:
Originally Posted by kether1
No actually, I am editing the SHOWENTRY template in vbadvanced dynamics. I have added custom fields and would like to specify who can see one or two specific private fields. Sorry I did not make that clear in the first place.
The bit of code I put in my previous 'merged' post:
<vb:if condition="$field['fieldid'] == 6">
Tells the forum to put the information in field 6 in that location in the SHOWENTRY. I want to wrap a conditional around it to only display the information in field '6' to the admin group and the person who actually posted the information in the first place.
I believe it should be fairly simple to wrap a conditional around this conditional, but so far I have not been able to figure it out.
Thanks for your response.
Kether
|
Well this will limit it to administrators but I would have no way of knowing the conditional vbadvanced dynamics might use to know which user posted it- that would be a question better asked at their own forums- they'll know what's possible with their product.
Code:
<vb:if condition="$field['fieldid'] == 6 AND is_member_of($bbuserinfo, 6)">
The combined code, assuming you can find a conditional from vb advanced would be something like:
Code:
<vb:if condition="$field['fieldid'] == 6 AND (is_member_of($bbuserinfo, 6) OR OTHER_CONDITION_HERE)">