XF 2.2 Hide image option for Users

Silmarillion

Active member
Licensed customer
I am surprised that this function, quite obviously, does not exist with Xenforo !?
Many of our members would like to hide images in postings and avatars. Is that possible?

Best regards,
Silmarillion
 
Solution
Create a custom user field:

1614798559988.webp


Edit the PAGE_CONTAINER template:

HTML:
<xf:if is="$xf.visitor.Profile.custom_fields.hideImages">
    <xf:css>
    .bbImageWrapper
    {
        display: none;
    }
    </xf:css>
</xf:if>

1614798623852.webp


Members can then opt in to hiding images via their preferences.

1614798664635.webp
Back
Top Bottom