效果:这个需要安装对应的插件
对应的显示插入:
文章显示:<?php echo $user['threads'];?>
评论显示:<?php echo $user['posts'];?>
关注显示:<?php echo intval($user['follows']); ?>
粉丝显示:<?php echo intval($user['followeds']); ?>
收藏文章:</span><a href="<?php echo url("my-favorites"); ?>" target="_blank"><?php echo intval($user['favorites']);?>
大家可以自己去DLY扒一扒好看详细页面,这些都需要安装对应的插件才能实现包括精华文章也是这样子可以自己去目录看看对应的代码
对应的文件夹是:my.htm
里面用的图标可以看这个文章:https://xiunobbs.cn/thread-4404.htm
按照对应的修改就可以了
CSS:
<style>
.user-sidebar-count{display:flex;flex-flow:wrap;padding:15px;}.box,.side-fixed{background-color:#fff;box-shadow:0px 0px 2px rgb(98 124 153 / 10%);position:relative;margin-left:-8px;margin-right:-8px;}.b2-radius{border-radius:6px;}.user-sidebar-count li{width:33%;padding:20px;position:relative;box-sizing:border-box;background-color:#F7F9FA;border:5px solid #fff;}.user-sidebar-count li i{position:absolute;font-size:90px;color:rgba(209,233,255,1.28);right:25px;top:25px;}.b2font{font-family:"b2font" !important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;}*,::after,::before{box-sizing:border-box;}.user-item-desc{font-size:12px;color:#AAAEB3;}.user-sidebar-count li p{font-size:24px;font-weight:600;margin:10px 0;}#author-index .user-info{padding:6px 20px;}.box,.side-fixed{background-color:#fff;box-shadow:0px 0px 2px rgb(98 124 153 / 10%);position:relative;margin-left:-8px;margin-right:-8px;}#author-index .user-info p{position:relative;padding:14px 0;}p{margin-top:0;margin-bottom:1rem;}*,::after,::before{box-sizing:border-box;}p{display:block;margin-block-start:1em;margin-block-end:2em;margin-inline-start:25px;margin-inline-end:0px;}div{border:0;font-family:inherit;font-size:100%;font-style:inherit;font-weight:inherit;margin:0;outline:0;padding:0;vertical-align:baseline;word-wrap:break-word;box-sizing:border-box;}.card-body{-ms-flex:1 1 auto;flex:1 1 auto;min-height:1px;padding:1.25rem;}div{border:0;font-family:inherit;font-size:100%;font-style:inherit;font-weight:inherit;margin:0;outline:0;padding:0;vertical-align:baseline;word-wrap:break-word;box-sizing:border-box;}#author-index .user-info p span{display:inline-block;margin-right:5px;}.user-info-title{color:#8590A6;font-size:15px;line-height:22px;}*,::after,::before{box-sizing:border-box;}{font-size:1rem;color:#fff;padding:.5rem 2rem;}a:link,a:visited,a:hover{text-decoration:none;transition:color 0.15s ease-in-out,background-color 0.15s ease-in-out,border-color 0.15s ease-in-out,box-shadow 0.15s ease-in-out;}.btn-outline-ysecondary{background:#0066ff;border:0.5px solid #0066ff;border-radius:6px;color:#fff;}</style>
代码:
<ul class="user-sidebar-count box b2-radius">
<li>
<i class="fa fa-file-text-o fa-1x"></i>
<div>
<div class="user-item-name">发布的文章</div>
<p class="user-item-count"><?php echo $user['threads'];?></p>
<div class="user-item-desc">在本站的投稿</div>
<a href=""></a>
</div>
</li>
<li>
<i class="fa fa-commenting-o fa-1x"></i>
<div>
<div class="user-item-name">提交的评论</div>
<p class="user-item-count"><?php echo $user['posts'];?></p>
<div class="user-item-desc">在本站提交的评论</div>
<a href=""></a>
</div>
</li>
<li>
<i class="fa fa-user-plus fa-1x"></i>
<div>
<div class="user-item-name">关注</div>
<p class="user-item-count"><?php echo intval($user['follows']); ?></p>
<div class="user-item-desc">关注的人数</div>
<a href=""></a>
</div>
</li>
<li>
<i class="fa fa-stumbleupon-circle fa-1x"></i>
<div>
<div class="user-item-name">粉丝</div>
<p class="user-item-count"><?php echo intval($user['followeds']); ?></p>
<div class="user-item-desc">粉丝人数</div>
<a href=""></a>
</div>
</li>
<li>
<i class="fa fa-fire fa-1x"></i>
<div>
<div class="user-item-name">精华文章</div>
<p class="user-item-count"><?php echo intval($user['followeds']); ?></p>
<div class="user-item-desc">精华文章数量</div>
<a href=""></a>
</div>
</li>
<li>
<i class="fa fa-bookmark fa-1x"></i>
<div>
<div class="user-item-name">收藏的文章</div>
<p class="user-item-count"></span><a href="<?php echo url("my-favorites"); ?>" target="_blank"><?php echo intval($user['favorites']);?></p>
<div class="user-item-desc">收藏的文章数量</div>
<a href=""></a>
</div>
</li>
</ul>
<div class="user-info box b2-radius">
<p class="b2-pd"><span class="user-info-title">昵称:</span><?php echo $user['username'];?>
<p class="b2-pd user-verify">
<span class="user-info-title">用户组:</span><?php echo $user['groupname'];?>
<p class="b2-pd">
<span class="user-info-title">绑定QQ:</span><?php if(is_qq_bond($uid)){echo "已绑定"."<a style='display:none' href=\"javascript:\" id=\"qq_unbind\">【取消绑定】</a>";}else{echo "<a href=\"qq_login-bind-go.htm\" target=\"_blank\">前往绑定</a>";} ?>
<p class="b2-pd">
<span class="user-info-title">邮箱:</span> <?php echo $user['email'];?>
<p class="b2-pd">
<span class="user-info-title">个性签名:</span><?php
$htmlsupport = $get_signature['html'];
if(isset($htmlsupport) && !empty($user['signature'])){
if($htmlsupport == 1){
echo htmlspecialchars_decode($user['signature']);
}else{
echo $user['signature'];
}
}else{
echo "这家伙太懒了,什么也没留下。";
}?>
<p class="b2-pd">
<span class="user-info-title">入驻本站时间:</span><?php echo $user['create_date_fmt'];?> 
<span style="user-info-title"><font color="#FF0000">最后登录时间:</font> </span><?php echo $user['login_date_fmt'];?></p>
手机版:
CSS:
<style>
.card-body{-ms-flex:1 1 auto;flex:1 1 auto;min-height:1px;padding:1.25rem}
div{border:0;font-family:inherit;font-size:100%;font-style:inherit;font-weight:inherit;margin:0;outline:0;padding:0;vertical-align:baseline;word-wrap:break-word;box-sizing:border-box}
*,::after,::before{box-sizing:border-box}
div{display:block}
.author-page-left{flex:1;width:100%}
div{border:0;font-family:inherit;font-size:100%;font-style:inherit;font-weight:inherit;margin:0;outline:0;padding:0;vertical-align:baseline;word-wrap:break-word;box-sizing:border-box}
*,::after,::before{box-sizing:border-box}
.user-sidebar-count{display:flex;flex-flow:wrap;padding:15px}
.box,.side-fixed{background-color:#fff;box-shadow:0px 0px 2px rgb(98 124 153 / 10%);position:relative;margin-left:0px;margin-right:0px}
.b2-radius{border-radius:6px}
.user-sidebar-count li{width:50%}
.user-sidebar-count li{width:50%;padding:5px;position:relative;box-sizing:border-box;background-color:#F7F9FA;border:5px solid #fff}
li{list-style:outside none none}
li{list-style:outside none none}
li{list-style:outside none none}
*,::after,::before{box-sizing:border-box}
li{display:list-item;text-align:-webkit-match-parent}
.user-sidebar-count li i{position:absolute;font-size:81px;color:rgba(209,233,255,0.28);right:0;top:0px}
.b2font{font-family:"b2font" !important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
{}div{border:0;font-family:inherit;font-size:100%;font-style:inherit;font-weight:inherit;margin:0;outline:0;padding:0;vertical-align:baseline;word-wrap:break-word;box-sizing:border-box}
.user-sidebar-count li p{font-size:24px;font-weight:600;margin:10px 0}
.user-item-desc{font-size:12px;color:#AAAEB3}
.user-sidebar-count li > div{position:relative}
div{border:0;font-family:inherit;font-size:100%;font-style:inherit;font-weight:inherit;margin:0;outline:0;padding:0;vertical-align:baseline;word-wrap:break-word;box-sizing:border-box}
</style>
代码:
<div class="list-group list-group-flush list-group-horizontal">
<div class="author-page-left text-center card hidden-lg">
<div class="author-page">
<div id="author-index">
<ul class="user-sidebar-count box b2-radius">
<li>
<i class="fa fa-file-text-o fa-1x"></i>
<div>
<div class="user-item-name">发布的文章</div>
<p class="user-item-count"><?php echo $user['threads'];?></p>
<div class="user-item-desc">本站的投稿</div>
<a href=""></a>
</div></li>
<li>
<i class="fa fa-commenting-o fa-1x"></i>
<div>
<div class="user-item-name">提交的评论</div>
<p class="user-item-count"><?php echo $user['posts'];?></p>
<div class="user-item-desc">本站的评论</div>
<a href=""></a>
</div></li>
<li>
<i class="fa fa-user-plus fa-1x"></i>
<div>
<div class="user-item-name">关注</div>
<p class="user-item-count"><?php echo intval($user['follows']); ?></p>
<div class="user-item-desc">关注人数</div>
<a href=""></a>
</div>
</li>
<li>
<i class="fa fa-stumbleupon-circle fa-1x"></i>
<div>
<div class="user-item-name">粉丝</div>
<p class="user-item-count"><?php echo intval($user['followeds']); ?></p>
<div class="user-item-desc">粉丝人数</div>
<a href=""></a>
</div>
</li>
<li>
<i class="fa fa-fire fa-1x"></i>
<div>
<div class="user-item-name">精华文章</div>
<p class="user-item-count"><?php echo intval($user['followeds']); ?></p>
<div class="user-item-desc">精华文章数量</div>
<a href=""></a>
</div>
</li>
<li>
<i class="fa fa-bookmark fa-1x"></i>
<div>
<div class="user-item-name">收藏的文章</div>
<p class="user-item-count"><a href="<?php echo url("my-favorites"); ?>" target="_blank"><?php echo intval($user['favorites']);?></p>
<div class="user-item-desc">收藏文章数</div>
<a href=""></a>
</div>
</li>
</ul>
</div>
个性签名:
需要安装对应的个性签名插件:
<br><span><span class="text-grey">个性签名:</span>
<?php
$htmlsupport = $get_signature['html'];
if(isset($htmlsupport) && !empty($user['signature'])){
if($htmlsupport == 1){
echo htmlspecialchars_decode($user['signature']);
}else{
echo $user['signature'];
}
}else{
echo "这家伙太懒了,什么也没留下。";
}?></span>
关于粉丝关注收藏插件:
自己去安装对应的去适配去改就可以了