View Full Version : Field viewable only by X usergroups.

31 Oct 2009, 04:28

I'm working on a modification and I've added a panel to edit a few options of it on the vBulletin Options.

Now, I have added the next on my product XML:

Code is only visible to licensed users, and only when logged into the forums.

On that field I will write the usergroups allowed to see X content.
then add another field like that but with the id's of the users excluded from viewing that content.

What i need is the PHP condition for this. I have done another condition for a field where you have to select yes or no, but what I want here is a condition so the usergroups ID i write there ( separated by comas ) have access to view X content on a template.

Thanks !