getWeather({"success":"1","result":[{"cityno":"shanghai"}) 爱秀代码 - Powered by Discuz! Board
免費論壇 繁體 | 簡體
Sclub交友聊天~加入聊天室當版主
分享
Board logo

标题: [已回答] 自定义头衔显示在头像上方可否出个教程? [打印本页]

作者: 东窗凝月    时间: 2020-8-2 18:10     标题: 自定义头衔显示在头像上方可否出个教程?

360截图20200802181416778.png
就是这个,像“爱秀创始人”这样的自定义头衔要怎样才能显示在头像上方呢

图片附件: 360截图20200802181416778.png (2020-8-2 18:10, 38.22 KB) / 下载次数 6235
http://icode.258club.com/attachment.php?aid=919&k=cc262e720a2dd80c9ebac3b7e1eb9b5d&t=1715020184&sid=BZlVBv


作者: icode    时间: 2020-8-3 18:49

回复 1# 东窗凝月


在viewthread_node模板找到
  1. <!--{if $post['customstatus']}--><p class="customstatus">$post[customstatus]</p><!--{/if}-->
复制
修改为
  1. <!--{if $post['customstatus']}--><a class="icode_touxian" title="自定义头衔">$post[customstatus]</a><!--{/if}-->
复制
然后在css_common模板加入
  1. .icode_touxian {
  2.     list-style: none;
  3.     padding: 5px .4em;
  4.     border: 2px dashed #f44336a8;
  5.     margin-left: 85px;
  6.     position: absolute;
  7.     margin-top: -40px;
  8.     text-align: center;
  9.     color: #ffffff;
  10. background-color: #00000082;
  11. }
复制

作者: 开心    时间: 2020-8-18 11:44

修改完事,帖子页面进不去了,老大
作者: 东窗凝月    时间: 2020-8-18 17:17

回复 3# 开心


    不会吧,你应该是改错代码了,我改后没事。。不过没效果




欢迎光临 爱秀代码 (http://icode.258club.com/) Powered by Discuz! 7.2