请问手机内容页匿名用户头像如何修改为自定义头像 New
列表页,搜索页已经修改成自定义头像,内容页无从下手(代码如下)
1 贡献最佳答案
试试在判断条件下,直接插入自定义的头像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']}--><!--{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}<!--{/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>
试试在<!--{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}<!--{/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>
页:
[1]