Tâm trạng hàng ngày | Suy ngẫm 22-4-2024 05:18 PM |
|---|
Đã viết: 4 ngày [LV.2]Spam 2
|
Mời bạn đăng ký để giao lưu kết bạn nhé <3
Bạn phải đăng nhập để xem được nội dung, nếu bạn chưa có tài khoản? hãy Đăng ký
x
Mặc định DZ phiên bản x2, x2.5 giới hạn tiêu đề chỉ có 80 ký tự nhưng với tiếng việt có thể thấy hơi thiếu. Để sửa theo ý muốn các bạn làm như sau:
Vào phpmyadmin chạy đoạn querry sau:- ALTER TABLE `pre_forum_thread` CHANGE `subject` `subject` CHAR( 100 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT ''
- Và
- ALTER TABLE `pre_forum_post` CHANGE `subject` `subject` VARCHAR( 100 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT ''
Sao chép mã Mở static/js/forum_post.js tìm
Chú ý đây là hướng dẫn tăng số ký tự lên 100, nếu bạn muốn hơn thì thay số 100 bằng số mình cần nhé- } else if(mb_strlen(theform.subject.value) > 80) {
- showError('Tiêu đề quá giới hạn 80 ký tự');
Sao chép mã Thay bằng- } else if(mb_strlen(theform.subject.value) > 100) {
- showError('Tiêu đề quá giới hạn 100 ký tự');
Sao chép mã Vào Khách: Nội dung này bị ẩn, bạn cần bấm Thank để xem. tìm:- if(dstrlen($subject) > 80) {
Sao chép mã Thay bằng:- if(dstrlen($subject) > 100) {
Sao chép mã Mở /template/default/forum/forumdisplay_fastpost.htm tìm- <input type="text" id="subject" name="subject" class="px" value="" onkeyup="strLenCalc(this, 'checklen', 80);" tabindex="11" style="width: 25em" />
- <span>{lang comment_message1} <strong id="checklen">80</strong> {lang comment_message2}</span>
Sao chép mã Thay bằng- <input type="text" id="subject" name="subject" class="px" value="" onkeyup="strLenCalc(this, 'checklen', 100);" tabindex="11" style="width: 25em" />
- <span>{lang comment_message1} <strong id="checklen">100</strong> {lang comment_message2}</span>
Sao chép mã Mở /template/default/forum/post_editor_extra.htm tìm- <span><input type="text" name="subject" id="subject" class="px" value="$postinfo[subject]" {if $_G[gp_action] == 'newthread'}onblur="if($('tags')){relatekw('-1','-1'{if $_G['group']['allowposttag']},function(){extraCheck(4)}{/if});doane();}"{/if} onkeyup="strLenCalc(this, 'checklen', 80);" style="width: 25em" tabindex="1" /></span>
- <!--{else}-->
- <span id="subjecthide" class="z">RE: $thread[subject] [<a href="javascript:;" onclick="display('subjecthide');display('subjectbox');$('subject').value='RE: {echo htmlspecialchars(str_replace('\'', '\\\'', $thread[subject]))}';display('subjectchk');strLenCalc($('subject'), 'checklen', 80);return false;">{lang modify}</a>]</span>
- <span id="subjectbox" style="display:none"><input type="text" name="subject" id="subject" class="px" value="" onkeyup="strLenCalc(this, 'checklen', 80);" style="width: 25em" /></span>
- <!--{/if}-->
- <span id="subjectchk"{if $_G[gp_action] == 'reply'} style="display:none"{/if}>{lang comment_message1} <strong id="checklen">80</strong> {lang comment_message2}</span>
Sao chép mã Thay bằng- <span><input type="text" name="subject" id="subject" class="px" value="$postinfo[subject]" {if $_G[gp_action] == 'newthread'}onblur="if($('tags')){relatekw('-1','-1'{if $_G['group']['allowposttag']},function(){extraCheck(4)}{/if});doane();}"{/if} onkeyup="strLenCalc(this, 'checklen', 100);" style="width: 25em" tabindex="1" /></span>
- <!--{else}-->
- <span id="subjecthide" class="z">RE: $thread[subject] [<a href="javascript:;" onclick="display('subjecthide');display('subjectbox');$('subject').value='RE: {echo htmlspecialchars(str_replace('\'', '\\\'', $thread[subject]))}';display('subjectchk');strLenCalc($('subject'), 'checklen', 100);return false;">{lang modify}</a>]</span>
- <span id="subjectbox" style="display:none"><input type="text" name="subject" id="subject" class="px" value="" onkeyup="strLenCalc(this, 'checklen', 100);" style="width: 25em" /></span>
- <!--{/if}-->
- <span id="subjectchk"{if $_G[gp_action] == 'reply'} style="display:none"{/if}>{lang comment_message1} <strong id="checklen">100</strong> {lang comment_message2}</span>
Sao chép mã Xong. Nguồn Trái Tim Yên Bái
|
Cảm ơn
-
Xem tất cả
|