火鸟教程,怎么设置火鸟的贴吧虚拟用户数量

火鸟教程,怎么设置火鸟的贴吧虚拟用户数量

火鸟教程,怎么设置火鸟的贴吧虚拟用户数量

火鸟门户修改论坛模块,显示注册用户数量

修改:/templates/tieba/touch/112/js/index.js

以前的代码

查找以前的代码:

function getFormat(){
$.ajax({
url: “/include/ajax.php?service=tieba&action=getFormat”,
type: “GET”,
dataType: “json”,
success: function (data) {
if(data.state == 100){
$(‘.user’).text(data.info.memberTotal);
$(‘.views’).text(data.info.tiziTotal);
$(‘.today’).text(data.info.tiziTodayTotal);
}else{
$(‘.user’).text(0);
$(‘.views’).text(0);
$(‘.today’).text(0);
}
}
});
}

修改后的


修改为:

function getFormat(){
$.ajax({
url: “/include/ajax.php?service=tieba&action=getFormat”,
type: “GET”,
dataType: “json”,
success: function (data) {
if(data.state == 100){
$(‘.user’).text(8000+Number(data.info.memberTotal));
$(‘.views’).text(data.info.tiziTotal);
$(‘.today’).text(data.info.tiziTodayTotal);
}else{
$(‘.user’).text(0);
$(‘.views’).text(0);
$(‘.today’).text(0);
}
}
});
}

分享到 :
相关推荐

发表评论

您的电子邮箱地址不会被公开。