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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

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

[复制链接]
神的孩子龙在舞 发表于 2005-7-20 13:23:30 | 显示全部楼层
不会让我用最麻烦的方法解决吧

把那些语句用汉字代替
回复

使用道具 举报

 楼主| PerfectWorks 发表于 2005-7-20 13:30:06 | 显示全部楼层
template.lang.php
找到
  1. 'forum_normal_threads' => '普通主题',
复制代码

下面加入

  1. //道具商店 BY FY-START
  2. 'shop'                        =>        '道具商店',
  3. 'shop_v'        =>        '版本',
  4. 'shop_madeby'        =>        '制作',
  5. 'shop_memberinfo'        =>        '个人资料',
  6. 'shop_usermoney'        =>        '现金',
  7. 'shop_itemlist'                =>        '道具列表',
  8. 'shop_item'                =>        '道具',
  9. 'shop_buy'                =>        '购买',
  10. 'shop_price'                =>        '价钱',
  11. 'shop_description'        =>        '说明',
  12. 'shop_myitems'                =>        '我的道具',
  13. 'shop_use'                =>        '使用',
  14. 'shop_sell'                =>        '卖出',
  15. 'shop_give'                =>        '转让',
  16. 'shop_num'                =>        '数量',
  17. 'shop_noitem'                =>        '对不起您没有买任何道具。',
  18. 'shop_use_now'                =>        '你要使用的道具是:',
  19. 'shop_my_num'                =>        '你现在拥有:',
  20. 'shop_luck_use'                =>        '你现在的金钱是$user[money],使用后金钱将变为0。',
  21. 'shop_thread_use'        =>        '要应用道具的帖子是:',
  22. 'shop_view_use'                =>        '查看隐藏发贴人的用户资料',
  23. 'shop_view_more'        =>        '点此查看更详细的资料',
  24. 'shop_topup'                =>        '注意,用道具置顶,时间为1天,置顶级别为Level 1',
  25. 'shop_giveitem'                =>        '你要赠与的道具是:',
  26. 'shop_hide'                =>        '隐身发贴',
  27. 'shop_hideuser'                =>        '【用户身份隐藏】',
  28. 'shop_hideuser'                =>        '【用户身份隐藏】',
  29. 'shop_hide_user'        =>        '【用户身份属于绝密】',
  30. 'shop_view_hide'        =>        '【点击头像查看用户资料】',
  31. 'shop_view_sure'        =>        '你确定要查看该用户的资料吗?这将用去你一个道具',
  32. 'shop_center'        => '道具中心',
  33. 'shop_gift1'        =>        '领取小礼包',
  34. 'shop_gift2'        =>        '领取大礼包',
  35. 'shop_gift'                =>        '奖励礼包',
  36. 'shop_giftuser'        =>        '你要奖励的用户是',
  37. 'shop_havegift1'        =>        '已经有了一个小礼包,再赠送会使小礼包丢失',
  38. 'shop_havegift2'        =>        '已经有了一个大礼包,再赠送会使大礼包丢失',
  39. 'shop_give1info'        =>        '奖励小礼包(除第一种道具外随机三样道具)',
  40. 'shop_give2info'        =>        '奖励大礼包(除第一种道具外每种道具+2)',
  41. 'shop_navigation' => '功能导航',
  42. 'shop_badge'        =>        '主题鉴定',
  43. //道具商店 BY FY-END
复制代码

message.lang.php
找到
  1. 'plugins_notinstalled' =>'此插件尚未安装或者已经关闭!',
复制代码

下面加
  1.         'bank_loan_end_ok' => '您的贷款已经偿还完毕!',
  2.         'shop_creditmin'        =>        '积分不足,只有大于 $shop[creditmin] 分才可进入商店',
  3.         'shop_noitem'                =>        '没有你要购买的道具',
  4.         'shop_nomoney'                =>        '你的现金不够购买这个道具',
  5.         'shop_maxitem'                =>        '对不起每样道具最多购买9个',
  6.         'shop_success_buy'        =>        '购买成功,你花了$item[price]元买了一个$item[name]',
  7.         'shop_error'                =>        '出错了!',
  8.         'shop_success_luck'        =>        '使用成功,您的金钱已经被清零',
  9.         'shop_error_luck'        =>        '对不起本道具只有在金钱为负值的时候才可用',
  10.         'shop_success_use'        =>        '道具应用成功!',
  11.         'shop_error_topup'        =>        '不能在已经置顶的主题上使用该道具',
  12.         'shop_nofunction'        =>        '对不起,本功能尚未开放',
  13.         'shop_success_sell'        =>        '卖出成功,你通过卖出一个$item[name]得到了$item[sell]元钱',
  14.         'shop_error_give'        =>        '不能赠给自己',
  15.         'shop_error_num'        =>        '数量错误,必须大于0且小于自己拥有的道具数量',
  16.         'shop_give_max'                =>        '对方道具数量已经达到最大',
  17.         'shop_success_give'        =>        '赠与成功,你把$item[num]个$item[name]赠给了$item[username]',
  18.         'shop_error_gift'        =>        '你想要道具啊?你要是想要的话你就说话嘛,你不说我怎么知道你想要呢,虽然你很有诚意地看着我,可是你还是要跟我说你想要的。你真的想要吗?那你就拿去吧!你不是真的想要吧?难道你真的想要吗?',
  19.         'shop_gift_msg'        =>        '$gift[username] 你好,由于你在论坛的突出表现,管理员赠送给您一个 $unit ,请及时前往道具商店领取',
  20.         'shop_success_gift1'                =>        '领取大礼包成功',
  21.         'shop_success_gift2'        =>        '领取小礼包成功',
  22.         'shop_success_gift'                =>        '奖励成功',
  23.         //道具商店 BY FY-END
复制代码
回复

使用道具 举报

 楼主| PerfectWorks 发表于 2005-7-20 13:32:40 | 显示全部楼层
汗,直接复制当然不行……
这个是干净DZ+商店的plugin.lang.php
  1. <?php

  2. // PLugin's Language Pack for Discuz! Version 2.5

  3. // 插件使用语言定义,此定义可用于程序当中或者插件模版中使用
  4. $plglang = array
  5. (
  6. //道具商店 BY FY-START
  7. 'shop'                        =>        '道具商店',
  8. 'shop_v'        =>        '版本',
  9. 'shop_madeby'        =>        '制作',
  10. 'shop_memberinfo'        =>        '个人资料',
  11. 'shop_usermoney'        =>        '现金',
  12. 'shop_itemlist'                =>        '道具列表',
  13. 'shop_item'                =>        '道具',
  14. 'shop_buy'                =>        '购买',
  15. 'shop_price'                =>        '价钱',
  16. 'shop_description'        =>        '说明',
  17. 'shop_myitems'                =>        '我的道具',
  18. 'shop_use'                =>        '使用',
  19. 'shop_sell'                =>        '卖出',
  20. 'shop_give'                =>        '转让',
  21. 'shop_num'                =>        '数量',
  22. 'shop_noitem'                =>        '对不起您没有买任何道具。',
  23. 'shop_use_now'                =>        '你要使用的道具是:',
  24. 'shop_my_num'                =>        '你现在拥有:',
  25. 'shop_luck_use'                =>        '你现在的金钱是$user[money],使用后金钱将变为0。',
  26. 'shop_thread_use'        =>        '要应用道具的帖子是:',
  27. 'shop_view_use'                =>        '查看隐藏发贴人的用户资料',
  28. 'shop_view_more'        =>        '点此查看更详细的资料',
  29. 'shop_topup'                =>        '注意,用道具置顶,时间为1天,置顶级别为Level 1',
  30. 'shop_giveitem'                =>        '你要赠与的道具是:',
  31. 'shop_hide'                =>        '隐身发贴',
  32. 'shop_hideuser'                =>        '【用户身份隐藏】',
  33. 'shop_hideuser'                =>        '【用户身份隐藏】',
  34. 'shop_hide_user'        =>        '【用户身份属于绝密】',
  35. 'shop_view_hide'        =>        '【点击头像查看用户资料】',
  36. 'shop_view_sure'        =>        '你确定要查看该用户的资料吗?这将用去你一个道具',
  37. 'shop_center'        => '道具中心',
  38. 'shop_gift1'        =>        '领取小礼包',
  39. 'shop_gift2'        =>        '领取大礼包',
  40. 'shop_gift'                =>        '奖励礼包',
  41. 'shop_giftuser'        =>        '你要奖励的用户是',
  42. 'shop_havegift1'        =>        '已经有了一个小礼包,再赠送会使小礼包丢失',
  43. 'shop_havegift2'        =>        '已经有了一个大礼包,再赠送会使大礼包丢失',
  44. 'shop_give1info'        =>        '奖励小礼包(除第一种道具外随机三样道具)',
  45. 'shop_give2info'        =>        '奖励大礼包(除第一种道具外每种道具+2)',
  46. 'shop_navigation' => '功能导航',
  47. 'shop_badge'        =>        '主题鉴定',
  48. //~~~~~~~~~~~~~~~~
  49. );

  50. // 插件使用消息定义,此定义可用于showmessage程序调用,或者程序直接使用。
  51. $msglang = array
  52. (
  53.         'bank_loan_end_ok' => '您的贷款已经偿还完毕!',
  54.         'shop_creditmin'        =>        '积分不足,只有大于 $shop[creditmin] 分才可进入商店',
  55.         'shop_noitem'                =>        '没有你要购买的道具',
  56.         'shop_nomoney'                =>        '你的现金不够购买这个道具',
  57.         'shop_maxitem'                =>        '对不起每样道具最多购买9个',
  58.         'shop_success_buy'        =>        '购买成功,你花了$item[price]元买了一个$item[name]',
  59.         'shop_error'                =>        '出错了!',
  60.         'shop_success_luck'        =>        '使用成功,您的金钱已经被清零',
  61.         'shop_error_luck'        =>        '对不起本道具只有在金钱为负值的时候才可用',
  62.         'shop_success_use'        =>        '道具应用成功!',
  63.         'shop_error_topup'        =>        '不能在已经置顶的主题上使用该道具',
  64.         'shop_nofunction'        =>        '对不起,本功能尚未开放',
  65.         'shop_success_sell'        =>        '卖出成功,你通过卖出一个$item[name]得到了$item[sell]元钱',
  66.         'shop_error_give'        =>        '不能赠给自己',
  67.         'shop_error_num'        =>        '数量错误,必须大于0且小于自己拥有的道具数量',
  68.         'shop_give_max'                =>        '对方道具数量已经达到最大',
  69.         'shop_success_give'        =>        '赠与成功,你把$item[num]个$item[name]赠给了$item[username]',
  70.         'shop_error_gift'        =>        '你想要道具啊?你要是想要的话你就说话嘛,你不说我怎么知道你想要呢,虽然你很有诚意地看着我,可是你还是要跟我说你想要的。你真的想要吗?那你就拿去吧!你不是真的想要吧?难道你真的想要吗?',
  71.         'shop_gift_msg'        =>        '$gift[username] 你好,由于你在论坛的突出表现,管理员赠送给您一个 $unit ,请及时前往道具商店领取',
  72.         'shop_success_gift1'                =>        '领取大礼包成功',
  73.         'shop_success_gift2'        =>        '领取小礼包成功',
  74.         'shop_success_gift'                =>        '奖励成功',
  75.         //道具商店 BY FY-END

  76. );

  77. ?>
复制代码

属于
  1. $plglang = array
复制代码
的放到templates.lang.php的
  1. 'forum_normal_threads' => '普通主题',
复制代码
后面
属于
  1. $msglang = array
复制代码
的放到message.lang.php的
  1. 'plugins_notinstalled' =>'此插件尚未安装或者已经关闭!',
复制代码
后面
回复

使用道具 举报

fangwen 发表于 2005-7-20 13:35:39 | 显示全部楼层
可以了,解决了
回复

使用道具 举报

fangwen 发表于 2005-7-20 13:38:42 | 显示全部楼层
可是我有了糯米团,还是发帖时没看到隐身的选项????
回复

使用道具 举报

 楼主| PerfectWorks 发表于 2005-7-20 13:46:41 | 显示全部楼层
把你的viewthread.php和viewthread.htm发来看看
回复

使用道具 举报

神的孩子龙在舞 发表于 2005-7-20 13:48:00 | 显示全部楼层
可以了
呵呵
回复

使用道具 举报

fangwen 发表于 2005-7-20 13:48:59 | 显示全部楼层
viewthread.php

define('CURRSCRIPT',  'viewthread');

require_once './include/common.php';
require_once DISCUZ_ROOT.'./include/forum.php';
require_once DISCUZ_ROOT.'./include/discuzcode.php';
require("./lib/add_function.php");

