Quote:
Originally Posted by BirdOPrey5
The important thing about the conditional I gave you is it only works in posts/the postbit.
You could show it to admins OR the user who's viewing his own post with:
Code:
<vb:if condition="($bbuserinfo['userid'] == $post['userid']) OR (is_member_of($bbuserinfo, 6))">
Where 6 is the usual usergroup for admins.
But the fact your mentioning fields makes me think this code isn't for the postbit.
If you're using custom profile fields you can mark them as private to limit who sees them.
|
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