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

Discuz! 官方交流社區

標題: 請問手機內容頁匿名用戶頭像如何修改為自定義頭像 [打印本頁]

作者: 風吹故人香    時間: 2024-11-19 22:48
標題: 請問手機內容頁匿名用戶頭像如何修改為自定義頭像
(, 下載次數: 15)

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



作者: 風吹故人香    時間: 2024-11-19 22:48
(代碼如下)
<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>
作者: 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>


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

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

好了  謝謝你




歡迎光臨 Discuz! 官方交流社區 (http://www.9999xn.com/) Powered by Discuz! W1.0