本帖最后由 麻辣论坛 于 2018-3-21 14:05 编辑
效果如图
1、打开source\plugin\qianfan\protected\controllers\Threadcontrollers.php
2、在代码:
//判断当前登录用户是否对该帖点赞没有
$is_support = in_array($val['pid'], $isSupport) ? 1 : 0;下增加://from $mobiletype = getstatus($val['status'], 4) ? base_convert(getstatus($val['status'], 10).getstatus($val['status'], 9).getstatus($val['status'], 8), 2, 10) : 0;
if ($mobiletype == '1') {
$from = "<div style='margin-top:50px;background: url() no-repeat;
height: 31px;
line-height: 31px;
display: block;
padding-left: 35px;
color: #3580C8;
font-size: 14px;'><span style='order: 1px solid #0D9CF2;
color: #3580C8;
display: inline-block;
font-size: 14px;
height: 29px;
line-height: 29px;
padding: 0 10px;'>iPhone</span></div>";
} elseif ($mobiletype == '2') {
$from = "<div style='margin-top:50px; background: url() no-repeat;
height: 31px;
line-height: 31px;
display: block;
padding-left: 35px;
color: #3580C8;
font-size: 14px;'><span style=' border: 1px solid #0D9CF2;
color: #3580C8;
display: inline-block;
font-size: 14px;
height: 29px;
line-height: 29px;
padding: 0 10px;'>Android</span></div>";
} else {
$from = "";
}
3、找到'content' => $content,($reply变量下)
4、修改为'content' => $content.$from,
修改后的见2楼
|