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
338
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

Permalink Manager Pro A
Permalink Manager Pro 2.5.3.6 Nulled
A WordPress URL Editor With Game-Changing Versatility
Report Improvements by Xon A
Screenshots are still to be added, XF1 version has similar functionality and the screenshots
JetTabs - Tabs and Accordions for Elementor Page Builder | Add-ons A
an efficient addon allowing to add stylish tabs and accordion blocks to the webpages

Similar resources

Back
Top