g4 - g5 게시판변경 질문입니다.
아장지니
11년 전
조회 5,197
http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=76291&sca=&sfl=wr_subject%7C%7Cwr_content&stx=%EA%B3%B5%EB%8F%99%EA%B5%AC%EB%A7%A4">http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=76291&sca=&sfl=wr_subject%7C%7Cwr_content&stx=%EA%B3%B5%EB%8F%99%EA%B5%AC%EB%A7%A4
현재 위링크에 있는 공동구매 게시판을 g5로 변경/이용하려고 노력중인 1人입니다.
어찌어찌 매달리다보니 게신판등록과 리스트화면 코멘트부분과 구매신청까지 잘 작동하는데
코멘트앞에 회원사진을 넣고싶은 욕심이....생겨버렸습니다.
이리저리 찾아보고 짱구를 굴려봐도 되질 않아버렸어요!!
번거로우시겠지만 능력자분들 소스좀 봐주십쇼 !! 굽!신!굽!신!
***** view_comment.skin.php Start *****
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("$board_skin_path/ext_lib.php");
/* 주문신청 필드정의
wr_1 연락처
wr_2 수령지
wr_3 수령인
wr_4 품목
wr_5 수량
wr_6 입금
wr_7 주문승인
wr_8 송장번호
wr_9 배송날짜
wr_10 순번
주의:
/bbs/view_comment.php 17라인 근처에서 $sql 문에 {$g5['comment_filter']} 추가할것
수정전: $sql = " select * from $write_table where wr_parent = '$wr_id' and wr_is_comment = 1 order by wr_comment, wr_comment_reply ";
수정후: $sql = " select * from $write_table where {$g5['comment_list_filter']} wr_parent = '$wr_id' and wr_is_comment = 1 order by wr_comment, wr_comment_reply ";
*/
$row=sql_fetch("select count(*) as cnt ,sum(wr_5) as sum,max(wr_datetime) as wr_datetime from $write_table where wr_parent = '$wr_id' and wr_is_comment = 1 and wr_5>'0' and wr_comment_reply=''");
$g5[gonggu_admin]=is_gonggu_admin($view);//등록자이면 공구관리자로 임명
?>
신청/접수
총신청자 :=$row[cnt]?> 명 =number_format($row[sum])?> 개
최종주문:=substr($row[wr_datetime],2,14)?>
for ($i=0; $i
} ?>
if ($is_comment_write) { ?>
if ($edit_comment_id) {
$comment=sql_fetch("select * from $write_table where wr_parent = '$wr_id' and wr_id='$edit_comment_id' limit 1");
//var_dump($comment);
}
?>
구매신청
=$_REQUEST[edit_comment_id]?" 정보수정":""?>
if (!strstr($view[ca_name],"진행중")) { ?>
현재 =$view[ca_name]?> 상태입니다.
} else { ?>
현재 =$view[ca_name]?>
} ?>
(주문자정보는 공구등록자,관리자에게만 공개됩니다.)
$temp_member=get_member($member[mb_id]);
?>
| 주문자정보: | =$comment[mb_id]?> 일시:=substr($comment[wr_datetime],2,14)?> IP:=$comment[wr_ip]?> | ||||
| 주문승인: |
순번:
처리:
송장:
배송:
|
||||
| 연락처 | |||||
| 수령지 | |||||
| 수령인 | |||||
| 선택항목 | =gongu_select_box("wr_4",$aoption,$comment[wr_4])?> 주문수량: | ||||
| 입금예정 | (입금은행,입금금액) | ||||
| |||||
} ?>
댓글을 작성하려면 로그인이 필요합니다.
답변 1개
11년 전
로그인과 그누보드 view_comment.skin.php 를 뒤적뒤적하다
이것저것 갖다붙치기를 반복...
//회원사진출력
$mb_dir2 = "$comment_mb_id";
$icon_file2 = "../data/mb_photo/{$list[$i][mb_id]}";
if (file_exists($icon_file2)) {
echo "
";
}else{
echo "
";
}
?>
";
}
?>원하는 위치에 넣으니 출력됩니다.
일단 출력은 되지만 초짜이다보니 맞는지 안맞는지 모르겠어요 ㅠ
해결을 하셨거나 틀린부분이 있다면 우리 공유해요~!!!
로그인 후 평가할 수 있습니다
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인

