Diễn đàn Trái Tim Yên Bái 2024

 Quên mật khẩu
 Đăng ký
Xem: 2788|Trả lời: 0
Thu gọn cột thông tin

Fix 1 số lỗi VBB 3.6.8

[Lấy địa chỉ]
  • 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

    Đăng lúc 18-5-2008 11:08 AM | Xem tất |Chế độ đọc

    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:

    1. Database error in vBulletin 3.6.8:
    2. Invalid SQL:
    3. SELECT COUNT AS total
    4. FROM vbb_moderatorlog AS moderatorlog
    5. WHERE AND moderatorlog.userid = 7260;
    6. 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
    7. Error Number : 1064
    8. Date : Sunday, July 29th 2007 @ 08:41:36 PM
    9. Script : http://xxxx/admincp/rcp/modlog.php?do=view
    10. Referrer : http://xxxx/admincp/modlog.php?do=choose
    11. Username : Admin
    12. 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:

    1. $sqlconds[] = "AND moderatorlog.userid = " . $vbulletin->GPC['userid'] . " ";
    Sao chép mã

    thay bằng:

    1. $sqlconds[] = "moderatorlog.userid = " . $vbulletin->GPC['userid'] . " ";
    Sao chép mã

    tìm tiếp:
    1. $sqlconds[] = 'AND moderatorlog.action LIKE "%' . $db->escape_string_like($vbulletin->GPC['modaction']) . '%" ';
    Sao chép mã
    thay bằng:
    1. $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:
    1. #((?>[^\s&<>"\\-\[\]]|&[\#a-z0-9]{1,7};){' . $limit . '})(?=[^\s&/<>"\\-\[\]]|&[\#a-z0-9]{1,7};)#i',
    Sao chép mã

    Thay bằng:
    1. #((?>[^\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:
    1. <div id="$editorid" class="vBulletin_editor">
    Sao chép mã
    thay bằng:
    1. <table cellpadding="0" cellspacing="0" border="0">
    2. <tr>
    3. <td id="$editorid" class="vBulletin_editor" width="100%">
    Sao chép mã
    tìm tiếp:
    Trích:
    1. <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:
    1. <td class="controlbar">
    2. <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>
    3. </td>
    Sao chép mã
    tìm tiếp:
    1. <if condition="$smiliebox"><td class="controlbar">$smiliebox</td></if>
    2. </tr>
    3. </table>
    4. </div>
    Sao chép mã


    thay bằng:
    1. <if condition="$smiliebox"><td class="controlbar">$smiliebox</td></if>
    2. </tr>
    3. </table>
    4. </td>
    5. </tr>
    6. </table>
    Sao chép mã
    4.Quick Reply shape change
    Có một người thống báo lỗi như sau:
    1. 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]
    Bạn phải đăng nhập mới được đăng bài Đăng nhập | Đăng ký

    Quy tắc điểm

    Đóng

    Thông báoTrước /1 Sau

    Phòng tối|Lưu trữ|Diễn đàn Yên Bái 2024 Community Guidelines |

    GMT+7, 19-10-2026 11:44 AM , Processed in 0.027826 second(s), 22 queries .

    Powered by Discuz! X3.4

    © 2001-2013 Comsenz Inc.

    Trả lời nhanh Lên trên Trở lại danh sách