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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

FY的道具商店1.4终结版-BUG列表8.11(key:鲜花鸡蛋,隐身,限时置顶,主题鉴定)

[复制链接]
烧刀子 发表于 2005-7-21 11:50:17 | 显示全部楼层
察看隐身人士,好像管理员也要受限制阿
回复

使用道具 举报

烧刀子 发表于 2005-7-21 12:08:03 | 显示全部楼层
原帖由 文文の封印 于 2005-7-21 11:43 发表
不要这个
然后在viewthread.htm里


  CODE: [Copy to clipboard]   
$post[subject]</span>



后面加


  CODE: [Copy to clipboard]   
<!--{if $adminid==1}--> <a href=" ...



什么意思,你是说把 <!--{if $adminid==1}--> <a href=" ... 这些删除就好了是么?

那个gift的 数据库 难道不是大礼包的数据库么?不用反安装么?

刚才发现一个问题,就是加入自己隐身的话,自己也看不到自己的,不知道算不算一个bug~~
回复

使用道具 举报

 楼主| PerfectWorks 发表于 2005-7-21 13:32:35 | 显示全部楼层
设置的就这样,自己看不到自己隐身的样子,多遗憾啊~
我觉得隐身很cool的哈哈~自己知道就行啦~
数据库如果也反安装,进入shop会出错,如果你要把数据库也反安装,就得在shop.php里搜索
  1. ,gift
复制代码
删除
回复

使用道具 举报

sbdk 发表于 2005-7-21 14:53:17 | 显示全部楼层
原帖由 文文の封印 于 2005-7-21 11:42 发表

发错了你发的是viewthread.php
发来newthread.php,在include目录下

噢,呵呵.

<?php

/*
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [DISCUZ!]  Crossday Discuz! Board                                    ::
:: (c) 2001-2005 Comsenz Technology Ltd (www.discuz.com)                ::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: Author:  Crossday (tech@discuz.com) Cnteacher (cnteacher@discuz.com) ::
:: Version: 2.5F   2004/10/01 05:15                                     ::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
*/
//fix:  BY pk0909
/*
1 图标排列问题
2 子论坛新贴未影响父论坛
*/

if(!defined('IN_DISCUZ')) {
        exit('Access Denied');
}

$discuz_action = 11;

if(empty($forum['fid']) || $forum['type'] == 'group') {
        showmessage('forum_nonexistence');
}

if(!$discuz_uid && !((!$forum['postperm'] && $allowpost) || ($forum['postperm'] && strstr($forum['postperm'], "\t$groupid\t")))) {
        header('Location: logging.php?action=login&referer='.rawurlencode("$PHP_SELF?action=$action&fid=$fid&poll=$poll"));
        exit();
} elseif(!$forum['allowpost']) {
        if(!$forum['postperm'] && !$allowpost) {
                showmessage('group_nopermission', NULL, 'HALTED');
        } elseif($forum['postperm'] && !strstr($forum['postperm'], "\t$groupid\t")) {
                showmessage('post_forum_newthread_nopermission', NULL, 'HALTED');
        }
}

