- เครดิต
- 1951
- เพื่อน
- ทักทาย
- บล็อก
- อัลบั้ม
- โพสต์
- กระทู้
- แชร์
- สำคัญ
- สิทธิ์อ่าน
- 50
- จำนวนผู้ติดตาม
- จำนวนผู้กำลังติดตาม
- เพศ
- ไม่บอก
|
เหมือนเดิมครับสำรองข้อมูลไฟล์ที่เกี่ยวข้องก่อน
Demo : http://www.bleach-xp.com/index.php
ผมออกตัวไว้ก่อนนะครับว่าไฟล์ที่ให้โหลดยังไม่ได้ทำการแปลเลยแต่ทดสอบแล้วใช้งานได้
Download : http://www.discuz.net/attachment.php?aid=180936
อัพโหลดไฟล์จากที่โหลดมา
Step : 1
Open include/cache.func.php view- 'medals' => array('medals'),
คัดลอกไปที่คลิปบอร์ด In its above plus- 'poststar' => array('daystar', 'yestodaystar','weekstar', 'monthstar', 'yearstar'),
คัดลอกไปที่คลิปบอร์ด view- case 'medals':
- $table = 'medals';
- $cols = 'medalid, name, image';
- $conditions = "WHERE available='1'";
- break;
คัดลอกไปที่คลิปบอร์ด In its above plus-
- //===============????BY 33201 ??
- case 'daystar':
- $month=date(n);
- $date=date(j);
- $year=date(Y);
- $time=mktime(0,0,0,$month,$date,$year);
- $table = 'posts p';
- $cols = 'count(p.pid) as num,p.author,p.authorid,m.uid,m.credits,m.posts,m.digestposts ,me.avatar,m.oltime,me.avatarwidth,me.avatarheight';
- $conditions = "left join {$tablepre}members m on p.authorid=m.uid left join {$tablepre}memberfields me on p.authorid=me.uid where p.dateline>$time group by p.authorid order by num desc limit 0,10";
- break;
- case 'yestodaystar':
- $month=date(n);
- $date=date(j);
- $year=date(Y);
- $time=mktime(0,0,0,$month,$date,$year);
- $ytime=mktime(0,0,0,$month,$date-1,$year);
- $table = 'posts p';
- $cols = 'count(p.pid) as num,p.author,p.authorid,m.uid,m.credits,m.posts,m.digestposts ,me.avatar,m.oltime,me.avatarwidth,me.avatarheight';
- $conditions = "left join {$tablepre}members m on p.authorid=m.uid left join cdb_memberfields me on p.authorid=me.uid where p.dateline<=$time and p.dateline>$ytime group by p.authorid order by num desc limit 0,10";
- break;
- case 'weekstar':
- $month=date(n);
- $date=date(j);
- $year=date(Y);
- $week=date(w);
- $time=mktime(0,0,0,$month,$date,$year);
- $weektime=mktime(0,0,0,$month,$date-$week,$year);
- $table = 'posts p';
- $cols = 'count(p.pid) as num,p.author,p.authorid,m.uid,m.credits,m.posts,m.digestposts ,me.avatar,m.oltime,me.avatarwidth,me.avatarheight';
- $conditions = "left join {$tablepre}members m on p.authorid=m.uid left join {$tablepre}memberfields me on p.authorid=me.uid where p.dateline>=$weektime group by p.authorid order by num desc limit 0,10";
- break;
- case 'monthstar':
- $month=date(n);
- $year=date(Y);
- $monthtime=mktime(0,0,0,$month,1,$year);
- $table = 'posts p';
- $cols = 'count(p.pid) as num,p.author,p.authorid,m.uid,m.credits,m.posts,m.digestposts ,me.avatar,m.oltime,me.avatarwidth,me.avatarheight';
- $conditions = "left join {$tablepre}members m on p.authorid=m.uid left join {$tablepre}memberfields me on p.authorid=me.uid where p.dateline>=$monthtime group by p.authorid order by num desc limit 0,10";
- break;
-
- case 'yearstar':
- $year=date(Y);
- $yeartime=mktime(0,0,0,1,1,$year);
- $table = 'posts p';
- $cols = 'count(p.pid) as num,p.author,p.authorid,m.uid,m.credits,m.posts,m.digestposts ,me.avatar,m.oltime,me.avatarwidth,me.avatarheight';
- $conditions = "left join {$tablepre}members m on p.authorid=m.uid left join {$tablepre}memberfields me on p.authorid=me.uid where p.dateline>=$yeartime group by p.authorid order by num desc limit 0,10";
- break;
- //===================????BY 33201 ??
คัดลอกไปที่คลิปบอร์ด view-
- case 'settings':
- while($setting = $db->fetch_array($query)) {
- if($setting['variable'] == 'extcredits') {
คัดลอกไปที่คลิปบอร์ด In its above plus-
- //===================????BY 33201 ??
- case 'daystar':
- while($toppost = $db->fetch_array($query)) {
- $toppost['author'] = $toppost['author'] ? $toppost['author'] : '??';
- $toppost['authorid'] = $toppost['authorid'] ? $toppost['authorid'] : '??';
- $toppost['avatar'] = $toppost['avatar'] ? $toppost['avatar'] : 'images/nopic.gif';
- $toppost['avatarwidth'] = $toppost['avatarwidth'] ? $toppost['avatarwidth'] : '80';
- $toppost['avatarheight'] = $toppost['avatarheight'] ? $toppost['avatarheight'] : '80';
- $data[] = $toppost;
- }
- break;
- case 'yestodaystar':
- while($toppost = $db->fetch_array($query)) {
- $toppost['author'] = $toppost['author'] ? $toppost['author'] : '??';
- $toppost['authorid'] = $toppost['authorid'] ? $toppost['authorid'] : '??';
- $toppost['avatar'] = $toppost['avatar'] ? $toppost['avatar'] : 'images/nopic.gif';
- $toppost['avatarwidth'] = $toppost['avatarwidth'] ? $toppost['avatarwidth'] : '80';
- $toppost['avatarheight'] = $toppost['avatarheight'] ? $toppost['avatarheight'] : '80';
- $data[] = $toppost;
- }
- break;
- case 'weekstar':
- while($toppost = $db->fetch_array($query)) {
- $toppost['author'] = $toppost['author'] ? $toppost['author'] : '??';
- $toppost['authorid'] = $toppost['authorid'] ? $toppost['authorid'] : '??';
- $toppost['avatar'] = $toppost['avatar'] ? $toppost['avatar'] : 'images/nopic.gif';
- $toppost['avatarwidth'] = $toppost['avatarwidth'] ? $toppost['avatarwidth'] : '80';
- $toppost['avatarheight'] = $toppost['avatarheight'] ? $toppost['avatarheight'] : '80';
- $data[] = $toppost;
- }
- break;
- case 'monthstar':
- while($toppost = $db->fetch_array($query)) {
- $toppost['author'] = $toppost['author'] ? $toppost['author'] : '??';
- $toppost['authorid'] = $toppost['authorid'] ? $toppost['authorid'] : '??';
- $toppost['avatar'] = $toppost['avatar'] ? $toppost['avatar'] : 'images/nopic.gif';
- $toppost['avatarwidth'] = $toppost['avatarwidth'] ? $toppost['avatarwidth'] : '80';
- $toppost['avatarheight'] = $toppost['avatarheight'] ? $toppost['avatarheight'] : '80';
- $data[] = $toppost;
- }
- break;
- case 'yearstar':
- while($toppost = $db->fetch_array($query)) {
- $toppost['author'] = $toppost['author'] ? $toppost['author'] : '??';
- $toppost['authorid'] = $toppost['authorid'] ? $toppost['authorid'] : '??';
- $toppost['avatar'] = $toppost['avatar'] ? $toppost['avatar'] : 'images/nopic.gif';
- $toppost['avatarwidth'] = $toppost['avatarwidth'] ? $toppost['avatarwidth'] : '80';
- $toppost['avatarheight'] = $toppost['avatarheight'] ? $toppost['avatarheight'] : '80';
- $data[] = $toppost;
- }
- break;
- //=====================????BY 33201 ??
คัดลอกไปที่คลิปบอร์ด Step 2 : Edit documents include / newthread.inc.php view-
- updatepostcredits('+', $discuz_uid, $postcredits);
คัดลอกไปที่คลิปบอร์ด Below increase in its-
- require_once DISCUZ_ROOT.'./include/cache.func.php';
- updatecache('daystar');
คัดลอกไปที่คลิปบอร์ด Step 3 : Edit documents include / newreply.inc.php view-
- updatepostcredits('+', $discuz_uid, $replycredits);
คัดลอกไปที่คลิปบอร์ด Below increase in its-
- require_once DISCUZ_ROOT.'./include/cache.func.php';
- updatecache('daystar');
คัดลอกไปที่คลิปบอร์ด Step 4 : Edit documents topicadmin.php view-
- showmessage((isset($resultarray['message']) ? $resultarray['message'] : 'admin_succeed'), $resultarray['redirect']);
คัดลอกไปที่คลิปบอร์ด In its above plus-
- require_once DISCUZ_ROOT.'./include/cache.func.php';
- updatecache('daystar');
คัดลอกไปที่คลิปบอร์ด Step 5 : Edit documents index.php view-
- require_once DISCUZ_ROOT.'./include/forum.func.php';
คัดลอกไปที่คลิปบอร์ด Below added:-
- require_once DISCUZ_ROOT.'./forumdata/cache/cache_poststar.php';
- $month=date(n);
- $year=date(Y);
คัดลอกไปที่คลิปบอร์ด view-
- unset($_DCACHE['announcements']);
คัดลอกไปที่คลิปบอร์ด Below added:-
- //========== ????BY 33201 ??
- $nopoststar ='<td width=17%>???<font color=red><b> ????!</b></font>
- UID ?<b>?</b>
- ????
- ????
- ??????
- ??????
- ??????
- </td><td width=16% align=center class=altbg1><img src=images/nopic.gif width=80 height=80 align=center></td>';
- if($_DCACHE['daystar']) {
- foreach($_DCACHE['daystar'] as $key => $dstar) {
- if ($key<3){
- $daystars .="<td width=17%>???<b>".$dstar[author]."</b>
- UID ?<b>".$dstar[authorid]."</b>
- ???".$dstar[credits]."
- ???".$dstar[digestposts]." ?
- <font color=red><b>??</b></font>???<font color=red><b>".$dstar[num]."</b></font> ?
- ?????".$dstar[posts]." ?
- ?????".$dstar[oltime]." ??
- </td><td width=16% align=center class=altbg1><img src=".$dstar[avatar]." width=".$dstar[avatarwidth]." height=".$dstar[avatarheight]." align=center></td>";$n=$key;
- }
- }
- if($n==0){$nostar .=$nopoststar.$nopoststar;}elseif($n==1){$nostar .=$nopoststar;}
- }
- if($_DCACHE['weekstar']) {
- foreach($_DCACHE['weekstar'] as $key => $wstar) {
- if ($key<3){
- $weekstars .="<td width=17%>???<b>".$wstar[author]."</b>
- UID ?<b>".$wstar[authorid]."</b>
- ???".$wstar[credits]."
- ???".$wstar[digestposts]." ?
- <font color=red><b>??</b></font>???<font color=red><b>".$wstar[num]."</b></font> ?
- ?????".$wstar[posts]." ?
- ?????".$wstar[oltime]." ??
- </td><td width=16% align=center class=altbg1><img src=".$wstar[avatar]." width=".$wstar[avatarwidth]." height=".$wstar[avatarheight]." align=center></td>";$weeknum=$key;
- }
- }
- if($weeknum==0){$noweekstar .=$nopoststar.$nopoststar;}elseif($weeknum==1){$noweekstar .=$nopoststar;}
- }
- if($_DCACHE['monthstar']) {
- foreach($_DCACHE['monthstar'] as $key => $mstar) {
- if ($key<3){
- $monthstars .="<td width=17%>???<b>".$mstar[author]."</b>
- UID ?<b>".$mstar[authorid]."</b>
- ???".$mstar[credits]."
- ???".$mstar[digestposts]." ?
- <font color=red><b>".$month."?</b></font>???<font color=red><b>".$mstar[num]."</b></font> ?
- ?????".$mstar[posts]." ?
- ?????".$mstar[oltime]." ??
- </td><td width=16% align=center class=altbg1><img src=".$mstar[avatar]." width=".$mstar[avatarwidth]." height=".$mstar[avatarheight]." align=center></td>";
- }
- }
- }
- if($_DCACHE['yearstar']) {
- foreach($_DCACHE['yearstar'] as $key => $ystar) {
- if ($key<3){
- $yearstars .="<td width=17%>???<b>".$ystar[author]."</b>
- UID ?<b>".$ystar[authorid]."</b>
- ???".$ystar[credits]."
- ???".$ystar[digestposts]." ?
- <font color=red><b>".$year."?</b></font>???<font color=red><b>".$ystar[num]."</b></font> ?
- ?????".$ystar[posts]." ?
- ?????".$ystar[oltime]." ??
- </td><td width=16% align=center class=altbg1><img src=".$ystar[avatar]." width=".$ystar[avatarwidth]." height=".$ystar[avatarheight]." align=center></td>";
- }
- }
- }
- //==========????BY 33201 ??
คัดลอกไปที่คลิปบอร์ด Step 6 : Edit templates discuz.htm view- <!--{if $_DCACHE['forumlinks']}-->
คัดลอกไปที่คลิปบอร์ด In the above plus:ไฟล์ templatse ที่อัพโหลดอย่าลืม CHMOD 777 ตามด้วยอัพเดทแคชนะครับ
[ แก้ไขล่าสุด buachompoox เมื่อ 2007-12-31 01:43 ] |
ขออภัย! โพสต์นี้มีไฟล์แนบหรือรูปภาพที่ไม่ได้รับอนุญาตให้คุณเข้าถึง
คุณจำเป็นต้อง ลงชื่อเข้าใช้ เพื่อดาวน์โหลดหรือดูไฟล์แนบนี้ คุณยังไม่มีบัญชีใช่ไหม? สมัครสมาชิก
x
|