启用广播功能后,个人空间首页变广播解决方案
启用广播功能后,个人空间首页变广播。这个还是昨天 @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';
}
{:5_150:}{:5_150:}{:5_150:}
页:
[1]