Here are complete instructions for letting several groups use avatars. All steps are the same as before except the last one. I've also changed the name of the config option to make it plural.
Open up your editbasic.php file and do the following:
Find these lines:
<br />// -----------------<br />// Get the user info<br /> $userob = new user;<br /> $user = $userob -> authenticate(); <br />
Replace them with this:
<br />// -----------------<br />// Get the user info<br /> $userob = new user;<br /> $user = $userob -> authenticate("U_Groups"); <br />
Now find these lines:
<br /> if ($theme['PictureView']) {<br /> if ( ($config['avatars']) && (ini_get('file_uploads')) ){<br />
And replace them with this:
<br /> $grpfound = false;<br /> $avgroups = split(",", $config['avatargroups']); <br /> foreach ( $avgroups as $grp ) {<br /> if ( stristr($user['U_Groups'], "-{$grp}-") ) {<br /> $grpfound = true;<br /> }<br /> }<br /> if ($theme['PictureView'] && $grpfound ) {<br /> if ( ($config['avatars']) && (ini_get('file_uploads')) ){<br />
That's it. Now you need to add a new configuration option to your config file, so open that up and insert this at the end:
$config['avatargroups'] = "5,6,7";
This has been tested to work on 6.2.3.