I'm having way too much difficulty getting the query to work the way I want it...so how about I try another route.
I have the setting variable "showroster_displayed_groups" in my options menu. It has the default values of 19,13,24,20,17,18. Would the following code (which I posted above) read them into an array like I think it should?
PHP Code:
$displaygroups = explode(',', $vbulletin->options['showroster_display_groups']);
If so, since userinfo['usergroupid'] is a working array variable on my page, could I use a foreach control to pull out each number from my $displaygroups array and compare it to the userinfo['usergroupid']?
How could I write the foreach control to do that?