그룹 이름 나타나게 하고 싶은데요.. 도와주세요.. > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

그룹 이름 나타나게 하고 싶은데요.. 도와주세요.. 정보

그룹 이름 나타나게 하고 싶은데요.. 도와주세요..

본문

아래소스에는  게시판이름. 게시글내용... 게시글 제목만 나오자나요..
해당 게시판이 속한 그룹의 이름을 나타나게 하고 싶은데요..
좀 도와주세요..


<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<?
$pr_max = count($list);  // 출력 데이터 배열 길이
?>
<table width=100% border=0 cellspacing=0 cellpadding=0>                             
<!-- 기사 시작 -->
<? for ($i=0; $i<$pr_max; $i++) { ?>
<?
// link1 에 자료가 없으면
if ($list[$i]['wr_link1']==''){
$goto_path =  $list[$i]['href'] ;
}else{
$goto_path = $list[$i]['link_href'][1] ;
}

//==========================================================
// 수정 오전 12:58 2008년 5월 8일 목요일 by lee
// 오전 12:07 2008-02-14 by lee
// 내용 출력 을 위해
$data =  $list[$i]['wr_content'] ;
$title =  $list[$i]['bo_subject'] ; 
$file = '';
// 오전 12:39 2008년 5월 8일 목요일
        if ($list[$i][file][1][file]) { //두번째 파일이 이미지라면
            $file = $list[$i][file][1][path] .'/'. $list[$i][file][1][file];
}else if ($list[$i][file][0][file]) { //첫번째 파일이 이미지라면
            $file = $list[$i][file][0][path] .'/'. $list[$i][file][0][file];
}
if (preg_match("/\.(jp[e]?g|gif|png|btm)$/i", $file) && file_exists($file)) {
// echo $file ;
$img_path = $file ;
}else{
// 내용에서 섬네일 이미지 주소 얻기

// 이미지 주소 찾기
preg_match('/img.*?src=(.*?) /i', $data, $aaa);
$img_path = $aaa[1]; // 그림 주소
// 필요없는 문자 삭제
$del_str_arr = array('"', "'");
$img_path = str_replace($del_str_arr, "", $img_path);
$img_path = trim($img_path);
}

$subj_len = $z2[width] ? $z2[width] : 35 ; // 링크 제목 길이
$data_len = $z2[data_width] ? $z2[data_width] : 300 ;  // 출력용 데이터

$del_str_arr = array("===", "---");
$data = str_replace($del_str_arr, "", $data);

$subj = cut_str(trim(strip_tags($list[$i]['subject'])),$subj_len,'..');  // 링크 제목 길이
$data = cut_str(trim(strip_tags($data)),$data_len,'...'); // 출력용 데이터
//==========================================================
?>
<? /* 목록 시작 */ ?>
<tr><td>
<p style="margin-bottom:5px;"><A title="<?=$subj?>" href="<?=$goto_path ?>"><span style='font-weight:bold;font-size:16pt;color:#fc7224;'><?=$subj?></span></A></p></td></tr>
<tr><td>
<!-- 이미지 -->

<? if (eregi('jpg|png|gif|bmp', $img_path)) { ?>

<A title="<?=$subj?>" href="<?=$goto_path ?>" target=_blank>
<IMG height=82 alt="<?=$subj?>" onerror="this.src='<?=$latest_skin_path?>/icon_q.jpg'" src="<?=$img_path?>" width=82 align=left  border=4>
</A>

<? } ?>
<!-- 내용 -->
<P style="line-height:20px;"><A title="<?=$subj?>" href="<?=$goto_path ?>"><?=$data?></a></P>
</td>
</tr>
<tr>
<td>
<font size=3><b>                         
<a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><?=$title?></a>
</font></b>
<? /* 목록 종료 */ ?>                                               
</td>
</tr>
<? } ?>       
<!-- 기사 끝 -->                       
<? if ($pr_max == 0) { ?>
<tr><td>
 자료가 없습니다.
</td></tr>
<? } ?>
</table>

댓글 전체

전체 66,554 |RSS
그누4 질문답변 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1402호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT