- เครดิต
- 16375
- เพื่อน
- ทักทาย
- บล็อก
- อัลบั้ม
- โพสต์
- กระทู้
- แชร์
- สำคัญ
- สิทธิ์อ่าน
- 90
- จำนวนผู้ติดตาม
- จำนวนผู้กำลังติดตาม
- เพศ
- ไม่บอก
|
แก้ไขครั้งสุดท้ายโดย princekoong เมื่อ 2011-9-27 23:44
== DEMO ==
หรือ
http://bbs.gnv3.net/thread-87303-1-1.html
1.เพิ่มโค้ดในไฟล์ Css- .n2-firstpost{height:56px;padding:10px 10px 10px 25px;margin:10px 0px;background:#eaeaea;border:1px solid #ddd;}
- .n2-firstposti{float:left;width:95%;height:30px;line-height:30px;font-size:14px;border:1px solid;border-color:#999 #CCC #CCC #999;padding:2px 5px;background:#fff;}
- .n2-firstpostb{float:left;width:90px;height:36px;border:none;overflow:hidden;text-indent:-9999px;background:#317AC3 url({IMGDIR}/reply.png) no-repeat 0 0;cursor:pointer;}
คัดลอกไปที่คลิปบอร์ด 2.แก้ไขไฟล์ /forum/viewthread_node.htm
ค้นหา- </div>
- <!--{/if}-->
- <!--{/if}-->
คัดลอกไปที่คลิปบอร์ด แก้ไขเป็น- </div>
- <!--{/if}-->
- <!--{subtemplate forum/viewthread_fastpost_1}-->
- <!--{/if}-->
คัดลอกไปที่คลิปบอร์ด 3.แก้ไขไฟล์ static/js/forum.js
ค้นหา- theform.message.value = parseurl(theform.message.value);
- if(!noajaxpost) {
- ajaxpost('fastpostform', 'fastpostreturn', 'fastpostreturn', 'onerror', $('fastpostsubmit'));
- return false;
- } else {
- return true;
- }
- }
คัดลอกไปที่คลิปบอร์ด เพิ่มโค้ดนี้ครับ- function postvalidate(theform, noajaxpost) {
- if(postpt) {
- return false;
- }
- postpt = 1;
- setTimeout(function() {postpt = 0}, 2000);
- noajaxpost = !noajaxpost ? 0 : noajaxpost;
- s = '';
- if(typeof postvalidateextra == 'function') {
- var v = postvalidateextra();
- if(!v) {
- return false;
- }
- }
- if(theform.message.value == '' && theform.subject.value == '') {
- s = 'กรุณาใส่เนื้อหา';
- theform.message.focus();
- } else if(mb_strlen(theform.subject.value) > 80) {
- s = 'เนื้อหาของคุณมีความยาวมากกว่า 80 ตัวอักษร';
- theform.subject.focus();
- }
- if(!disablepostctrl && ((postminchars != 0 && mb_strlen(theform.message.value) < postminchars) || (postmaxchars != 0 && mb_strlen(theform.message.value) > postmaxchars))) {
- s = 'คำเตือน\n\nความยาวเนื้อหาของคุณ: ' + mb_strlen(theform.message.value) + ' ' + 'ไบต์\nความยาวของเนื้อหาจะต้องอยู่ระหว่าง: ' + postminchars + ' ถึง ' + postmaxchars + ' ไบต์';
- }
- if(s) {
- showError(s);
- doane();
- $('postsubmit').disabled = false;
- return false;
- }
- $('postsubmit').disabled = true;
- theform.message.value = parseurl(theform.message.value);
- if(!noajaxpost) {
- ajaxpost('postform', 'postreturn', 'postreturn', 'onerror', $('postsubmit'));
- return false;
- } else {
- return true;
- }
- }
คัดลอกไปที่คลิปบอร์ด 4.อัพโหลดไฟล์ ไปวางไว้ที่ /สกินของคุณ/forum/
5.อัพโหลดรูป ไปวางไว้ที่ รูปภาพสกินของคุณ
6.อัพเดทแคชครับ |
ขออภัย! โพสต์นี้มีไฟล์แนบหรือรูปภาพที่ไม่ได้รับอนุญาตให้คุณเข้าถึง
คุณจำเป็นต้อง ลงชื่อเข้าใช้ เพื่อดาวน์โหลดหรือดูไฟล์แนบนี้ คุณยังไม่มีบัญชีใช่ไหม? สมัครสมาชิก
x
คะแนน
-
ดูบันทึกคะแนน
|
|
|
|
|
|