Hide avatar on deleted posts for staff

Hide avatar on deleted posts for staff 13.37

没有下载权限
摘要
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
代码:
 <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


代码:
<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
作者
anne51
浏览
305
扩展类型
rar
文件大小
487 字节
首次发布
上次更新
评分 0.00 星 0 个评分
链接失效了吗? 发送消息 给 NP 团队,我们会尽快为您处理!
支持开发者 如果您对测试满意或项目已成功盈利,可点击「更多信息」按钮,通过购买来支持开发者!

来自 anne51 的更多资源

[Wutime] AdBlock Detector Pro A
Key detection is randomized between installations to prevent community adblockers.
Xinterio - Interior Design WordPress主题 + RTL A
将你的室内设计愿景变为现实,请使用Xinterio
Ecomus - 最强大 Shopify OS 主题 A
一个高度灵活且易于使用的主题,适用于多种产品及用途。

相似的资源

This article will show you how to do that for public posts and private conversations.
Resizing Large Images in Posts A
have noticed that images in posts appear quite large.
顶部