Ack - I'm sorry, I forgot the closing }
So after each elseif statement you need a }
Like this:
// Add the special flag if they are part of the special group - hack by JoshPet
elseif (preg_match("/-5-/",$postergroup)) { // adjust this group number if needed
$UserStatus = "<img src="{$config['images']}/specialflagA.gif" alt="SPECIAL" border="0" />";
}
elseif (preg_match("/-6-/",$postergroup)) { // adjust this group number if needed
$UserStatus = "<img src="{$config['images']}/specialflagB.gif" alt="SPECIAL" border="0" />";
}
etc....
That should do it.

Sorry.
