夜间模式
请选择 进入手机版 | 继续访问电脑版
🌓黑暗模式

 找回密码
 立即注册
搜索
热搜: discuz sclub 夜读
查看: 272|回复: 0

[OOCN] 主题列表页显示头像圆头化

[复制链接]
  • TA的每日心情
    擦汗
    2023-7-12 20:55
  • 签到天数: 8 天

    连续签到: 8 天

    [LV.3]偶尔看看II

    74

    主题

    0

    回帖

    1631

    积分

    管理员

    积分
    1631
    发表于 2023-7-6 12:17:05 | 显示全部楼层 |阅读模式

    224647wnmw8nv8kcf6knnm.png


    1、打开 forumdisplay 模板,找到:

    1. <td class="author">

    2. <cite>

    3. <!--{if $thread['authorid'] && $thread['author']}-->

    4. <a href="space.php?uid=$thread[authorid]">$thread[author]</a>

    5. <!--{else}-->

    6. <!--{if $forum['ismoderator']}-->

    7. <a href="space.php?uid=$thread[authorid]">{lang anonymous}</a>

    8. <!--{else}-->

    9. {lang anonymous}

    10. <!--{/if}-->

    11. <!--{/if}-->

    12. </cite>

    13. <em>$thread[dateline]</em>

    14. </td>[/mw_shl_code]

    15. 修改为:

    16. [mw_shl_code=css,true]<td class="author">

    17. <div style="float:left;width:28px;padding-top:4px;">

    18. <img src="http://您的论坛网址/uc_server/avatar.php?uid=$thread[authorid]&size=small" class="ava_border" width="25px" height="25px" style="border:1px solid #ccc;

    19. border-radius: 25px;padding:2px; margin:0px; background-color:#fff;" />

    20. </div>

    21. <div style="float:left;padding:2px 0px 0px 6px;">

    22. <cite>

    23. <!--{if $thread['authorid'] && $thread['author']}-->

    24. <a href="space.php?uid=$thread[authorid]">$thread[author]</a>

    25. <!--{else}-->

    26. <!--{if $forum['ismoderator']}-->

    27. <a href="space.php?uid=$thread[authorid]">{lang anonymous}</a>

    28. <!--{else}-->

    29. {lang anonymous}

    30. <!--{/if}-->

    31. <!--{/if}-->

    32. </cite>

    33. <em>$thread[dateline]</em>

    34. </div>

    35. </td>
    复制代码


    2、打开 css_common 模板,在最下面添加:

    1. /*主题作者头像显示*/
    2. td.author { width: 150px; text-align: left; }
    复制代码



    文章来源:oocn.258club.com




    上一篇:板块主题列表页显示作者华丽丽的头像
    下一篇:给首页板块名称加个底色
    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    快速回复 返回顶部 返回列表