列表頁,搜索頁已經修改成自定義頭像,內容頁無從下手(代碼如下) <blockquote><span style="white-space: normal;"><span style="white-space:pre"> </span><div class="plc cl" id ... 查看全文
bug八阿哥 發表于 2024-11-20 00:29 好了 謝謝你 |
![]() [backcolor=var(--vscode-textCodeBlock-background)]試試在<!--{if !$post['authorid'] || $post['anonymous']}-->判斷條件下,直接插入自定義的頭像URL 將下面的:https://www.72jz.com/logo.png 改成你的圖片url <div class="plc cl" id="pid$post['pid']"> <div class="avatar"> <img src="<!--{if !$post['authorid'] || $post['anonymous']}-->https://www.72jz.com/logo.png<!--{else}--><!--{avatar($post['authorid'], 'small', true)}--><!--{/if}-->" /> </div> <div class="display pi<!--{if $post['first']}--> pione<!--{/if}-->"> <ul class="authi"> <li class="mtit"> <span class="y"> <!--{if isset($post['isstick'])}--> <img src="{IMGDIR}/settop.png" class="vm" /> {lang from} {$post['number']}{$postnostick} <!--{elseif $post['number'] == -1}--> {lang recommend_post} <!--{else}--> <!--{if !empty($postno[$post['number']])}-->$postno[$post['number']]<!--{else}-->{$post['number']}{$postno[0]}<!--{/if}--> <!--{/if}--> </span> <span class="z"> <!--{if $post['authorid'] && $post['username'] && !$post['anonymous']}--> <a href="home.php?mod=space&uid=$post['authorid']">$post['author']</a> <!--{else}--> <!--{if !$post['authorid']}--> <a href="javascript:;">{lang guest} <em>$post['useip']{if $post['port']}:$post['port']{/if}</em></a> <!--{elseif $post['authorid'] && $post['username'] && $post['anonymous']}--> <!--{if $_G['forum']['ismoderator']}--><a href="home.php?mod=space&uid=$post['authorid']">{$_G['setting']['anonymoustext']}</a><!--{else}-->{$_G['setting']['anonymoustext']}<!--{/if}--> <!--{else}--> $post['author'] <em>{lang member_deleted}</em> <!--{/if}--> <!--{/if}--> </span> |
(代碼如下) <div class="plc cl" id="pid$post['pid']"> <div class="avatar"><img src="<!--{if !$post['authorid'] || $post['anonymous']}--><!--{avatar(0, 'small', true)}--><!--{else}--><!--{avatar($post['authorid'], 'small', true)}--><!--{/if}-->" /></div> <div class="display pi<!--{if $post['first']}--> pione<!--{/if}-->"> <ul class="authi"> <li class="mtit"> <span class="y"> <!--{if isset($post['isstick'])}--> <img src ="{IMGDIR}/settop.png" class="vm" /> {lang from} {$post['number']}{$postnostick} <!--{elseif $post['number'] == -1}--> {lang recommend_post} <!--{else}--> <!--{if !empty($postno[$post['number']])}-->$postno[$post['number']]<!--{else}-->{$post['number']}{$postno[0]}<!--{/if}--> <!--{/if}--> </span> <span class="z"> <!--{if $post['authorid'] && $post['username'] && !$post['anonymous']}--> <a href="home.php?mod=space&uid=$post['authorid']">$post['author']</a> <!--{else}--> <!--{if !$post['authorid']}--> <a href="javascript:;">{lang guest} <em>$post['useip']{if $post['port']}:$post['port']{/if}</em></a> <!--{elseif $post['authorid'] && $post['username'] && $post['anonymous']}--> <!--{if $_G['forum']['ismoderator']}--><a href="home.php?mod=space&uid=$post['authorid']">{$_G['setting']['anonymoustext']}</a><!--{else}-->{$_G['setting']['anonymoustext']}<!--{/if}--> <!--{else}--> $post['author'] <em>{lang member_deleted}</em> <!--{/if}--> <!--{/if}--> </span> |
手機版|小黑屋|Discuz! 官方交流社區
( 皖ICP備16010102號 |皖公網安備34010302002376號 )|網站地圖|
GMT+8, 2025-9-19 13:09 , Processed in 0.075684 second(s), 32 queries .
Powered by Discuz! W1.0 Licensed
Copyright © 2001-2025 Discuz! Team.