找回密码
 立即注册
搜索

途迹耕耘

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

GMT+8, 2025-12-22 02:35 , Processed in 0.146885 second(s), 14 queries .

[DZ教程] discuz! 帖子作者用户组图标

[复制链接]
admin 发表于 2020-5-1 23:52:45 | 显示全部楼层 |阅读模式
node中使用。
  1. <!--用户组图标-->
  2. <!--{eval $_self = $thread['author'] && $post['author'] == $thread['author'] && $post['position'] !== '1';}-->
  3. <!--{if $_self }-->
  4. <img class="authicn vm" id="authicon$post[pid]" src="{IMGDIR}/ico_lz.png" />
  5. <!--{else}-->
  6. <!--{if !$post['anonymous'] && $_G['cache']['groupicon'][$post['groupid']]}-->
  7. <img class="authicn vm" id="authicon$post[pid]" src="$_G['cache']['groupicon'][$post['groupid']]" />
  8. <!--{else}-->
  9. <img class="authicn vm" id="authicon$post[pid]" src="$_G['cache']['groupicon'][0]" />
  10. <!--{/if}-->
  11. <!--{/if}-->
  12. <!--end-->
复制代码