Removing avatars

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • GCC LLC
    New Member
    • Oct 2005
    • 27
    • 3.5.x

    Removing avatars

    Is there a way to remove avatars from certain usergroups? Some users still have avatars from years ago and its producing a lot of dead links.
  • Jake Bunce
    Senior Member
    • Dec 2000
    • 46598
    • 3.6.x

    #2
    Custom avatars? Or those defined in your:

    Admin CP -> Avatars -> Avatar Manager

    To remove custom avatars, run this query (backup first):

    Code:
    DELETE FROM customavatar AS customavatar
    USING customavatar
    LEFT JOIN user AS user ON (user.userid = customavatar.userid)
    WHERE user.usergroupid = [color=red]X[/color]
    Where X is the usergroupid of the primary usergroup for which you want to delete custom avatars.

    To remove predefined avatars, run this query (backup first):

    Code:
    UPDATE user
    SET avatarid = 0
    WHERE usergroupid = [color=red]X[/color]
    Where X is the usergroupid of the primary usergroup for which you want to delete predefined avatars.

    Comment

    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
    Working...