게시판수정에서 dhtml사용글작성시 내용이 보이질 않아요. 정보
게시판수정에서 dhtml사용글작성시 내용이 보이질 않아요.본문
댓글 전체
해당 dhtml - 에디터 사용시엔 글 가져 올때 단순히 wr_content 로 가져 오면 목록에선 보이지 않습니다.
bbs/list.php 파일에서 get_list 부분을 찾으셔서 하단에
$html = 0;
if (strstr($list[$i][wr_option], "html1"))
$html = 1;
else if (strstr($list[$i][wr_option], "html2"))
$html = 2;
$list[$i][content] = conv_content($list[$i][wr_content], $html);
if (strstr($sfl, "content"))
$list[$i][content] = search_font($stx, $list[$i][content]);
이와 같은 코드가 되어 있는지 확인 해 보세요.
bbs/list.php 파일에서 get_list 부분을 찾으셔서 하단에
$html = 0;
if (strstr($list[$i][wr_option], "html1"))
$html = 1;
else if (strstr($list[$i][wr_option], "html2"))
$html = 2;
$list[$i][content] = conv_content($list[$i][wr_content], $html);
if (strstr($sfl, "content"))
$list[$i][content] = search_font($stx, $list[$i][content]);
이와 같은 코드가 되어 있는지 확인 해 보세요.
get_list 검색하니 두군데 나오는데 어디에다 넣어야하나요? 두군데 모두 위 적어주신 소스는 없네요. 그리고 소스 어디 바로 밑에 넣어야하는지두 부탁드려요.
if (!$sca && !$stx)
{
$arr_notice = explode("\n", trim($board[bo_notice]));
for ($k=0; $k<count($arr_notice); $k++)
{
if (trim($arr_notice[$k])=='') continue;
$row = sql_fetch(" select * from $write_table where wr_id = '$arr_notice[$k]' ");
if (!$row[wr_id]) continue;
$list[$i] = get_list($row, $board, $board_skin_path, $board[bo_subject_len]);
$list[$i][is_notice] = true;
$notice_order .= " and wr_id != '$arr_notice[$k]'"; //[2013-04-03] 추가
$i++;
}
}
------------------------------------------------------------------
// 검색일 경우 wr_id만 얻었으므로 다시 한행을 얻는다
if ($sca || $stx)
$row = sql_fetch(" select * from $write_table where wr_id = '$row[wr_parent]' ");
$list[$i] = get_list($row, $board, $board_skin_path, $board[bo_subject_len]);
if (strstr($sfl, "subject"))
$list[$i][subject] = search_font($stx, $list[$i][subject]);
$list[$i][is_notice] = false;
//$list[$i][num] = number_format($total_count - ($page - 1) * $board[bo_page_rows] - $k);
$list[$i][num] = $total_count - ($page - 1) * $board[bo_page_rows] - $k;
if (!$sca && !$stx)
{
$arr_notice = explode("\n", trim($board[bo_notice]));
for ($k=0; $k<count($arr_notice); $k++)
{
if (trim($arr_notice[$k])=='') continue;
$row = sql_fetch(" select * from $write_table where wr_id = '$arr_notice[$k]' ");
if (!$row[wr_id]) continue;
$list[$i] = get_list($row, $board, $board_skin_path, $board[bo_subject_len]);
$list[$i][is_notice] = true;
$notice_order .= " and wr_id != '$arr_notice[$k]'"; //[2013-04-03] 추가
$i++;
}
}
------------------------------------------------------------------
// 검색일 경우 wr_id만 얻었으므로 다시 한행을 얻는다
if ($sca || $stx)
$row = sql_fetch(" select * from $write_table where wr_id = '$row[wr_parent]' ");
$list[$i] = get_list($row, $board, $board_skin_path, $board[bo_subject_len]);
if (strstr($sfl, "subject"))
$list[$i][subject] = search_font($stx, $list[$i][subject]);
$list[$i][is_notice] = false;
//$list[$i][num] = number_format($total_count - ($page - 1) * $board[bo_page_rows] - $k);
$list[$i][num] = $total_count - ($page - 1) * $board[bo_page_rows] - $k;
2군데 모두 집어 넣어 주시면 됩니다. ^-^
1. $list[$i][is_notice] = true; 하단
2. $list[$i][num] = $total_count - ($page - 1) * $board[bo_page_rows] - $k; 하단
1. $list[$i][is_notice] = true; 하단
2. $list[$i][num] = $total_count - ($page - 1) * $board[bo_page_rows] - $k; 하단
아아... 넣었는데 해결이 안되네요 ㅠ.ㅠ
에구...... 답변 감사합니다.
에구...... 답변 감사합니다.
아직 해결 못하셨다면 쪽지로 메신저 알려 주시면 메신저를 통해 봐드리겠습니다.. 만 너무 늦은것 같네요 ㄷㄷ;
아니요!! 아니늦었어요.ㅠ.ㅠ
도와주세요. *** 개인정보보호를 위한 이메일주소 노출방지 *** 부탁드립니다. 감사합니다.
혹시라도 로그인이 안되어있다믄 elnyang23 카톡입니다.
도와주세요. *** 개인정보보호를 위한 이메일주소 노출방지 *** 부탁드립니다. 감사합니다.
혹시라도 로그인이 안되어있다믄 elnyang23 카톡입니다.