Hide avatar on deleted posts for staff

Hide avatar on deleted posts for staff 13.37

No permission to download
Short Description
Enhance your experience by hiding avatars and reducing page scroll size with our edit template. Update post_macros to hide user avatars for deleted posts, making it easier to manage. Simply replace the existing code snippet with our suggested version.
I didn't like how the avatars on deleted posts were viewing and enlarging the page especially since I've increased my default avatar sizing. By editing the following, you can hide the avatar and reduce the page scrolling size making it easier to manage.

Edit template: post_macros
Code:
 <div class="message-cell message-cell--user">
                    <xf:macro template="message_macros" name="user_info_simple" arg-user="{$post.User}" arg-fallbackName="{$post.username}" arg-includeMicrodata="{$includeMicrodata}" arg-itemProp="author" />
                </div>
Replace


Code:
<xf:if is="!$post.message_state == 'deleted'">
                <div class="message-cell message-cell--user">
                    <xf:macro template="message_macros" name="user_info_simple" arg-user="{$post.User}" arg-fallbackName="{$post.username}" arg-includeMicrodata="{$includeMicrodata}" arg-itemProp="author" />
                </div>
            </xf:if>


BEFORE:
RZ_BEFORE.webp


AFTER:
RZ_BEFORE.webp
Author
anne51
Views
322
Extension type
rar
File size
487 bytes
First release
Last update
Ratings 0.00 star(s) 0 ratings
Link was Broken? Send message to the Website Team and we will assist you quickly!
Support Developer If you are satisfied with the test or your project has earned you money, Click the More Information button to support the developer by purchasing.

More resources from anne51

SignalLab - Forex And Crypto Trading Signal Platform A
a Professional Trading Signal Solution that comes with Email, SMS & Telegram Integration
Affirm - Marketing & Digital Agency WordPress Theme A
Affirm conforms to industry best practices at all affirms.

Similar resources

Top