爱秀代码's Archiver

东窗凝月 发表于 2020-8-2 18:10

自定义头衔显示在头像上方可否出个教程?

[attach]919[/attach]
就是这个,像“爱秀创始人”这样的自定义头衔要怎样才能显示在头像上方呢

icode 发表于 2020-8-3 18:49

[b]回复 [url=http://icode.258club.com/redirect.php?goto=findpost&pid=54783&ptid=1763]1#[/url] [i]东窗凝月[/i] [/b]


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

开心 发表于 2020-8-18 11:44

修改完事,帖子页面进不去了,老大{:5_269:}

东窗凝月 发表于 2020-8-18 17:17

[b]回复 [url=http://icode.258club.com/redirect.php?goto=findpost&pid=58225&ptid=1763]3#[/url] [i]开心[/i] [/b]


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

页: [1]

Powered by Discuz! Archiver 7.2  © 2001-2009 Comsenz Inc.