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

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

[Plugin Discuz] Plugin Discuz! New Toplist for 7.0 3 in 1

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

    Đăng lúc 5-1-2009 11:56 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 này chưa test. Chỉ dịch qua nên có thể chưa chuẩn, ai test ok báo lại cho mình nhé
    demo.JPG
    Download New Top List
    Toplist này tích hợp luôn shoutbox 2.3 by natz thành 1 tab của nó
    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. //The new paste

    4. $hack_cut_str = 50; //The number of words in the title

    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,
    9. {$tablepre}forums f WHERE t.fid<>'$fid' AND f.fid=t.fid AND f.fid
    10. not in (0) AND t.displayorder not in (-1,-2) ORDER BY t.dateline DESC
    11. LIMIT 0, 10";

    12. while($nthread = $db->fetch_array($query)) {

    13. $nthread['forumname'] = ereg_replace('<[^>]*>','',$nthread['name']);

    14. $nthread['view_subject'] = cutstr($nthread['subject'],$hack_cut_str);

    15. $nthread['view_author'] = cutstr($nthread['author'],$hack_cut_strauthor);

    16. $nthread['date']= gmdate("$dateformat $timeformat", $nthread['dateline'] + $timeoffset * 3600);

    17. $nthread['lastreplytime']= gmdate("$dateformat $timeformat", $nthread[lastpost] + ($timeoffset * 3600));

    18. if($nthread['highlight']) {

    19. $string = sprintf('%02d', $nthread['highlight']);

    20. $stylestr = sprintf('%03b', $string[0]);

    21. $nthread['highlight'] = 'style="';

    22. $nthread['highlight'] .= $stylestr[0] ? 'font-weight: bold;' : '';

    23. $nthread['highlight'] .= $stylestr[1] ? 'font-style: italic;' : '';

    24. $nthread['highlight'] .= $stylestr[2] ? 'text-decoration: underline;' : '';

    25. $nthread['highlight'] .= $string[1] ? 'color: '.$colorarray[$string[1]] : '';

    26. $nthread['highlight'] .= '"';

    27. } else {

    28. $nthread['highlight'] = '';

    29. }

    30. $new_post_threadlist[] = $nthread;

    31. }

    32. //New Reply

    33. $hack_cut_str = 50; //The number of words in the title

    34. $hack_cut_strauthor = 9;

    35. $new_reply_threadlist = array();

    36. $rthread = array();

    37. $query = $db->query("SELECT t.*, f.name FROM {$tablepre}threads t,
    38. {$tablepre}forums f WHERE t.fid<>'$fid' AND f.fid=t.fid AND
    39. t.closed NOT LIKE 'moved|%' AND t.replies !=0 AND f.fid not in (0) AND
    40. t.displayorder not in (-1,-2) ORDER BY t.lastpost DESC LIMIT 0, 10";

    41. while($rthread = $db->fetch_array($query)) {

    42. $rthread['forumname'] = ereg_replace('<[^>]*>','',$rthread['name']);

    43. $rthread['view_subject'] = cutstr($rthread['subject'],$hack_cut_str);

    44. $rthread['view_lastposter'] = cutstr($rthread['lastposter'],$hack_cut_strauthor);

    45. $rthread['date']= gmdate("$dateformat $timeformat", $rthread['dateline'] + $timeoffset * 3600);

    46. $rthread['lastreplytime']= gmdate("$dateformat $timeformat", $rthread[lastpost] + ($timeoffset * 3600));

    47. if($rthread['highlight']) {

    48. $string = sprintf('%02d', $rthread['highlight']);

    49. $stylestr = sprintf('%03b', $string[0]);

    50. $rthread['highlight'] = 'style="';

    51. $rthread['highlight'] .= $stylestr[0] ? 'font-weight: bold;' : '';

    52. $rthread['highlight'] .= $stylestr[1] ? 'font-style: italic;' : '';

    53. $rthread['highlight'] .= $stylestr[2] ? 'text-decoration: underline;' : '';

    54. $rthread['highlight'] .= $string[1] ? 'color: '.$colorarray[$string[1]] : '';

    55. $rthread['highlight'] .= '"';

    56. } else {

    57. $rthread['highlight'] = '';

    58. }

    59. $new_reply_threadlist[] = $rthread;

    60. }

    61. //Heat Tie

    62. $hack_cut_str = 50; //The number of words in the title

    63. $hack_cut_strauthor = 9;

    64. $new_hot_threadlist = array();

    65. $mthread = array();

    66. $ctime=$timestamp-3600*24*7;//7 is the last number of days for this week

    67. $query = $db->query("SELECT t.*, f.name FROM {$tablepre}threads t,
    68. {$tablepre}forums f WHERE t.fid<>'$fid' AND f.fid=t.fid AND
    69. t.closed NOT LIKE 'moved|%' AND t.replies !=0 AND t.dateline>$ctime
    70. AND f.fid not in (0) AND t.displayorder not in (-1,-2) ORDER BY
    71. t.replies DESC LIMIT 0, 10";

    72. while($mthread = $db->fetch_array($query)) {

    73. $mthread['forumname'] = ereg_replace('<[^>]*>','',$mthread['name']);

    74. $mthread['view_subject'] = cutstr($mthread['subject'],$hack_cut_str);

    75. $mthread['view_lastposter'] = cutstr($mthread['lastposter'],$hack_cut_strauthor);

    76. $mthread['date']= gmdate("$dateformat $timeformat", $mthread['dateline'] + $timeoffset * 3600);

    77. $mthread['lastreplytime']= gmdate("$dateformat $timeformat", $mthread[lastpost] + ($timeoffset * 3600));

    78. if($mthread['highlight']) {

    79. $string = sprintf('%02d', $mthread['highlight']);

    80. $stylestr = sprintf('%03b', $string[0]);

    81. $mthread['highlight'] = 'style="';

    82. $mthread['highlight'] .= $stylestr[0] ? 'font-weight: bold;' : '';

    83. $mthread['highlight'] .= $stylestr[1] ? 'font-style: italic;' : '';

    84. $mthread['highlight'] .= $stylestr[2] ? 'text-decoration: underline;' : '';

    85. $mthread['highlight'] .= $string[1] ? 'color: '.$colorarray[$string[1]] : '';

    86. $mthread['highlight'] .= '"';

    87. } else {

    88. $mthread['highlight'] = '';

    89. }

    90. $new_hot_threadlist[] = $mthread;

    91. }

    92. //Today ranking post

    93. $tomonth=date(n);

    94. $todate=date(j);

    95. $toyear=date(Y);

    96. $time=mktime(0,0,0,$tomonth,$todate,$toyear);

    97. $query=$db->query("select count(pid) as num,authorid,author from
    98. $tablepre"."posts where dateline>=$time group by authorid order by
    99. num desc limit 0,10";

    100. while($result=$db->fetch_array($query)){

    101. $poststar.="<a
    102. href=space.php?uid=".$result[authorid].">".cutstr($result[author],8)."</a><font
    103. color=red>[".$result[num]."]</font>";

    104. }

    105. //----Toplist
    Sao chép mã
    Tìm tiếp
    include template('discuz');
    Thêm dưới
    eval($hooks['natz_shoutbox_include_settings']);

    Mở discuz.htm 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
    {template toplist}

    Chạy shoutbox_install.php  rồi xóa đi
    Nếu cài shoutbox rồi thì ko cần làm bước cuối

    traitimyenbai.net toplist.rar

    2.26 KB, Lượt tải về: 68

    Việt hóa

    Cảm ơn

    Số người tham gia 2Danh vọng +2 Tiền +2 Thu lại Lý do
    tuananhqp + 2
    veryjust + 2

    Xem tất cả

    Đăng lúc 5-1-2009 06:30 PM | Xem tất
    Nhìn ngon quá , cảm ơn đã share
    Đăng lúc 5-1-2009 07:29 PM | Xem tất
    đã edit lại cách cài đặt chuẩn.
    ai cài toplist và shoutbox thì gỡ trong các file ra rồi làm nhe
    Đăng lúc 5-1-2009 08:33 PM | Xem tất
    hic, cảm ơn đội ngủ quản trị, mình định hỏi đoạn này trong bài lúc chiều
    1. ค้นหา
    2. include template('discuz');
    3. เพิ่มเพิ่มโค๊ดนี้ไว้ด้านบนด้านบน
    4. eval($hooks['natz_shoutbox_include_settings']);
    Sao chép mã

    bây giờ thì tuyệt rùi
  • 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 5-1-2009 08:44 PM | Xem tất
    còn dịch lại nữa
    ttyb dịch cơ bản xong rồi
    nhưng phần Top Week nó để link sang seo .html
    nên đang sửa lại cho đúng
    Bản shoutbox này đã thêm nút Smile... sửa 1 chút cho với bản gốc
    Đăng lúc 5-1-2009 09:29 PM | Xem tất
    hic, sao mà làm bở làm lại mà vẫn ko được nhỉ. cứ cài xong là teo luôn cái forum
    Đăng lúc 5-1-2009 09:43 PM | Xem tất
    Mình làm ko được, các bước mình làm như sau, các bạn chỉ chỗ sai cho mình với nha:
    + copy các file vào thư mục tương ứng như sau:
          - toplist và focus vào Images
          - javascript vào include
          - natz_shoutbox vào plugin
          - toplist vào temple/default
          - pic và shoutbox_install.php vào root
    + chỉnh sửa file index.php và discuz.html y hệt như WindBowS hướng dẫn.
    --------> kết quả vẫn ko được, chỉ có độc một chữ như tiếng phạn trên màn hình trắng khi mình gõ http://localhost/forum/shoutbox_install.php    (mình đang làm local )
  • 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 5-1-2009 09:47 PM | Xem tất
    đây là file index và discuz.htmllàm ở local chạy btthử chép đè vào xem đc ko

    Desktop.rar

    7.82 KB, Lượt tải về: 48

    Đăng lúc 5-1-2009 09:51 PM | Xem tất
    thanks Kim, tận tình quá, sau này chắc 1 mình một vợ
    để mình thử xem sao
    Đăng lúc 9-1-2009 11:52 AM | Xem tất
    非常感谢您提交此文件中的网页我国防部好多了:D
    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, 21-10-2026 03:14 AM , Processed in 0.047254 second(s), 26 queries .

    Powered by Discuz! X3.4

    © 2001-2013 Comsenz Inc.

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