![]() |
|
|||||||
| 論壇說明 |
|
歡迎您來到『史萊姆論壇』 ^___^ 您目前正以訪客的身份瀏覽本論壇,訪客所擁有的權限將受到限制,您可以瀏覽本論壇大部份的版區與文章,但您將無法參與任何討論或是使用私人訊息與其他會員交流。若您希望擁有完整的使用權限,請註冊成為我們的一份子,註冊的程序十分簡單、快速,而且最重要的是--註冊是完全免費的! 請點擊這裡:『註冊成為我們的一份子!』 |
|
|
主題工具 | 顯示模式 |
|
|
#3 (permalink) |
|
長老會員
![]() |
postbit
搜索: <!-- message --> <div>$post[message]</div> <!-- / message --> 替換為: <!-- message --> <if condition="!$show['moderator']"> $moderator <if condition="$show['costpost'] || $show['wealthpost'] || $show['replypost']"> <fieldset class="fieldset"> <legend>隱藏文章</legend> <div style="padding: 3px;"> <if condition="$show['costpost']"><div>本帖為金錢出售文章,價格 $post[price] $vboptions[danwei] 。您需要購買後才可查看。[<a href="buypost.php?$session[sessionurl]p=$post[postid]">點擊這媮妎R</a>] [<a href="#" onclick="return buyerswindow('$post[postid]', 400, 200)">看誰購買</a>]</div></if> <if condition="$show['wealthpost']"><div>本帖為財富限制,您的財富需要達到 $post[wealth] $vboptions[danwei] 才可查看。</div></if> <if condition="$show['replypost']"><div>本主題需要回覆才可查看。</div></if> </div> </fieldset> <else /> <if condition="$post['price'] || $post['wealth'] || $post['replypost']"> <fieldset class="fieldset"> <legend>隱藏文章訊息</legend> <div style="padding: 3px;"> <if condition="$show['bought']"><div>您已經購買了該金錢文章 [<a href="#" onclick="return buyerswindow('$post[postid]', 400, 200)">看誰購買</a>]</div></if> <if condition="$post['price'] && $show['selfpost']"><div>這是您發表的金錢限制,價格 $post[price] $vboptions[danwei] 。[<a href="#" onclick="return buyerswindow('$post[postid]', 400, 200)">看誰購買</a>]</div></if> <if condition="$post['wealth'] && $show['selfpost']"><div>這是您發表的財富限制,其他會員財富需要達到 $post[wealth] $vboptions[danwei] 才可查看本篇。</div></if> <if condition="$post['wealth'] && !$show['selfpost']"><div>本貼為財富限制。您的財富已經達到 $post[wealth] $vboptions[danwei],因此可以查看本篇。</div></if> <if condition="$post['replypost'] && $show['replied']"><div>該主題需要回覆才可查看。您已經回覆。</div></if> <if condition="$post['replypost'] && $show['selfpost']"><div>這是您發表的回覆限制,其他會員需要回覆才可查看本主題。</div></if> </div> </fieldset> </if> <div>$post[message]</div> </if> <else /> <if condition="$show['costpost'] || $show['wealthpost'] || $post['replypost']"> <fieldset class="fieldset"> <legend>版主、管理員注意</legend> <div style="padding: 3px;"> <if condition="$post['price']"><div>該篇為金錢出售文章,價格為 $post[price] $vboptions[danwei] 。[<a href="#" onclick="return buyerswindow('$post[postid]', 400, 200)">看誰購買</a>]</div></if> <if condition="$post['wealth']"><div>該篇為財富限制,財富大於 $post[wealth] $vboptions[danwei] 的會員才可查看。</div></if> <if condition="$post['replypost']"><div>該主題回覆後才可查看</div></if> </div> </fieldset> </if> <div>$post[message]</div> </if> <!-- / message --> 檔修改 showpost.php 搜索: // see if the lastpost time of this thread is older than the cache max age limit if ($vboptions['cachemaxage'] == 0 OR TIMENOW - ($vboptions['cachemaxage'] * 60 * 60 * 24) > $threadinfo['lastpost']) { $stopsaveparsed = 1; } else { $stopsaveparsed = 0; } 在後面添加: // 007pig 隱藏帖不緩存 if ($post['price'] OR $post['wealth'] OR $post['replypost']) { $stopsaveparsed = 1; } 搜索: $post['money'] = $post['money']; $post['moneyhole'] = intval($post['money']) + intval($post['bank']); 在後面添加: $buyerarray = explode(",", $post['buyerids']); $moderator = can_moderate($threadinfo['forumid']); $show['selfpost'] = 0; $show['costpost'] = 0; $show['bought'] = 0; $show['wealthpost'] = 0; $show['replypost'] = 0; $show['replied'] = 0; if ($moderator) { $show['moderator'] = 1; } if ($post['price'] > 0) { if ($bbuserinfo['userid']==$post['userid']) { $show['selfpost'] = 1; $show['costpost'] = 0; } elseif (in_array($bbuserinfo['userid'], $buyerarray) && $bbuserinfo['userid'] != 0) { $show['bought'] = 1; $show['costpost'] = 0; } else { $show['costpost'] = 1; } } else { $show['costpost'] = 0; $show['bought'] = 0; } if ($post['wealth'] > 0) { $wealth = $bbuserinfo['money']+$bbuserinfo['bank']; if ($bbuserinfo['userid']==$post['userid']) { $show['wealthpost'] = 0; $show['selfpost'] = 1; } elseif ($wealth < $post['wealth']) { $show['wealthpost'] = 1; } else { $show['wealthpost'] = 0; } } else { $show['wealthpost'] = 0; } if ($post['replypost']) { $replierids = $DB_site->query("SELECT userid FROM " . TABLE_PREFIX . "post WHERE threadid=$threadinfo[threadid] GROUP BY userid"); while ($replierid = $DB_site->fetch_array($replierids)) { $replierarray[] = $replierid['userid']; } if ($bbuserinfo['userid']==$post['userid']) { $show['replypost'] = 0; $show['selfpost'] = 1; } elseif (in_array($bbuserinfo['userid'], $replierarray)) { $show['replypost'] = 0; $show['replied'] = 1; } else { $show['replypost'] = 1; } } showthread.php 搜索: // see if the lastpost time of this thread is older than the cache max age limit if ($vboptions['cachemaxage'] == 0 OR TIMENOW - ($vboptions['cachemaxage'] * 60 * 60 * 24) > $thread['lastpost']) { $stopsaveparsed = 1; } else { $stopsaveparsed = 0; } 在後面添加: // 007pig 隱藏帖不緩存 if ($post['price'] OR $post['wealth'] OR $post['replypost']) { $stopsaveparsed = 1; } 搜索: $post['musername'] = fetch_musername($post); $post['islastshown'] = ($post['postid'] == $lastpostid); $post['attachments'] = &$postattach["$post[postid]"]; // 帖子特殊內容顯示-非凡豬0108 // 007pig 修改開始 // 資產 $post['moneyhole'] $post['moneyhole'] = $post['money']+$post['bank']; // 007pig 修改結束 在後面添加: $buyerarray = explode(",", $post['buyerids']); $moderator = can_moderate($threadinfo['forumid']); $show['selfpost'] = 0; $show['costpost'] = 0; $show['bought'] = 0; $show['wealthpost'] = 0; $show['replypost'] = 0; $show['replied'] = 0; if ($moderator) { $show['moderator'] = 1; } if ($post['price'] > 0) { if ($bbuserinfo['userid']==$post['userid']) { $show['selfpost'] = 1; $show['costpost'] = 0; } elseif (in_array($bbuserinfo['userid'], $buyerarray) && $bbuserinfo['userid'] != 0) { $show['bought'] = 1; $show['costpost'] = 0; } else { $show['costpost'] = 1; } } else { $show['costpost'] = 0; $show['bought'] = 0; } if ($post['wealth'] > 0) { $wealth = $bbuserinfo['money']+$bbuserinfo['bank']; if ($bbuserinfo['userid']==$post['userid']) { $show['wealthpost'] = 0; $show['selfpost'] = 1; } elseif ($wealth < $post['wealth']) { $show['wealthpost'] = 1; } else { $show['wealthpost'] = 0; } } else { $show['wealthpost'] = 0; } if ($post['replypost']) { $replierids = $DB_site->query("SELECT userid FROM " . TABLE_PREFIX . "post WHERE threadid=$threadinfo[threadid] GROUP BY userid"); while ($replierid = $DB_site->fetch_array($replierids)) { $replierarray[] = $replierid['userid']; } if ($bbuserinfo['userid']==$post['userid']) { $show['replypost'] = 0; $show['selfpost'] = 1; } elseif (in_array($bbuserinfo['userid'], $replierarray)) { $show['replypost'] = 0; $show['replied'] = 1; } else { $show['replypost'] = 1; } } |
|
|
送花文章: 1,
|
|
向 貝斯特 送花的會員:
|