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
Download:
Khách: Nội dung này bị ẩn, bạn cần bấm Thank để xem.
Mở index.php tìm- $newthreads = round(($timestamp - $lastvisit + 600) / 1000) * 1000;
Sao chép mã thêm dưới- //----Toplist
- $colorarray = array('', 'red', 'orange', 'yellow', 'green', 'cyan', 'blue', 'purple', 'gray');
- //โพสใหม่
- $hack_cut_str = 28; //ความยาวของหัวข้อ
- $hack_cut_strauthor = 9;
- $new_post_threadlist = array();
- $nthread = array();
- $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";
- while($nthread = $db->fetch_array($query)) {
- $nthread['forumname'] = ereg_replace('<[^>]*>','',$nthread['name']);
- $nthread['view_subject'] = cutstr($nthread['subject'],$hack_cut_str);
- $nthread['view_author'] = cutstr($nthread['author'],$hack_cut_strauthor);
- $nthread['date']= gmdate("$dateformat $timeformat", $nthread['dateline'] + $timeoffset * 3600);
- $nthread['lastreplytime']= gmdate("$dateformat $timeformat", $nthread[lastpost] + ($timeoffset * 3600));
- if($nthread['highlight']) {
- $string = sprintf('%02d', $nthread['highlight']);
- $stylestr = sprintf('%03b', $string[0]);
- $nthread['highlight'] = 'style="';
- $nthread['highlight'] .= $stylestr[0] ? 'font-weight: bold;' : '';
- $nthread['highlight'] .= $stylestr[1] ? 'font-style: italic;' : '';
- $nthread['highlight'] .= $stylestr[2] ? 'text-decoration: underline;' : '';
- $nthread['highlight'] .= $string[1] ? 'color: '.$colorarray[$string[1]] : '';
- $nthread['highlight'] .= '"';
- } else {
- $nthread['highlight'] = '';
- }
- $new_post_threadlist[] = $nthread;
- }
- //
- $tomonth=date(n);
- $todate=date(j);
- $toyear=date(Y);
- $time=mktime(0,0,0,$tomonth,$todate,$toyear);
- $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";
- while($result=$db->fetch_array($query)){
- $poststar.="<ahref=space.php?uid=".$result[authorid].">".cutstr($result[author],8)."</a><fontcolor=red>[".$result[num]."]</font> ";
- }
- //----Toplist
Sao chép mã Mở discuz.html tìm- function announcementScrollnext(time) {
- $('annbody').scrollTop++;
- anncount++;
- if(anncount != time) {
- annst = setTimeout('announcementScrollnext(' + time + ')', 10);
- } else {
- annrowcount++;
- annst = setTimeout('announcementScroll()', anndelay);
- }
- }
- </script>
- <!--{/if}-->
- </div>
Sao chép mã thêm dướiLư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
-
Xem tất cả
|