Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[转贴]搜索/发/改/删帖子无消息显示直接跳转[10.20更新]

[复制链接]
lu5266 发表于 2005-10-5 23:22:12 | 显示全部楼层 |阅读模式
4:搜索帖子的时候(10.20更新添加):


名称:    搜索/发/改/删帖子无消息显示直接跳转
功能:   发贴后马上跳转到新帖子页面
作者:   不是很清楚 (从shray中得知),我稍微添加
演示:   没


安装方法:

1:打开include/newthread.php
查找

  1. showmessage('post_newthread_succeed', "viewthread.php?tid=$tid");
复制代码


改为: 选择一个
<1>:回到楼主的位置
  1. header("Location: viewthread.php?tid=$tid");
复制代码


<2>:回到版块位置:
  1. header("Location: forumdisplay.php?fid=$fid");
复制代码


2:回复帖子后马上跳转
打开include/newreply.php
查找
  1. showmessage('post_reply_succeed', "viewthread.php?tid=$tid&pid=$pid&page=$topicpages#pid$pid");
复制代码


改为: 选择一个

<1>: 到回复帖子位置
  1. header("Location: viewthread.php?tid=$tid&pid=$pid&page=$topicpages#pid$pid");
复制代码


<2>:到楼主的位置:

  1. header("Location: viewthread.php?tid=$tid");
复制代码


<3>:回到版块位置:
  1. header("Location: forumdisplay.php?fid=$fid");
复制代码


3:编辑帖子后跳转(包括编辑帖子内容,编辑附件,删除帖子)
打开include/editpost.php
查找
  1. if($delete && $isfirstpost) {
  2.         showmessage('post_edit_delete_succeed', "forumdisplay.php?fid=$fid");
  3. }elseif($editmethord == 'attach') {
  4.         showmessage('attachment_edit_succeed', "post.php?action=edit&fid=$fid&tid=$tid&pid=$pid&page=$page");
  5. } else {
  6.         showmessage('post_edit_succeed', "viewthread.php?tid=$tid&page=$page#pid$pid");
  7. }
复制代码


改为
  1. if($delete && $isfirstpost) {
  2.         header("Location: forumdisplay.php?fid=$fid");
  3. }elseif($editmethord == 'attach') {
  4.         header("Location: post.php?action=edit&fid=$fid&tid=$tid&pid=$pid&page=$page");
  5. } else {
  6.         header("Location: viewthread.php?tid=$tid&page=$page#pid$pid");
  7. }
复制代码



4:搜索帖子的时候(10.20更新添加):

search.php

查找:

  1. showmessage('search_redirect', "search.php?searchid=$searchid&orderby=$orderby&ascdesc=$ascdesc&searchsubmit=yes");
复制代码


替换为:

  1. header("Location: search.php?searchid=$searchid&orderby=$orderby&ascdesc=$ascdesc&searchsubmit=yes");
复制代码

[ 本帖最后由 lu5266 于 2005-10-20 12:41 编辑 ]

评分

1

查看全部评分

oytktk 发表于 2005-10-5 23:25:13 | 显示全部楼层
嘎嘎嘎
回复

使用道具 举报

麻倉好 发表于 2005-10-5 23:26:18 | 显示全部楼层
沙发被强了
回复

使用道具 举报

 楼主| lu5266 发表于 2005-10-5 23:38:59 | 显示全部楼层
原帖由 oytktk 于 2005-10-5 23:25 发表
嘎嘎嘎

卡卡卡
回复

使用道具 举报

 楼主| lu5266 发表于 2005-10-5 23:39:49 | 显示全部楼层
原帖由 麻倉好 于 2005-10-5 23:26 发表
沙发被强了

由F大刮起的沙发风啊

绵绵不绝
回复

使用道具 举报

yuja 发表于 2005-10-5 23:42:00 | 显示全部楼层
潜了好久,透透气
回复

使用道具 举报

easonlee 发表于 2005-10-5 23:51:02 | 显示全部楼层
如果我想改 一键即换隐身上线 成这样子该怎么该?!

[ 本帖最后由 easonlee 于 2005-10-5 23:52 编辑 ]
回复

使用道具 举报

 楼主| lu5266 发表于 2005-10-5 23:59:51 | 显示全部楼层
原帖由 easonlee 于 2005-10-5 23:51 发表

  1. showmessage('invisible_succeed', 'index.php');
复制代码


改为:

  1. header("Location: index.php");
复制代码

[ 本帖最后由 lu5266 于 2005-10-6 16:41 编辑 ]
回复

使用道具 举报

 楼主| lu5266 发表于 2005-10-6 10:17:42 | 显示全部楼层
这个还是挺实用的

少了提示信息,快了1秒左右啊
回复

使用道具 举报

hufanyun 发表于 2005-10-6 10:22:52 | 显示全部楼层
不错.加分了
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-4-26 04:36 , Processed in 0.185938 second(s), 19 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表