Quote:
Originally Posted by Lynne
The opt out can go in either place. I think, as I suggested above, that you want to use $post['userid'] instead of $bbuserinfo['userid'] since the condition is related to the userid of the poster, not the viewer.
|
Thanks Lynne ....
So, for clarity ...
If I place this at the start of a sequence of code:
<vb:if condition="is_member_of($bbuserinfo,5,6,7,9,10) AND !in_array($post['userid'], array(2,12751))">
code to execute
</vb:if>
... then only Usergroups 5,6,7,9,10 plus ANY user who is NOT Userid 2 or 12751 will have the code executed?
Anyone else would skip past the </vb:if> to any code after it ... correct?
Regards,
Doug
Edit: Follow up Lynne ... added the code as you suggested changing to $post['userid'] and it worked PERFECT !... thank you very much for your help ... :up: