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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[插件] 主题沉底与提升(带批量管理) For 4.1

[复制链接]
linsie 发表于 2006-4-28 18:29:45 | 显示全部楼层
我改后功能和批量功能都用不了了 晕 能帮看看吗QQ:114000088 谢谢了
回复

使用道具 举报

 楼主| sw08 发表于 2006-4-28 19:53:26 | 显示全部楼层
原帖由 oq166 于 2006-4-28 16:02 发表
打开:
templates.lng.php
找到:


CODE:'admin_bump' => '提升主题',
在下面加:


CODE:'admin_unbump' => '主题沉底',
找到:


CODE:'admin_bump' => '提升主题',

这里不是错了吗  ...


是你说的那个文件,已经改正了。

另外顺着加就可以了。

[ 本帖最后由 sw08 于 2006-4-28 19:55 编辑 ]
回复

使用道具 举报

 楼主| sw08 发表于 2006-4-28 19:58:01 | 显示全部楼层

回复 #22 linsie 的帖子

请仔细检查下,应该没有问题了。
回复

使用道具 举报

haohao036 发表于 2006-4-28 20:21:03 | 显示全部楼层
不想要提升功能。。能不能把沉底功能分离出来。。谢谢。。
回复

使用道具 举报

 楼主| sw08 发表于 2006-4-28 20:32:51 | 显示全部楼层
原帖由 haohao036 于 2006-4-28 20:21 发表
不想要提升功能。。能不能把沉底功能分离出来。。谢谢。。


下面是修改方法,只有沉底~没有批量管理
另外1楼的附件还是要上传的。

打开:
templates.lang.php

找到:
  1. 'admin_bump' => '提升主题',
复制代码

在下面加:
  1. 'admin_unbump' => '主题沉底',
复制代码


打开:
modactions.lang.php

找到:
  1. 'BMP' => '提升',
复制代码

在下面加
  1. 'UBP' => '沉底',
复制代码


打开viewthread.htm
找到:
  1. <option value="bump">{lang admin_bump}</option>
复制代码


在后面加上:
  1. <option value="unbump">{lang admin_unbump}</option>
复制代码


打开:
topicadmin.php


找到:
  1. elseif($action == 'bump') {

  2.         if(!submitcheck('bumpsubmit')) {

  3.                 include template('topicadmin_bump');

  4.         } else {

  5.                 $modaction = 'BMP';
  6.                 $modpostsnum ++;

  7.                 $query = $db->query("SELECT tid, subject, lastposter, lastpost FROM {$tablepre}threads WHERE tid='$tid' LIMIT 1");
  8.                 $thread = $db->fetch_array($query);
  9.                 $thread['subject'] = addslashes($thread['subject']);
  10.                 $thread['lastposter'] = addslashes($thread['lastposter']);

  11.                 $db->query("UPDATE {$tablepre}threads SET lastpost='$timestamp', moderated='1' WHERE tid='$tid'");
  12.                 $db->query("UPDATE {$tablepre}forums SET lastpost='$thread[tid]\t$thread[subject]\t$timestamp\t$thread[lastposter]' WHERE fid='$fid'");

  13.                 $resultarray = array(
  14.                         'redirect'        => "forumdisplay.php?fid=$fid",
  15.                         'reasonpm'        => array(),
  16.                         'modtids'        => $thread['tid'],
  17.                         'modlog'        => $thread
  18.                 );

  19.         }

  20. }
复制代码


在后面加上:
  1. elseif($action == 'unbump') {

  2.         if(!submitcheck('unbumpsubmit')) {

  3.                 include template('topicadmin_unbump');

  4.         } else {

  5.                 $modaction = 'UBP';
  6.                 $modpostsnum ++;

  7.                 $query = $db->query("SELECT tid, subject, lastposter, lastpost FROM {$tablepre}threads WHERE tid='$tid' LIMIT 1");
  8.                 $thread = $db->fetch_array($query);
  9.                 $thread['subject'] = addslashes($thread['subject']);
  10.                 $thread['lastposter'] = addslashes($thread['lastposter']);

  11.                 $db->query("UPDATE {$tablepre}threads SET lastpost='1000000000', moderated='1' WHERE tid='$tid'");
  12.                 $db->query("UPDATE {$tablepre}forums SET lastpost='$thread[tid]\t$thread[subject]\t$timestamp\t$thread[lastposter]' WHERE fid='$fid'");

  13.                     $resultarray = array(
  14.                         'redirect'        => "forumdisplay.php?fid=$fid",
  15.                         'reasonpm'        => array(),
  16.                         'modtids'        => $thread['tid'],
  17.                         'modlog'        => $thread
  18.                 );
  19.         }

  20. }
复制代码

[ 本帖最后由 sw08 于 2006-4-28 20:35 编辑 ]
回复

使用道具 举报

haohao036 发表于 2006-4-28 20:38:05 | 显示全部楼层
谢了。朋友。
回复

使用道具 举报

︶ㄣ風メ(_少 发表于 2006-4-28 21:59:32 | 显示全部楼层
这个可系好东西啊
回复

使用道具 举报

kangie 发表于 2006-4-28 23:01:06 | 显示全部楼层
顶以下
回复

使用道具 举报

linsie 发表于 2006-4-29 16:04:36 | 显示全部楼层
晕。。。。为什么我不可以呢  作者联系我吧 我郁闷了
回复

使用道具 举报

踏雪无痕㊣ 发表于 2006-4-29 18:43:20 | 显示全部楼层
支持
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-3 13:19 , Processed in 0.108526 second(s), 15 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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