$discuz_action = 3;
// ----------------------------------------------------------------
// Shop By FY
// ----------------------------------------------------------------
$myitemlist=itemlist($discuz_uid);

$useitem = ($myitemlist[4][num]>0 || $myitemlist[2][num]>0 || $myitemlist[5][num]>0 || $myitemlist[5][num]>0 || $myitemlist[6][num]>0)? 1:0;
$randnum = rand(1,4);
// ----------------------------------------------------------------
$words = file("./newWord.txt","r");
$fadvert = $forum['fadvert'];
$fadverts = $forum['fadverts'];

if ($tid && $forum){
        $thread = $forum;
}elseif($fid && defined('ViewLastPost')) {
        $query = $db->query("SELECT * FROM $table_threads WHERE fid='$fid' ORDER BY lastpost DESC LIMIT 1");
        if(!$thread = $db->fetch_array($query)) {
                showmessage('thread_nonexistence');
        }
} else {
        showmessage('thread_nonexistence');
}
//========================================================================================
if ($thread['digest'] && !$discuz_user){   
    showmessage('请登录','logging.php');
        }
        $query = $db->query("SELECT tic FROM $table_members WHERE username='$discuz_user'");
$ifmt = $db->fetch_array($query);
$dqbegintime = $timestamp;
$time=floor(($ifmt[tic]-$dqbegintime)/86400);
if($thread['digest'] && $time<0){
showmessage('你的通票已过期。','plugins.php?p=tic');
}
//========================================================================================
if (defined('ViewLastPost')) {
                $page = @ceil(($thread['replies'] + 1) / $ppp);
}

$tid = $thread['tid'];
$thread['markread'] = explode("\t", $thread['markread']);
$codecount = 0;
$oldtopics = $_COOKIE['oldtopics'] ? $_COOKIE['oldtopics'] : "\t";
if(!strstr($oldtopics, "\t$tid\t")) {
        $oldtopics .= "$tid\t";
        setcookie('oldtopics', $oldtopics, $timestamp + 900, $cookiepath, $cookiedomain);
}

if($forum['type'] == 'forum') {
        $navigation .= "&raquo; <a href=\"forumdisplay.php?fid=$fid&page=$fpage\"> $forum[name]</a> &raquo; $thread[subject]";
        $navtitle .= ' - '.strip_tags($forum['name']).' - '.$thread['subject'];
} else {
        $query = $db->query("SELECT fid, name, moderator FROM $table_forums WHERE fid='$forum[fup]'");
        $fup = $db->fetch_array($query);
        $navigation .= "&raquo; <a href=\"forumdisplay.php?fid=$fup[fid]\">$fup[name]</a> &raquo; <a href=\"forumdisplay.php?fid=$fid&page=$fpage\"> $forum[name]</a> &raquo; $thread[subject]";
        $navtitle .= ' - '.strip_tags($fup['name']).' - '.strip_tags($forum['name']).' - '.$thread['subject'];
}

$ismoderator = modcheck($discuz_user);

if(!$forum['allowview']) {
        if(!$forum['viewperm'] && !$allowview) {
                showmessage('group_nopermission', NULL, 'HALTED');
        } elseif($forum['viewperm'] && !strstr($forum['viewperm'], "\t$groupid\t")) {
                showmessage('forum_nopermission', NULL, 'HALTED');
        }
}

if($thread['creditsrequire'] && $thread['creditsrequire'] > $credit && !$ismoderator && ($thread['authorid'] !=$discuz_uid)) {
        showmessage('thread_nopermission', NULL, 'HALTED');
}

