厌倦了滚动浏览相同的帖子?当您创建帐户后,您将始终回到您离开的地方。使用帐户,不仅可以享受无广告的清爽界面!
您需要 登录 才可以下载或查看,没有账号?注册
×
启用广播功能后,个人空间首页变广播。这个还是昨天 @sukka 上传css才发现的问题
自己调整后解决了,分享一下思路。
在 source\module\home\home_space.php 下 找到
if(helper_access::check_module('follow')) {
$do = $_GET['do'] = 'follow';
} else {
$do = $_GET['do'] = !$_G['setting']['homepagestyle'] ? 'profile' : 'index';
}
} elseif(empty($_GET['do']) && isset($_GET['diy']) && !empty($_G['setting']['homepagestyle'])) {
$_GET['do'] = 'index';
}
if($_GET['do'] == 'follow') {
if($uid != $_G['uid']) {
$_GET['do'] = 'view';
$_GET['uid'] = $uid;
}
require_once libfile('home/follow', 'module');
exit;
} elseif(empty($_GET['do']) && !$_G['inajax'] && !helper_access::check_module('follow')) {
$do = 'profile';
}
替换成
if(helper_access::check_module('space')) {
$do = $_GET['do'] = 'space';
} else {
$do = $_GET['do'] = !$_G['setting']['homepagestyle'] ? 'profile' : 'index';
}
} elseif(empty($_GET['do']) && isset($_GET['diy']) && !empty($_G['setting']['homepagestyle'])) {
$_GET['do'] = 'index';
}
if($_GET['do'] == 'space') {
if($uid != $_G['uid']) {
$_GET['do'] = 'view';
$_GET['uid'] = $uid;
}
require_once libfile('home/index', 'module');
exit;
} elseif(empty($_GET['do']) && !$_G['inajax'] && !helper_access::check_module('space')) {
$do = 'profile';
}
|