One reply (คำติชมใต้ข้อความโพส)for discuz 6.1.0 update 07/06/2008
Paste in the back (manager, owner, the landlord can post messages) For Discuz! 6.1.0Categories of information - Discuz! Plug-in released
Plug-in reply to name affixed For Discuz! 6.1.0
Applicable version Discuz! 6.1
Language coding GBK
Plug-author TaRot!
Copyright TaRot!
No support website
Plug-ins add a brief document: onereply.htm
Involve changing six documents:
Template: css_common.htm, viewthread.htm
Language paper: templates.lang.php, messages.lang.php
Main program: viewthread.php, misc.php
อัพเดท 7/06/2008 โค้ดแก้ไขสำหรับใครที่มีปัญหาเทมเพลทบิดเบี้ยว
credit : qiank128
ตรง misc.php ให้เพิ่มโค้ดนี้แทนโค้ดเดิมelseif($action == 'oreply') {
$query = $db->query("SELECT pid,onereply FROM {$tablepre}posts WHERE pid='$pid' and onereplyt<>0 limit 1");
$replytext = 'Please enter your resume, recommends no more than 32 Chinese characters?';
if($onereply = $db->fetch_array($query)) {
$replytext = $onereply['onereply'];
}
if(!submitcheck('oreplysubmit')) {
include template('onereply');
}else{
$neworeply=trim($neworeply);
if($neworeply!='')
{
$db->query("UPDATE {$tablepre}posts SET onereply='$neworeply', onereplyu='$discuz_user', onereplyt = '$timestamp' WHERE pid='$pid'"); !$inajax ? showmessage('post_onereply_succeed',"viewthread.php?tid=$tid&page=$page#pid$pid") : showmessage('ajax_post_onereply_succeed');
}
else
{
$db->query("UPDATE {$tablepre}posts SET onereply='', onereplyu='', onereplyt = '0' WHERE pid='$pid'");
showmessage('Posts have been deleted in the back, refresh Show.');
}
}
}จากนั้นเข้าไปแก้ไขไฟล์ onereply.html หาโค้ด มี 2 จุด{lang post_onereply_mo}เปลี่ยนเป็น$replytextเข้าไปลบโค้ดใน templates/*/template.lang.php 'post_onereply_mo' => 'Please enter your resume, recommends no more than 32 characters.',*******************************************************************************************************************************************
เป็น MOD ที่น่าสนใจเพราะเราสามารถติชมข้อความโพสนั้นๆได้แต่โพสได้ไม่ยาวมากนักถ้าเอายาวๆก้อ mod กันต่อแระกันนะ
เกือบลืมสำหรับเจ้าของกระทู้นั้นๆเท่านั้นที่จะติชมคนที่มาโพสข้อความในกระทู้เรานะครับ ติชมได้ข้อความล่ะ 1 ครั้งเท่านั้นตามชื่อ
**** Hidden Message *****
[ แก้ไขล่าสุด buachompoox เมื่อ 2008-6-7 15:56 ] ขอบคุณครับ คนแรกเลยยย :lol ต่อคนที่สอง อิอิ เหอะๆ (~81~)
น่าสนใจเนอะ ฮ่าๆๆๆ ขอดูหน่อยนะ ขอดูหน่อยนะ ขอบคุณครับ ขอลองทำดูหน่อยครับใจจ้า ยังไงง่า:lol น่าทำครับ เด๋วต้องลอง