if($forum['password'] && $forum['password'] != $_COOKIE["fidpw$fid"]) {
        header("Location: {$boardurl}forumdisplay.php?fid=$fid&sid=$sid");
        exit();
}
//最近到访论坛 by 凡人
$recentopic = $_COOKIE['recentopic'] ? $_COOKIE['recentopic'] : "\t";
if(!stristr($recentopic, "\t".$forum[name]."\n".$fid."\t")) {
        $recentopic .= "".$forum[name]."\n".$fid."\t";
} else {
  $replacement=explode("\t",$recentopic);
  for($i=1;!empty($replacement[$i]);$i++) {
    if ($replacement[$i] == $forum[name]."\n".$fid) {
    array_splice($replacement,$i,1);
    $recentopic = implode("\t",$replacement);
    $recentopic .= "".$forum[name]."\n".$fid."\t";
    }
  }
}
setcookie('recentopic', $recentopic, $timestamp + 86400 * 7, $cookiepath, $cookiedomain);
$recentopic = explode("\t",$recentopic);
$recentopic = array_reverse($recentopic);
$recentselect = "<select onchange=\"if(this.options[this.selectedIndex].value != '') { window.location=('forumdisplay.php?fid='+this.options[this.selectedIndex].value+'&sid=$sid') }\">";
$recentselect .= "<option value=\"\">最近访问的论坛 ...</option>\n";
for($i=1;!empty($recentopic[$i]);$i++) {
        $rforumid=explode("\n",$recentopic[$i]);
        if($forum[name]!=$rforumid[0]) {
                $recentselect .= "<option value=\"$rforumid[1]\">".$rforumid[0]."</option>\n";
        }
}
$recentselect .= '</select>';
//最近到访论坛 by 凡人 (完毕)

