| 
 
 名称:    搜索/发/改/删帖子无消息显示直接跳转功能:   发贴后马上跳转到新帖子页面
 作者:   不是很清楚 (从shray中得知),我稍微添加
 演示:   没
 安装方法:
 
 1:打开include/newthread.php
 查找
 
 
 复制代码showmessage('post_newthread_succeed', "viewthread.php?tid=$tid");
 改为: 选择一个
 <1>:回到楼主的位置
 
 复制代码header("Location: viewthread.php?tid=$tid");
 <2>:回到版块位置:
 
 复制代码header("Location: forumdisplay.php?fid=$fid");
 2:回复帖子后马上跳转
 打开include/newreply.php
 查找
 
 复制代码showmessage('post_reply_succeed', "viewthread.php?tid=$tid&pid=$pid&page=$topicpages#pid$pid");
 改为: 选择一个
 
 <1>: 到回复帖子位置
 
 复制代码header("Location: viewthread.php?tid=$tid&pid=$pid&page=$topicpages#pid$pid");
 <2>:到楼主的位置:
 
 
 复制代码header("Location: viewthread.php?tid=$tid");
 <3>:回到版块位置:
 
 复制代码header("Location: forumdisplay.php?fid=$fid");
 3:编辑帖子后跳转(包括编辑帖子内容,编辑附件,删除帖子)
 打开include/editpost.php
 查找
 
 复制代码if($delete && $isfirstpost) {
        showmessage('post_edit_delete_succeed', "forumdisplay.php?fid=$fid");
}elseif($editmethord == 'attach') {
        showmessage('attachment_edit_succeed', "post.php?action=edit&fid=$fid&tid=$tid&pid=$pid&page=$page");
} else {
        showmessage('post_edit_succeed', "viewthread.php?tid=$tid&page=$page#pid$pid");
}
 改为
 
 复制代码if($delete && $isfirstpost) {
        header("Location: forumdisplay.php?fid=$fid");
}elseif($editmethord == 'attach') {
        header("Location: post.php?action=edit&fid=$fid&tid=$tid&pid=$pid&page=$page");
} else {
        header("Location: viewthread.php?tid=$tid&page=$page#pid$pid");
}
 
 4:搜索帖子的时候(10.20更新添加):
 
 search.php
 
 查找:
 
 
 复制代码showmessage('search_redirect', "search.php?searchid=$searchid&orderby=$orderby&ascdesc=$ascdesc&searchsubmit=yes");
 替换为:
 
 
 复制代码header("Location: search.php?searchid=$searchid&orderby=$orderby&ascdesc=$ascdesc&searchsubmit=yes");
[ 本帖最后由 lu5266 于 2005-10-20 12:41 编辑 ]
 |