MG 2.2 Disable "Set as Avatar"

Venthas

Member
Hello all!

While still doing our imports from Invision, I've noticed something in XFMG. Is there a way to disable the "Set as Avatar" feature? We'd like to disable the ability for users to use other's artwork as their avatars.

Thanks!
Ven
 
There isn't an explicit option over it. You can search the templates for xfmg_set_as_avatar which will point you to the 2 main templates that link into it (and the one the represents the form to actually do it). You could just remove the links from those templates.
 
Hello all!

While still doing our imports from Invision, I've noticed something in XFMG. Is there a way to disable the "Set as Avatar" feature? We'd like to disable the ability for users to use other's artwork as their avatars.

Thanks!
Ven
I was just searching for a similar solution.

This works for me:
In the xfmg_media_view template, just change the condition from: <xf:if is="$mediaItem.canSetAsAvatar()">
to this: <xf:if is="$mediaItem.canSetAsAvatar() AND $xf.visitor.user_id == $mediaItem.user_id">

This way only the owner can set it's media item as an avatar.
 
Top Bottom