Z-blog设置用户头像为微信头像
要修改网站用户头像显示微信头像,主要修改三个地方即可
当前登录用户显示头像

文章底部用户留言头像

文章底部用户评论头像

个人用户文章列表头像

1. 修改当前登录用户头像,修改文件位置:zb_users/theme/tpure/template/navbar.php ## 修改src="{$user.Avatar}"
{* Template Name:页头导航栏公共区(勿选) *}
<div class="header{if $zbp->Config('tpure')->PostFIXMENUON=='1'} fixed{/if}">
<div class="wrap">
{if $zbp->Config('tpure')->PostLOGOON == '1'}
<div class="logo{if $zbp->Config('tpure')->PostLOGOHOVERON=='1'} on{/if}"><a href="{$host}"><img src="{$zbp->Config('tpure')->PostNIGHTLOGO}" alt="{$subname}"><img src="{$zbp->Config('tpure')->PostLOGO}" alt="{$subname}"></a></div>
{else}
<div class="logo{if $zbp->Config('tpure')->PostLOGOHOVERON=='1'} on{/if}"><h1 class="name"><a href="{$host}">{$name}</a></h1></div>
{/if}
<div class="head">
{if $zbp->Config('tpure')->PostSIGNON}
<div class="account">
{if $user.ID > 0}
<div class="signuser{if $zbp->Config('tpure')->PostSIGNUSERSTYLE == '0'} normal{else} simple{/if}">
<a href="{if $zbp->Config('tpure')->PostSIGNUSERURL}{$zbp->Config('tpure')->PostSIGNUSERURL}{else}{$host}zb_system/admin/index.php{/if}" class="uimg"><img src="{$user.Avatar}" alt="{$user.StaticName}">{if $zbp->Config('tpure')->PostSIGNUSERSTYLE == '0'}<span class="uname">{$user.StaticName}</span>{/if}</a>
<div class="signuserpop">
<div class="signusermenu">
{$zbp->Config('tpure')->PostSIGNUSERMENU}
<a href="{BuildSafeCmdURL('act=logout')}">{$lang['tpure']['exit']}</a>
</div>
</div>
</div>
{else}
<div class="sign"><span><a href="{$zbp->Config('tpure')->PostSIGNBTNURL}">{$zbp->Config('tpure')->PostSIGNBTNTEXT}</a></span></div>
{/if}
</div>
{/if}2. 文章底部用户留言头像:zb_users/theme/tpure/template/comment.php ##修改src=“{$comment.Author.Avatar}”
<div class="cmtsitem">
{if $comment.Author.HomePage}<a href="{$comment.Author.HomePage}" rel="nofollow" class="avatar"><img src="{$comment.Author.Avatar}" alt="{$comment.Author.StaticName}" /></a>{else}<span class="avatar"><img src="{$comment.Author.Avatar}" alt="{$comment.Author.StaticName}" /></span>{/if}
<div class="cmtscon">
<div class="cmtshead">
<div class="cmtsname">{if $comment.Author.HomePage}<a href="{$comment.Author.HomePage}" rel="nofollow" target="_blank">{$comment.Author.StaticName}</a>{else}{$comment.Author.StaticName}{/if} {if $zbp->Config('tpure')->PostCMTIPON == '1'}<em>IP:{ly_QQWry_ipinfo($comment.IP)} {$comment.Time()}</em>{/if}</div>
<div class="cmtsdate">{tpure_TimeAgo($comment->Time())}</div>
</div>
<div class="cmtsbody" data-commentid="{$comment.ID}"><p>{$comment.Content}</p></div>
{foreach $comment.Comments as $comment}
{template:commentreply}
{/foreach}
<div class="cmtsfoot"><a href="#comment" onclick="zbp.comment.reply({if $comment.RootID}{$comment.RootID}{else}{$comment.ID}{/if})" class="reply">{$lang['tpure']['reply']}</a></div>
</div>
</div>3. 文章底部用户评论头像:template/commentpost.php ##修改 src="{$user.Avatar}"
<div class="cmt block" id="divCommentPost">
<div class="posttitle">
<h4>{$lang['tpure']['writecmt']}<button id="cancel-reply" class="cmtbtn">{$lang['tpure']['cancelreply']}</button></h4>
</div>
<div class="comment">
<div id="cmtimg" class="cmtimg"><img src="{$user.Avatar}" alt="{$user.Name}" /><p>{if $user.ID>0}{$user.StaticName}{/if}</p></div>
<div class="cmtarea">
<form id="frmSumbit" target="_self" method="post" action="{$article.CommentPostUrl}" >
<input type="hidden" id="gravatar" value="{$default_url}" />
<input type="hidden" name="inpId" id="inpId" value="{$article.ID}" />
<input type="hidden" name="inpRevID" id="inpRevID" value="0" />
<textarea name="txaArticle" id="txaArticle" rows="3" tabindex="1"></textarea>4. 个人用户文章列表头像:theme/tpure/template/author.php ##修改 src="{$author.Avatar}"
{if $type == 'author'}
<div class="block">
<div class="auth">
<div class="authimg">
{if $author.Metas.memberimg}
<img src="{$author.Metas.memberimg}" alt="{$author.StaticName}" />
{else}
<img src="{$author.Avatar}" alt="{$author.StaticName}" />
{/if}