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

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

[Mod Discuz] New Toplist Discuz 7.0

[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 4-1-2009 10:49 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

                                   
    Đăng nhập/Đăng ký mở rộng

    Download:
    Khách: Nội dung này bị ẩn, bạn cần bấm Thank để xem.

    Mở index.php tìm
    1. $newthreads = round(($timestamp - $lastvisit + 600) / 1000) * 1000;
    Sao chép mã
    thêm dưới
    1. //----Toplist
    2. $colorarray = array('', 'red', 'orange', 'yellow', 'green', 'cyan', 'blue', 'purple', 'gray');
    3. //โพสใหม่
    4. $hack_cut_str = 28; //ความยาวของหัวข้อ
    5. $hack_cut_strauthor = 9;
    6. $new_post_threadlist = array();
    7. $nthread = array();
    8. $query = $db->query("SELECT t.*, f.name FROM {$tablepre}threads t,{$tablepre}forums f WHERE t.fid<>'$fid' AND f.fid=t.fid AND f.fidnot in (0) AND t.displayorder not in (-1,-2) ORDER BY t.dateline DESCLIMIT 0, 10";
    9. while($nthread = $db->fetch_array($query)) {
    10.         $nthread['forumname'] = ereg_replace('<[^>]*>','',$nthread['name']);
    11.         $nthread['view_subject'] = cutstr($nthread['subject'],$hack_cut_str);
    12.         $nthread['view_author'] = cutstr($nthread['author'],$hack_cut_strauthor);
    13.         $nthread['date']= gmdate("$dateformat $timeformat", $nthread['dateline'] + $timeoffset * 3600);
    14.         $nthread['lastreplytime']= gmdate("$dateformat $timeformat", $nthread[lastpost] + ($timeoffset * 3600));
    15.         if($nthread['highlight']) {
    16.                 $string = sprintf('%02d', $nthread['highlight']);
    17.                 $stylestr = sprintf('%03b', $string[0]);
    18.                 $nthread['highlight'] = 'style="';
    19.                 $nthread['highlight'] .= $stylestr[0] ? 'font-weight: bold;' : '';
    20.                 $nthread['highlight'] .= $stylestr[1] ? 'font-style: italic;' : '';
    21.                 $nthread['highlight'] .= $stylestr[2] ? 'text-decoration: underline;' : '';
    22.                 $nthread['highlight'] .= $string[1] ? 'color: '.$colorarray[$string[1]] : '';
    23.                 $nthread['highlight'] .= '"';
    24.         } else {
    25.                 $nthread['highlight'] = '';
    26.         }
    27.         $new_post_threadlist[] = $nthread;
    28. }
    29. //
    30. $tomonth=date(n);
    31. $todate=date(j);
    32. $toyear=date(Y);
    33. $time=mktime(0,0,0,$tomonth,$todate,$toyear);
    34. $query=$db->query("select count(pid) as num,authorid,author from$tablepre"."posts where dateline>=$time group by authorid order bynum desc limit 0,10";
    35. while($result=$db->fetch_array($query)){
    36. $poststar.="<ahref=space.php?uid=".$result[authorid].">".cutstr($result[author],8)."</a><fontcolor=red>[".$result[num]."]</font>  ";
    37. }
    38. //----Toplist
    Sao chép mã
    Mở discuz.html tìm
    1. function announcementScrollnext(time) {

    2.    $('annbody').scrollTop++;

    3.    anncount++;

    4.    if(anncount != time) {

    5.     annst = setTimeout('announcementScrollnext(' + time + ')', 10);

    6.    } else {

    7.     annrowcount++;

    8.     annst = setTimeout('announcementScroll()', anndelay);

    9.    }

    10.   }

    11. </script>

    12. <!--{/if}-->

    13. </div>
    Sao chép mã
    thêm dưới
    1. {template toplist}
    Sao chép mã
    Lưu ý mod này mình chưa test nên có thể phần dịch hack mod add trên hoặc dưới có thể chưa chuẩn. Bạn nào test ok thì báo lại dùm mình nhé

    Cảm ơn

    Số người tham gia 2Danh vọng +4 Tiền +7 Thanks +2 Thu lại Lý do
    cuhuy12385 + 4 + 7 + 1 Bài hay
    WindBows + 1

    Xem tất cả

    Đăng lúc 28-1-2009 07:26 PM | Xem tất
    để test thử, thax bạn
    Đăng lúc 1-2-2009 05:23 PM | Xem tất
    cảm ơn saokim nhiều test thử cái
    Đăng lúc 2-2-2009 07:35 PM | Xem tất
    em cũng làm thử 1 phát xem sao
    Đăng lúc 2-2-2009 08:13 PM | Xem tất
    Text xong lỗi
    Parse error: syntax error, unexpected ';' in /home/a7944850/public_html/forum/index.php on line 61
  • 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

     Tác giả| Đăng lúc 2-2-2009 09:13 PM | Xem tất
    lỗi khi bạn edit file index.php
    tìm đến dòng 61  xem có
    thừa dấu ; thì xóa đi thử
  • 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

     Tác giả| Đăng lúc 2-2-2009 09:13 PM | Xem tất
    lỗi khi bạn edit file index.php
    tìm đến dòng 61  xem có
    thừa dấu ; thì xóa đi thử
    Đăng lúc 17-4-2009 01:42 AM | Xem tất
    lỗi khi bạn edit file index.php
    tìm đến dòng 61  xem có
    thừa dấu ; thì xóa đi thử
    Đăng lúc 24-4-2009 05:41 PM | Xem tất
    cái này đẹp thật, nhìn pro
    Đăng lúc 26-4-2009 06:01 AM | Xem tất
    lỗi khi bạn edit file index.php
    tìm đến dòng 61  xem có
    thừa dấu ; thì xóa đi thử
    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, 20-10-2026 02:32 AM , Processed in 0.034038 second(s), 23 queries .

    Powered by Discuz! X3.4

    © 2001-2013 Comsenz Inc.

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