AkiraLite
02-27-2002, 10:00 PM
This was a major time saver for me. My board uses custom user group to control access to different forum. All registrations are moderated and being able to set the group from the 'en masse' activation page is what I needed.
Edit user.php:
Changes under "Start Moderate + coppa" about line 1180
1.) add usergroupid to the 1st $users query
$users=$DB_site->query("SELECT userid,username,email,usergroupid FROM user WHERE usergroupid=4 ORDER BY username");
2.)Add makechoosercode to the end of 1st 'if' statement
if ($DB_site->num_rows($users)==0) {.....
makechoosercode("User Group","usergroupid[$user[userid]]","usergroup",$user[usergroupid]);
Under the next section "# Start do moderate and coppa #
1.) Add the new data to the 'while' statement's $DB_site query
while (list($key,$val)=each($validate)) {......
$DB_site->query("UPDATE user SET usergroupid=$usergroupid[$key] WHERE userid=$key");
So far it's worked perfectly for me.
Edit user.php:
Changes under "Start Moderate + coppa" about line 1180
1.) add usergroupid to the 1st $users query
$users=$DB_site->query("SELECT userid,username,email,usergroupid FROM user WHERE usergroupid=4 ORDER BY username");
2.)Add makechoosercode to the end of 1st 'if' statement
if ($DB_site->num_rows($users)==0) {.....
makechoosercode("User Group","usergroupid[$user[userid]]","usergroup",$user[usergroupid]);
Under the next section "# Start do moderate and coppa #
1.) Add the new data to the 'while' statement's $DB_site query
while (list($key,$val)=each($validate)) {......
$DB_site->query("UPDATE user SET usergroupid=$usergroupid[$key] WHERE userid=$key");
So far it's worked perfectly for me.