Tâm trạng hàng ngày | Hạnh phúc 2-7-2025 09:43 PM |
|---|
Đã viết: 13 ngày [LV.3]Spam 3
|
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
Bản 3.6.8 có một số lỗi nhỏ anh em chú ý fix nhé
1. Moderator log viewer database error
Khi MOD login vào site quản lý sẽ bị lỗi Database dạng sau:
- Database error in vBulletin 3.6.8:
- Invalid SQL:
- SELECT COUNT AS total
- FROM vbb_moderatorlog AS moderatorlog
- WHERE AND moderatorlog.userid = 7260;
- MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND moderatorlog.userid = 7260' at line 3
- Error Number : 1064
- Date : Sunday, July 29th 2007 @ 08:41:36 PM
- Script : http://xxxx/admincp/rcp/modlog.php?do=view
- Referrer : http://xxxx/admincp/modlog.php?do=choose
- Username : Admin
- Classname : vB_Database
Sao chép mã Để fix lỗi này các bạn làm như sau :
Open up admincp/modlog.php
tìm:
- $sqlconds[] = "AND moderatorlog.userid = " . $vbulletin->GPC['userid'] . " ";
Sao chép mã
thay bằng:
- $sqlconds[] = "moderatorlog.userid = " . $vbulletin->GPC['userid'] . " ";
Sao chép mã
tìm tiếp:
- $sqlconds[] = 'AND moderatorlog.action LIKE "%' . $db->escape_string_like($vbulletin->GPC['modaction']) . '%" ';
Sao chép mã thay bằng:
- $sqlconds[] = 'moderatorlog.action LIKE "%' . $db->escape_string_like($vbulletin->GPC['modaction']) . '%" ';
Sao chép mã
2.Custom BB Codes Do Not Work For 3.6.8
Không dùng được bbcode ở 3.6.8 ( cụ thể là bị lỗi link khi post )
Khắc phục như sau:
Mở : includes/functions.php tìm:- #((?>[^\s&<>"\\-\[\]]|&[\#a-z0-9]{1,7};){' . $limit . '})(?=[^\s&/<>"\\-\[\]]|&[\#a-z0-9]{1,7};)#i',
Sao chép mã
Thay bằng:- #((?>[^\s&/<>"\\-\[\]]|&[\#a-z0-9]{1,7};){' . $limit . '})(?=[^\s&/<>"\\-\[\]]|&[\#a-z0-9]{1,7};)#i',
Sao chép mã
3.WYSIWYG Editor Message Window Too Small
Khắc phục như sau
Mở template editor_toolbar_on template tìm:
- <div id="$editorid" class="vBulletin_editor">
Sao chép mã thay bằng:- <table cellpadding="0" cellspacing="0" border="0">
- <tr>
- <td id="$editorid" class="vBulletin_editor" width="100%">
Sao chép mã tìm tiếp:
Trích:- <td class="controlbar" width="100%" style="padding-right:8px"><textarea name="message" id="{$editorid}_textarea" rows="10" cols="60" style="width:100%; height:{$editor_height}px" tabindex="1" dir="$stylevar[textdirection]">$newpost[message]</textarea></td>
Sao chép mã Thay bằng:
- <td class="controlbar">
- <textarea name="message" id="{$editorid}_textarea" rows="10" cols="60" style="display:block; width:$stylevar[messagewidth]; height:{$editor_height}px" tabindex="1" dir="$stylevar[textdirection]">$newpost[message]</textarea>
- </td>
Sao chép mã tìm tiếp:- <if condition="$smiliebox"><td class="controlbar">$smiliebox</td></if>
- </tr>
- </table>
- </div>
Sao chép mã
thay bằng:
- <if condition="$smiliebox"><td class="controlbar">$smiliebox</td></if>
- </tr>
- </table>
- </td>
- </tr>
- </table>
Sao chép mã 4.Quick Reply shape change
Có một người thống báo lỗi như sau:
- After I posted using the quick reply, the quick reply looked different than normal (check attachment) but after I refreshed the page, everything was normal.
Sao chép mã
sau khi toi su dung quick reply , quick reply nhin khac voi binh thuong phan check attachment. nhung sau khi tui f5 moi thu tro lai binh thuong
Để khắc phục bạn làm như sau:
Mở template showthread_quickreply ra và thêm đoạn màu đỏ vào đúng chỗ :
[color="Red"]<fieldset style="border:0px; padding:0px; margin:0px"> Trích:
<if condition="$show['qr_require_click']">
<textarea name="message" id="{$editorid}_textarea" rows="10" cols="60" style="width:100%; height:{$editor_height}px" tabindex="1" dir="$stylevar[textdirection]" disabled="disabled">$vbphrase[click_quick_reply_icon]</textarea>
<else />
<textarea name="message" id="{$editorid}_textarea" rows="10" cols="60" style="width:100%; height:{$editor_height}px" tabindex="1" dir="$stylevar[textdirection]"></textarea>
</if>
[color="Red"]</fieldset>[/QUOTE] |
|