포인트와 경험치 랭킹 문의 드립니다
- - 짧은주소 : http://e3net.fineyes.com/bbs/?t=WD
본문

제가 이윰빌더를 사용중인데요 로그인을 하면 그누보드 포인트와 이윰빌더 경험치가 함께 나오는데요.
포인트와 경험치 두개중 하나만 있으면 될꺼 같아서요.
그래서 포인트를 없애고 경험치만 나오게 하려고 하는데요.
로그인창에 포인트를 안 보이게 하는것은 성공했습니다.
그런데 사이드레이아웃에 있는 랭킹 을 보니까 오늘포인트, 전체 포인트, 경험치가 나오는데요.
이 랭킹에서 전체 포인트는 없애면 될꺼 같은데요.
오늘 포인트를 오늘 경험치로 바꾸려면 어떻게 해야하나요?
제 생각에는 latest.class.php 에서 변경하면 될꺼 같은데요.
sql 쿼리문을 잘 모르겠네요. 혹시 아시는 분 중에서 도움을 주시면 감사하겠습니다.
잘 되다가 이 부분에서 안되니 답답하네요
// 회원 랭킹
public function latest_ranking($skin, $option, $type='') {
global $g5, $config, $tpl, $tpl_name, $eb;
$where = 1;
if(!$type) $opt = $this->get_option($option);
else {
$opt['count'] = $option;
$opt['type'] = $type;
}
switch($opt['type']) {
// 오늘의 포인트 랭킹
case "today_point":
$start = date("Ymd").'000000';
$end = date("Ymd").'595959';
$sql = "select mb_id, sum(po_point) as po_point from {$g5['point_table']} where po_point > 0 and mb_id <> '{$config['cf_admin']}' and (date_format(po_datetime, '%Y%m%d%H%i%s') between '{$start}' and '{$end}') group by mb_id order by sum(po_point) desc limit {$opt['count']}";
$res = sql_query($sql, false);
for($i=0; $row=sql_fetch_array($res); $i++) {
$mbinfo = sql_fetch("select a.level, b.* from {$g5['eyoom_member']} as a left join {$g5['member_table']} as b on a.mb_id=b.mb_id where b.mb_id='{$row['mb_id']}'",false);
$mbinfo['point'] = $row['po_point'];
$list[$i] = $mbinfo;
$level_info = $mbinfo['mb_level'].'|'.$mbinfo['level'];
$level = $eb->level_info($level_info);
$list[$i]['eyoom_icon'] = $level['eyoom_icon'];
$list[$i]['grade_icon'] = $level['grade_icon'];
}
break;
// 전체 포인트 랭키
case "total_point":
$result = sql_query("select a.level, b.* from {$g5['eyoom_member']} as a left join {$g5['member_table']} as b on a.mb_id=b.mb_id where b.mb_email_certify!='0000-00-00 00:00:00' and b.mb_level!='10' order by b.mb_point desc limit {$opt['count']}", false);
for ($i=0; $row=sql_fetch_array($result); $i++) {
$list[$i] = $row;
$list[$i]['point'] = $row['mb_point'];
$level_info = $row['mb_level'].'|'.$row['level'];
$level = $eb->level_info($level_info);
$list[$i]['eyoom_icon'] = $level['eyoom_icon'];
$list[$i]['grade_icon'] = $level['grade_icon'];
}
break;
// 레벨 랭킹
case "level_point":
$result = sql_query("select a.level,a.level_point,b.* from {$g5['eyoom_member']} as a left join {$g5['member_table']} as b on a.mb_id=b.mb_id where b.mb_email_certify!='0000-00-00 00:00:00' and b.mb_level!='10' order by a.level_point desc limit {$opt['count']}", false);
for ($i=0; $row=sql_fetch_array($result); $i++) {
$list[$i] = $row;
$list[$i]['point'] = $row['level_point'];
$level_info = $row['mb_level'].'|'.$row['level'];
$level = $eb->level_info($level_info);
$list[$i]['eyoom_icon'] = $level['eyoom_icon'];
$list[$i]['grade_icon'] = $level['grade_icon'];
}
break;
}
if(!$type){
$tpl->define_template("ranking",$skin,'ranking.skin.html');
$tpl->assign('list',$list);
$tpl->print_($tpl_name);
} else {
return $list;
}
}
댓글목록 4
이윰IN님의 댓글
- 아이디로 검색
2015.11.11 16:08신세계님 가급적이면 이윰빌더 프로그램 소스를 수정하지 않는 것이 좋습니다.
굳이 수정하지 않더라도 원하시는 기능을 쉽게 처리하실 수 있을 듯 보입니다.
/eyoom/theme/사용하시는테마/skin_bs/ranking/basic/rankset.skin.html 파일을 열어서요.
사용하지 않는 부분만 주석처리 하시면 될 것 같아요.
주석처리 예
축하합니다. 첫댓글 포인트 37포인트를 획득하였습니다.
신세계님의 댓글
- 아이디로 검색
2015.11.11 16:13주석 처리해서 없애는거는 할수 있을꺼 같은데요.
제가 원하는건 오늘포인트를 오늘경험치로 나오게 하고 싶습니다.
혹시 아신다면 도움을 주시면 감사하겠습니다.
이윰IN님의 댓글
- 아이디로 검색
2015.11.11 16:24오늘경험치는 별도로 경험치의 로그를 기록하지 않기 때문에
현재로서는 논리적으로 해당 기능을 구현할 수 없습니다.
도움을 드릴 수 없어 죄송한 마음입니다.
신세계님의 댓글
- 아이디로 검색
2015.11.11 16:51그렇군요~~ 안되는군요 ~~
아쉽지만 어쩔수 없죠 ~~
답변 감사합니다.