PosArt V2 - Redesign the design
Re: PosArt V2 - Redesign the design
由于gravatar头像被墙,可以将comments.php文件中的<?php $comments->gravatar('50', ''); ?>改为如下代码即可显示。
<?php
//头像CDN by Rich
$host = 'https://secure.gravatar.com'; //自定义头像CDN服务器
$url = '/avatar/'; //自定义头像目录,一般保持默认即可
$size = '50'; //自定义头像大小
$rating = Helper::options()->commentsAvatarRating;
$hash = md5(strtolower($comments->mail));
$avatar = $host . $url . $hash . '?s=' . $size . '&r=' . $rating . '&d=';
?>
<img class="avatar" src="<?php echo $avatar ?>">
<?php
//头像CDN by Rich
$host = 'https://secure.gravatar.com'; //自定义头像CDN服务器
$url = '/avatar/'; //自定义头像目录,一般保持默认即可
$size = '50'; //自定义头像大小
$rating = Helper::options()->commentsAvatarRating;
$hash = md5(strtolower($comments->mail));
$avatar = $host . $url . $hash . '?s=' . $size . '&r=' . $rating . '&d=';
?>
<img class="avatar" src="<?php echo $avatar ?>">
Re: PosArt V2 - Redesign the design
谢谢提醒, 平时挂ss挂习惯 没去注意,wrisin 写了:由于gravatar头像被墙,可以将comments.php文件中的<?php $comments->gravatar('50', ''); ?>改为如下代码即可显示。
<?php
//头像CDN by Rich
$host = 'https://secure.gravatar.com'; //自定义头像CDN服务器
$url = '/avatar/'; //自定义头像目录,一般保持默认即可
$size = '50'; //自定义头像大小
$rating = Helper::options()->commentsAvatarRating;
$hash = md5(strtolower($comments->mail));
$avatar = $host . $url . $hash . '?s=' . $size . '&r=' . $rating . '&d=';
?>
<img class="avatar" src="<?php echo $avatar ?>">
Re: PosArt V2 - Redesign the design
好棒的主题!!!!!
Re: PosArt V2 - Redesign the design
首页不要自动摘要 怎么设置呢??
Re: PosArt V2 - Redesign the design
暂时不行呢...imhua 写了:首页不要自动摘要 怎么设置呢??
Re: PosArt V2 - Redesign the design
php文件修改哪一段?
Re: PosArt V2 - Redesign the design
搜索imhua 写了:php文件修改哪一段?
代码: 全选
<?php $this->excerpt(300, '...'); ?>
__________________
阿里百秀Alibaixiu主题 v5.6 For Typecho http://xiu.160.me/