久久久久av_欧美日韩一区二区在线_国产精品三区四区_日韩中字在线

請問手機內容頁匿名用戶頭像如何修改為自定義頭像

805 3 0提示:支持鍵盤翻頁<-左 右-> 風吹故人香 發表于 2024-11-19 22:48 帖子模式

列表頁,搜索頁已經修改成自定義頭像,內容頁無從下手(代碼如下) <blockquote><span style="white-space: normal;"><span style="white-space:pre">        </span><div class="plc cl" id ... 查看全文

    組圖打開中,請稍候......

評論3個評論

風吹故人香發表于  2024-11-20 02:01:07
bug八阿哥 發表于 2024-11-20 00:29
試試在判斷條件下,直接插入自定義的頭像URL

將下面的:https://www.72jz.com/logo.png 改成你的圖片url ...

好了  謝謝你
bug八阿哥發表于  2024-11-20 00:29:49


[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>

風吹故人香發表于  2024-11-19 22:48:46
(代碼如下)
<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>
  • 關注公眾號
  • 有償服務微信
  • 有償服務QQ

手機版|小黑屋|Discuz! 官方交流社區 ( 皖ICP備16010102號 |皖公網安備34010302002376號 )|網站地圖|star

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.

關燈 在本版發帖
有償服務QQ
有償服務微信
返回頂部
快速回復 返回頂部 返回列表