Tested on 3.0.0
With the introduction of secondary groups in vB3, querying your database based on group memberships isn't as easy as it used to be. A custom script is required to determine group membership status.
When deleting avatars there are two cases to consider, custom avatars and predefined avatars. Each case is addressed below:
Remove custom avatars:
You can run the delete_custom_avatars.php file (attached to this post) from your forum directory to delete custom avatars for any group, just change this line in the file:
This file will remove custom avatars for all members of $groupid, that includes both primary and secondary memberships.
Remove predefined avatars:
You can run the delete_predefined_avatars.php file (attached to this post) from your forum directory to remove the predefined avatars for any group, just change this line in the file:
This file will remove predefined avatars for all members of $groupid, that includes both primary and secondary memberships.
BACKUP FIRST!
With the introduction of secondary groups in vB3, querying your database based on group memberships isn't as easy as it used to be. A custom script is required to determine group membership status.
When deleting avatars there are two cases to consider, custom avatars and predefined avatars. Each case is addressed below:
Remove custom avatars:
You can run the delete_custom_avatars.php file (attached to this post) from your forum directory to delete custom avatars for any group, just change this line in the file:
PHP Code:
// USERGROUPID OF USERGROUP FROM WHICH TO DELETE CUSTOM AVATARS
$groupid = 2;
Remove predefined avatars:
You can run the delete_predefined_avatars.php file (attached to this post) from your forum directory to remove the predefined avatars for any group, just change this line in the file:
PHP Code:
// USERGROUPID OF USERGROUP FROM WHICH TO DELETE PREDEFINED AVATARS
$groupid = 2;
BACKUP FIRST!