开启广播后个人空间首页默认加载广播数据页面,但是许多站长希望直接进入到主题列表首页,
那么下面兔源码就分享一个简单教程!
在 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';
- }
复制代码 其中follow为需要修改的内容 |