修改前:进入的是个人资料
修改后:进入的是主题列表
教程开始:
1、进入网站根目录打开——template——default 或 当前使用模板——home——space_menu文件
搜索代码- home.php?mod=space&uid=$space[uid]&do=profile&from=space
复制代码 修改为您后台设置的个人主页伪静态规则代码,如!qinai!游客!yincang_youke! 搜索代码修改为您后台设置的个人主页伪静态规则代码,如!qinai!游客!yincang_youke! 2、进入网站根目录打开——template———default 或 当前使用模板———forum———forumdisplay_list 文件- 搜索代码[code]<!--{if $thread['authorid'] && $thread['author']}-->
复制代码 将代码- <!--{if $thread['authorid'] && $thread['author']}-->
- <a href="home.php?mod=space&uid=$thread[authorid]" c="1"{if $groupcolor[$thread[authorid]]} style="color: $groupcolor[$thread[authorid]];"{/if}>$thread[author]</a><!--{if !empty($verify[$thread['authorid']])}--> $verify[$thread[authorid]]<!--{/if}-->
- <!--{else}-->
复制代码 修改为!qinai!游客!yincang_youke! 搜索代码- <cite><!--{if $thread['lastposter']}--><a href="{if $thread[digest] != -2}home.php?mod=space&username=$thread[lastposterenc]{else}forum.php?mod=viewthread&tid=$thread[tid]&page={echo max(1, $thread[pages]);}{/if}" c="1">$thread[lastposter]</a><!--{else}-->$_G[setting][anonymoustext]<!--{/if}--></cite>
复制代码 修改为!qinai!游客!yincang_youke! 3、进入网站根目录打开——template——default 或 当前使用模板——forum——viewthread_node文件
搜索代码- home.php?mod=space&uid=$post[authorid]
复制代码 修改为!qinai!游客!yincang_youke! 4、开启游客访问用户空间无需登录,教程地址:https://tuyuanma.com/news_6200_1_1
5、登录网站后台,更新缓存即可 |