MG 2.2 Disable "Set as Avatar"

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.
 
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.
Was looking for a way to do this. Still works. Thanks!
 
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.
Does anyone know of an alternative way to accomplish this? Unfortunately, this approach isn’t working for us.
 
Back
Top Bottom