if(!$action && $tid) {

        if($discuz_uid && $newpm) {
                require DISCUZ_ROOT.'./include/pmprompt.php';
        }

        $highlightstatus = str_replace('+', '', $highlight) ? 1 : 0;
        $karmaoptions = '';
        if($allowkarma && $maxkarmarate) {
                $offset = ceil($maxkarmarate / 6);
                for($vote = - $maxkarmarate + $offset; $vote <= $maxkarmarate; $vote += $offset) {
                        $votenum = $vote > 0 ? '+'.$vote : $vote;
                        $karmaoptions .= $vote ? "<option value=\"$vote\">$votenum</option>\n" : NULL;
                }
        }
        unset($vote, $votenum, $offset);
       
        if(empty($page)) {
                $start_limit = 0;
                $page = 1;
        } else {
                $start_limit = ($page - 1) * $ppp;
        }
        $fpage = intval($fpage);
        $multipage = multi($thread['replies'] + 1, $ppp, $page, "viewthread.php?tid=$tid&fpage=$fpage&highlight=".rawurlencode($highlight));

        $thread[subject] = cutstr($thread[subject],77);
        $polloptions = array();
        if($thread['poll']) {
                $query = $db->query("SELECT pollopts FROM $table_polls WHERE tid='$tid'");
                $pollopts = unserialize($db->result($query, 0));
                if (is_array($pollopts) && count($pollopts)){
                        foreach($pollopts['options'] as $option) {
                                $polloptions[] = array(       
                                        'option'        => dhtmlspecialchars(stripslashes($option[0])),
                                        'votes'                => $option[1],
                                        'width'                => @round($option[1] * 300 / $pollopts['max']) + 2,
                                        'percent'        => @sprintf ("%01.2f", $option[1] * 100 / $pollopts['total'])
                                );
                        }
                        $allowvote = $allowvote && $discuz_uid && (empty($thread['closed']) || $alloweditpoll) && !in_array($discuz_user, $pollopts['voters']);
                        $optiontype = $pollopts['multiple'] ? 'checkbox' : 'radio';
                }else{
                        unset ($pollopts);
                }
        }
               $query = $db->query("SELECT * FROM $table_medal where medalid <> '0';");

        while($medalist = $db->fetch_array($query)) {
                $medalshow[$medalist[medalid]]="<img src=\"$medalist[medalpic]\" title=\"$medalist[medalname]\n$medalist[medalexpl]\">";
        }
        $altbg1 = ALTBG1;
        $altbg2 = ALTBG2;
        $postlist = $attachelist = $attachpost =$searcharray=$replacearray= array();
        $newpostanchor = $topiccount = 0;
//-----------------------------虛擬形象參數查詢
        require_once('./virtualimage/images_config.php');
        $imagesset = $setting;
        unset($setting);
        if($imagesset[openalpha]){
                $alpha = "FILTER: alpha(opacity=\"+WearArray+\")";
        }
        $imagesdatas = '';
//-----------------------------

        $postcount = $start_limit;
        $post_phpcodecount = -1;
        $post_user_info_sql = 'm.username, m.gender, m.groupid, m.regdate, m.invisible, m.lastactivity,m.userpower, m.postnum,m.medals, m.credit, m.email, m.site, m.icq, m.oicq, m.yahoo, m.msn, m.location, m.avatar, m.avatarwidth, m.avatarheight, m.signature, m.customstatus, m.showemail, m.warning, m.useimages,m.uid,m.level,m.useimages,m.hw,m.onlinetime, m.bank, m.money, m.bankmimi, m.bankstatus';

        $query = $db->query("
                                        SELECT p.*, $post_user_info_sql
                                        FROM $table_posts p
                                        LEFT JOIN $table_members m ON m.uid=p.authorid
                                        WHERE p.tid='$tid' ORDER BY dateline LIMIT $start_limit, $ppp");

        while($post = $db->fetch_array($query)) {
              if($post['medals']){
                $medalid = strtok($post['medals'],",");
                $medalout='';
                while($medalid){
                        $medalout.= $medalshow[$medalid];
                        $medalid = strtok(",");
                }
                $post['medals'] = $medalout;
        }

                if(!$newpostanchor && $post['dateline'] > $lastvisit) {
                        $post['newpostanchor'] = '<a name="newpost"></a>';
                        $newpostanchor = 1;
                } else {
                        $post['newpostanchor'] = '';
                }
                $topiccount ++;
                $post['postcount'] = $postcount+1;
                $post['thisbg'] =$postcolor=  ${'altbg'.($postcount++ % 2 + 1)};
                $post['dateline'] = gmdate("$dateformat $timeformat", $post['dateline'] + $timeoffset * 3600);
//mp_hp_exp hack begin
                $daysreg = ($timestamp - $post['regdate']) / (24*3600);
                $ppd = $post['postnum'] / $daysreg;//平均每日發貼
                $post['exp_mp_hp'] = exp_mp_hp($post['postnum'],$ppd,$daysreg);
                //end here
              $post['onlinehour'] = intval($post['onlinetime']/3600);
$post['onlinemin'] = intval($post['onlinetime']%3600/60);
$change = 1;  //兑换比率,即N点换一颗星
$changebase = $post['onlinehour']; //兑换基数,要小时为$post['onlinehour'],分钟为intval($post['onlinetime']/60),秒为$post['onlinetime']
$post['onlinestars'] = $changebase/$change; //计算方法:基数的数值除以兑换比率,得到星星数
                if($post['username']) {
                       
                        if($userstatusby == 1 || $_DCACHE['usergroups'][$post['groupid']]['byrank'] === 0) {
                                if ($_DCACHE['usergroups'][$post['groupid']]['groupcolor']){
                                        $post['authortitle'] ="<font color =\"".$_DCACHE['usergroups'][$post['groupid']]['groupcolor']."\">".$_DCACHE['usergroups'][$post['groupid']]['grouptitle']."</font>";
                                }else{
                                        $post['authortitle'] =$_DCACHE['usergroups'][$post['groupid']]['grouptitle'];
                                }

                                $post['stars'] = $_DCACHE['usergroups'][$post['groupid']]['stars'];
                        } elseif($userstatusby == 2) {
                                foreach($_DCACHE['ranks'] as $rank) {
                                        if($post['postnum'] > $rank['postshigher']) {
                                                $post['authortitle'] = $rank['ranktitle'];
                                                $post['stars'] = $rank['stars'];
                                                break;
                                        }
                                }
                        }
                     $post['age'] = floor(($timestamp - $post['regdate'])/2592000);
$post['bemem'] = intval(($timestamp-$post['regdate'])/(3600*24));
$post['missday'] = intval(($timestamp-$post[lastactivity])/(3600*24));
                        $post['regdate'] = gmdate($dateformat, $post['regdate'] + $timeoffset * 3600);
$post[word] = "<font color=red>『每日英语』"." [</font>".$words[rand(0,6050)]."  <font color=red>]</font>";
if (!$post[hw]) {
        $post[hw]='未婚';
}


                        if($_DCACHE['usergroups'][$post['groupid']]['groupavatar']) {
                                $post['avatar'] = '<img src="'.$_DCACHE['usergroups'][$post['groupid']]['groupavatar'].'" border="0">';
                        } elseif($_DCACHE['usergroups'][$post['groupid']]['allowavatar'] && $post['avatar']) {
                                $post['avatar'] = '<img src="'.$post['avatar'].'" width="'.$post['avatarwidth'].'" height="'.$post['avatarheight'].'" border="0">';
                        } else {
                                $post['avatar'] = '';
                        }
//------------------------------------------------------------虛擬形象
                        if ($imagesset['orderuse']!='1' && $post['useimages']!=1){
                              $post['avatar'] = $post['avatar'];
                        }elseif($post['gender']=='0'){
                              if($imagesset['orderuse']=='1'){
                                    $post['avatar'] = "<img src='{$imagesset[imageurl]}noface.gif'  border='0'>";
                              }else{
                                    $post['avatar'] = $post['avatar'];
                              }
                        }else{
                            if ($post[gender]==1){
                                     $imagesdata[tempequip] = '0-0-0-0-0-0-0-0-init-init-0-init-0-init-init-0-0-0-init-0-0-0-0-0-0-0';  //男性的初始值
                                     $imagesdata[sex] = "m";
                                     $imagesdata[upid] = "init";
                            }else if ($post[gender]==2){
                                     $imagesdata[tempequip] = '0-0-0-0-0-0-0-0-initf-initf-0-initf-0-initf-initf-0-0-0-initf-0-0-0-0-0-0-0'; //女性的初始值
                                     $imagesdata[sex] = "f";
                                     $imagesdata[upid] = "initf";
                            }

                            $imagesdata[pid] = $post[pid];
                            $imagesdata[uid] = $post[uid];
                            $imagesdatas[] = $imagesdata;

                            $post['avatar'] = "
                            <!-- 虛擬形象開始-->
                            <DIV id=Show{$post['pid']}
                                style=\"PADDING-RIGHT: 0px; PADDING-LEFT: 0px; LEFT: 0px; PADDING-BOTTOM: 0px; WIDTH: 120px; PADDING-TOP: 0px; POSITION: relative; TOP: 0px; HEIGHT: 150px\"></DIV>
                            <!-- 虛擬形象結束-->";

                       }
                       //--------------------------------------------------------------
                } else {
                        if(!$post['authorid']) {
                                $post['useip'] = substr($post['useip'], 0, strrpos($post['useip'], '.')).'.x';
                        }
                        $post['postnum'] = $post['credit'] = $post['regdate'] = $post['hw'] = 'N/A';
                }

                $post['karma'] = '';
                if($post['rate'] && $post['ratetimes']) {
                        $rateimg = $post['rate'] > 0 ? 'agree.gif' : 'disagree.gif';
                        for($i = 0; $i < round(abs($post['rate']) / $post['ratetimes']); $i++) {
                                $post['karma'] .= '<img src="'.IMGDIR.'/'.$rateimg.'" align="right">';
                        }
                }
                $query1 = $db->query("SELECT username, ignorepm FROM $table_members WHERE username='$discuz_user'");
                while($member = $db->fetch_array($query1)) {
                if(preg_match("/(,|^)\s*".preg_quote($post['username'], '/')."\s*(,|$)/i", $member['ignorepm'])) {
                $post['subject'] = "忽略會員<span style=\"background-color: #CCCCFF\">$thread[author]</span>發起的主題";
                $thread['subject'] = "忽略會員<u>$thread[author]</u>發起的主題";
                $navigation = "&raquo; <a href=\"forumdisplay.php?fid=$fid&page=$fpage\"> $forum[name]</a> &raquo; $post[subject]";
                $post['message'] = "會員<span style=\"background-color: #CCCCFF\">$post[username]</span>正在您的忽略清單內,故本訊息已被屏蔽,如要讀取本訊息,請將此會員從忽略列表中移除。";
                $post['signature'] = "會員<span style=\"background-color: #CCCCFF\">$post[username]</span>正在您的忽略清單內,故本簽名已被屏蔽,如要讀取本簽名,請將此會員從忽略列表中移除。";
                } else {
                $post['subject'] = $post['subject'] ? $post['subject'] : NULL;
              $post['payed'] = 0 ;
                if($post[hidepost] == '1') {
    $post['message'] = '<b>****本帖已被版主隐藏****</b>';
    $post['message'] .= $post['wnmessagepost'];
    } else {
    $post['message'] = postify($post['message'], $post['smileyoff'], $post['bbcodeoff'], $forum['allowsmilies'], $forum['allowhtml'], $forum['allowbbcode'], $forum['allowimgcode']);
    $post['message'] = $post['message'] ;
    $post['message'] .=$post['wnmessagepost'];
    } if( $isallowcopy){
                        $poststr = $post['message'];
$post['message'] = chaos($poststr);
                }
                $post['signature'] = $post['usesig'] && $post['signature'] ? postify($post['signature'], 1, 0, 0, 0, $_DCACHE['usergroups'][$post['groupid']]['allowsigbbcode'], $_DCACHE['usergroups'][$post['groupid']]['allowsigimgcode']) : NULL;
             }
             }

                if($post['aid']){
                        $attachpost[] = $post['pid'];
                }
               
                $postlist[] = $post;
        }
       
        if (empty($postlist)) {
                showmessage('undefined_action', NULL, 'HALTED');
        }

        if (count($attachpost)) {
                require_once DISCUZ_ROOT.'./include/attachment.php';
                $query = $db->query("select * from $table_attachments where pid in(".implode_ids($attachpost).")");
                while($attach = $db->fetch_array($query)) {
                        $attach[checkid] = substr(md5($attach['filesize']),0,5);
                        $extension = strtolower(fileext($attach['filename']));
                        $attach['attachicon'] = attachtype($extension."\t".$attach['filetype']);
                    $attach['attachtype'] = attachtype($extension."\t".$attach['filetype']);
$attach['attachext'] = $extension;
$attach['attachsize'] = sizecount($attach['filesize']);
                        if($attachimgpost && in_array($extension, array('jpg', 'jpeg', 'jpe', 'gif', 'png', 'bmp'))) {
                                $attach['attachimg'] = 1;
                        } else {
                                $attaches['attachimg'] = 0;
                        }
               
                        $attach['dateline'] = $attach['dateline']?gmdate("$dateformat $timeformat", $attach['dateline'] + $timeoffset * 3600): '';
                        $attachelist["$attach[pid]"][] = $attach;
                }
        }
$typearray = array('0', '1', '2', '3', '4', '5', '6', '7', '8', '9');
if($thread['badge']) {
        $string = sprintf('%02d', $thread['badge']);
        $stylestr = sprintf('%03b', $string[0]);
        //$thread['badge'] .= $string[1];        
    } else {
        $thread['badge'] = '';
    }
        $forumselect = $forumjump ? forumselect() : NULL;
if($imagesdatas!=''){
                $showimages = '';
                require_once('./virtualimage/global.php');
                $showimages = images_showimages($imagesdatas,$alhpa,$imagesset[imageurl]);
                unset($imagesdatas,$imagesdata,$alpha);
        }
        $usesigcheck = $signature ? 'checked' : NULL;
        $allowpost = (!$forum['postperm'] && $allowpost) || ($forum['postperm'] && strstr($forum['postperm'], "\t$groupid\t")) || $forum['allowpost'];
        $allowpostreply = (!$thread['closed'] || $ismoderator) && ((!$forum['replyperm'] && $allowpost) || ($forum['replyperm'] && strstr($forum['replyperm'], "\t$groupid\t")) || $forum['allowreply']);

        if($delayviewcount) {
                $logfile = DISCUZ_ROOT.'./forumdata/viewcount.log';
                if(substr($timestamp, -2) == '00') {
                        require DISCUZ_ROOT.'./include/misc.php';
                        updateviews();
                }

                if(@$fp = fopen($logfile, 'a')) {
                        fwrite($fp, "$tid\n");
                        fclose($fp);
                }elseif($adminid == 1) {
                        showmessage('view_log_invalid');
                }
        } else {
                $db->query("UPDATE LOW_PRIORITY $table_threads SET views=views+1 WHERE tid='$tid'", 'UNBUFFERED');
        }

include template('viewthread');

} elseif( $action == 'printable' && $tid) {

require DISCUZ_ROOT.'./include/printable.php';

}
?>
回复

使用道具 举报

 楼主| PerfectWorks 发表于 2005-7-20 13:49:08 | 显示全部楼层
以后我出新版本你们还得这么升级
回复

使用道具 举报

fangwen 发表于 2005-7-20 13:51:12 | 显示全部楼层
太长了,是要这样发吗?行吗?

通票在另一个演示论坛已经是2.0了,呵呵这个没升呢

[ 本帖最后由 fangwen 于 2005-7-20 13:54 编辑 ]
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-2-23 19:16 , Processed in 0.032582 second(s), 3 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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