How To Remove Existing Avatars For An Entire Usergroup

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Jake Bunce
    Senior Member
    • Dec 2000
    • 46598
    • 3.6.x

    How To Remove Existing Avatars For An Entire Usergroup

    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:

    PHP Code:
    // USERGROUPID OF USERGROUP FROM WHICH TO DELETE CUSTOM AVATARS
    $groupid 2
    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:

    PHP Code:
    // USERGROUPID OF USERGROUP FROM WHICH TO DELETE PREDEFINED AVATARS
    $groupid 2
    This file will remove predefined avatars for all members of $groupid, that includes both primary and secondary memberships.

    BACKUP FIRST!
    Attached Files
    Last edited by Jake Bunce; Thu 15 Apr '04, 12:56pm.
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...