if(!submitcheck('topicsubmit')) {

        $icons = '';
        if(is_array($_DCACHE['icons'])) {
                $key = 1;
                foreach($_DCACHE['icons'] as $id => $icon) {
                        $icons .= ' <input type="radio" name="iconid" value="'.$id.'"><img src="'.SMDIR.'/'.$icon.'">';
                        $icons .= !(++$key % 10) ? '<br>' : '';
                }
        }
       
        $multiattach = $allowpostattach && $attach_newpost ? array_fill(1,$attach_newpost,'1'):0;

        include template('post_newthread');

} else {

//===========板块禁言检查begin========
if (!$ismoderator) {
    if (!postban_check($forum[fid], $discuz_user)) showmessage('你在本板块被禁言,不能发贴和编辑');
}
//===========板块禁言检查end==========
        if(!$subject || !$message) {
                showmessage('post_sm_isnull');
        }
$date = gmdate("m-d", $timestamp + $timeoffset * 3600);
    $subject = "[".$date."] ".$subject;
        if($post_invalid = checkpost()) {
                showmessage($post_invalid);
        }

        if(checkflood()) {
                showmessage('post_flood_ctrl');
        }

        $displayorder = ($ismoderator && $toptopic) ? 1 : 0;
        $digest = ($ismoderator && $addtodigest && $allowdigest) ? 1 : 0;
        $viewperm = $allowsetviewperm ? $viewperm : 0;
// ----------------------------------------------------------------        
//  Users Set Threads' Reply Limitation By Polo!
// ----------------------------------------------------------------
        $replylimit = $allowsetreplylimit ? $replylimit : 0;
// ----------------------------------------------------------------

        if($poll == 'yes' && $allowpostpoll && trim($polloptions)) {
                $poll = 1;
                $pollarray = array();
                $polloptions = explode("\n", $polloptions);
                if(count($polloptions) > $maxpolloptions) {
                        showmessage('post_poll_option_toomany');
                }

                foreach($polloptions as $polloption) {
                        $polloption = trim($polloption);
                        if($polloption) {
                                $pollarray['options'][] = array($polloption, 0);
                        }
                }
                $pollarray['multiple'] = $multiplepoll;
                $pollarray['voters'] = array();
                $pollopts = addslashes(serialize($pollarray));
        } else {
                $poll = 0;
                $pollopts = '';
        }

        $paid = $last_attach_type = $aid = $tmark ='';
        $post_attaches = array();
        if ($allowpostattach){
                $post_attaches = attach_upload();
                if(is_array($post_attaches) && count($post_attaches)) {
                        foreach( $post_attaches as $v) {
                                $db->query("INSERT INTO $table_attachments (uid, creditsrequire, filename, filetype, filesize, attachment, dateline, downloads)
                                        VALUES ('$discuz_uid', '$v[creditsrequire]', '$v[filename]', '$v[filetype]', '$v[filesize]', '$v[attachment]', '$timestamp','0')");
                                $v['aid'] = $db->insert_id();
                                $aid .= $tmark.''.$v['aid'];
                                $tmark = ' ,';
                                $last_attach_type = strtolower(fileext($v['filename']))."\t".$v['filetype'];
                                $paid ++;
                        }
                }
        }
        unset($post_attaches);

        $db->query("INSERT INTO $table_threads (fid, creditsrequire,replylimit,
iconid, author, authorid, subject, dateline, lastpost, lastposter, displayorder, digest, poll, attachment)
                VALUES ('$fid', '$viewperm','$replylimit',
'$iconid', '$discuz_user', '$discuz_uid', '$subject', '$timestamp', '$timestamp', '$discuz_user', '$displayorder', '$digest', '$poll', '".attachtype($last_attach_type, 'id')."')");
        $tid = $db->insert_id();

        if($poll) {
                $db->query("INSERT INTO $table_polls (tid, pollopts)
                        VALUES ('$tid', '$pollopts')");
        }

        $bbcodeoff = checkbbcodes($message, $bbcodeoff);
        $smileyoff = checksmilies($message, $smileyoff);

        $db->query("INSERT INTO $table_posts (fid, tid, aid, author, authorid, subject, dateline, message, useip, usesig, bbcodeoff, smileyoff, parseurloff)
                VALUES ('$fid', '$tid', '$paid', '$discuz_user', '$discuz_uid', '$subject', '$timestamp', '$message', '$onlineip', '$usesig', '$bbcodeoff', '$smileyoff', '$parseurloff')");
        $pid = $db->insert_id();

        if($aid) {
                $db->query("UPDATE $table_attachments SET tid='$tid', pid='$pid' WHERE aid in ($aid)", 'UNBUFFERED');
        }

        //后台金钱设置 by 地狱死神
if($bankstatus>=0) {
updatemember('+', $discuz_uid, $postcredits, $postmoney);
}else{
updatemember('+', $discuz_uid, $postcredits);
}
//后台金钱设置 by 地狱死神

        $db->query("UPDATE $table_forums SET lastpost='$subject\t$timestamp\t$discuz_user', threads=threads+1, posts=posts+1 WHERE fid='$fid'", 'UNBUFFERED');
        if ($forum['fup'] && $forum['type'] == 'sub' && !$forum['viewperm']) {
                $db->query("UPDATE $table_forums SET lastpost='$subject\t$timestamp\t$discuz_user'  WHERE fid='$forum[fup]'", 'UNBUFFERED');
        }

        if($emailnotify && $discuz_uid) {
                $query = $db->query("SELECT tid FROM $table_subscriptions WHERE uid='$discuz_uid' AND tid='$tid'");
                if(!$db->result($query, 0)) {
                        $db->query("INSERT INTO $table_subscriptions (uid, email, tid)
                                VALUES ('$discuz_uid', '$email', '$tid')", 'UNBUFFERED');
                }
        }
        showmessage('post_newthread_succeed', "viewthread.php?tid=$tid");
}

?>


以上是newthread.php
回复

使用道具 举报

烧刀子 发表于 2005-7-21 15:49:51 | 显示全部楼层
原帖由 文文の封印 于 2005-7-21 13:32 发表
设置的就这样,自己看不到自己隐身的样子,多遗憾啊~
我觉得隐身很cool的哈哈~自己知道就行啦~
数据库如果也反安装,进入shop会出错,如果你要把数据库也反安装,就得在shop.php里搜索
  1. ,gift
复制代码
删除



收到
回复

使用道具 举报

lifeindl 发表于 2005-7-21 17:28:02 | 显示全部楼层
绝对支持啊。。不知道今后时候还会增加其他道具?有什么计划嘛?
回复

使用道具 举报

神的孩子龙在舞 发表于 2005-7-21 17:29:53 | 显示全部楼层
减少警告呢
回复

使用道具 举报

DJT 发表于 2005-7-21 20:15:41 | 显示全部楼层
以后加道具或者升级不会太复杂吧
回复

使用道具 举报

 楼主| PerfectWorks 发表于 2005-7-22 00:17:37 | 显示全部楼层
以后升级基本上是
3条数据库(两个是改变已有表,一个是添加一条数据)
覆盖shop.php和shop.htm
传上道具图片
增加语言包
+功能代码
除了功能代码部分以外都很简单
回复

使用道具 举报

神的孩子龙在舞 发表于 2005-7-22 00:17:54 | 显示全部楼层
减少警告的道具呢
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-2-24 00:13 , Processed in 0.027445 second(s), 3 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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