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

返回列表 發帖
查看: 803|回復: 3

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

18

主題

143

回帖

197

積分

漸入佳境

貢獻
3 點
金幣
2 個
樓主
發表于 2024-11-19 22:48:03 | 只看樓主 |只看大圖 |倒序瀏覽 |閱讀模式


列表頁,搜索頁已經修改成自定義頭像,內容頁無從下手(代碼如下)
  1. <blockquote><span style="white-space: normal;"><span style="white-space:pre">        </span><div class="plc cl" id="pid$post['pid']"></span>
復制代碼


1 貢獻

最佳答案



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

回復

使用道具 舉報

18

主題

143

回帖

197

積分

漸入佳境

貢獻
3 點
金幣
2 個
沙發
 樓主| 發表于 2024-11-19 22:48:46 | 只看Ta
(代碼如下)
<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>
回復

使用道具 舉報

67

主題

298

回帖

422

積分

應用開發者

貢獻
7 點
金幣
9 個
QQ
板凳
發表于 2024-11-20 00:29:49 | 只看Ta


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

回復

使用道具 舉報

18

主題

143

回帖

197

積分

漸入佳境

貢獻
3 點
金幣
2 個
地板
 樓主| 發表于 2024-11-20 02:01:07 | 只看Ta
bug八阿哥 發表于 2024-11-20 00:29
試試在判斷條件下,直接插入自定義的頭像URL

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

好了  謝謝你
回復

使用道具 舉報

您需要登錄后才可以回帖 登錄 | 立即注冊

本版積分規則

  • 關注公眾號
  • 有償服務微信
  • 有償服務QQ

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

GMT+8, 2025-9-19 07:19 , Processed in 0.081533 second(s), 32 queries .

Powered by Discuz! W1.0 Licensed

Copyright © 2001-2025 Discuz! Team.

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