최신글 목록에 카테고리의 그룹명필드를 추가하고 싶습니다. 채택완료
최신글 목록을 다음과 같은 형태로에 카테고리의 그룹명필드를 추가하고 싶습니다.
아래와 같은 latest.skin.php 본문내용을 어떻게 수정하면 되는지 고수님들의 도움 부탁드립니다.

본문소스
-----------------------------------------------------------------------------------------------------
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once(G5_LIB_PATH.'/thumbnail.lib.php');
//include_once('latest_group.lib.php');
$set_value = explode("/","165/105/2");
$thumb_width = $set_value[0]; //썸네일 가로 크기
$thumb_height = $set_value[1]; //썸네일 세로 크기
$latest_width = "500"; //탭메뉴 폭과 같게
?>
function openWindow(link,w,h)
{
window.open(link,'mov','width='+w+',height='+h+',left=0,top=0');
}
function fileDown(link)
{
document.location.href = link;
}
.la_he { font-family:굴림; font-size:9pt; color:#636363;}
.gal1_new2 {z-index:5;position:absolute;top:0;margin:42px 0 0px 5px;left:0;width:27px;height:10px;background:url(=$latest_skin_url?>/img/icon_new1.gif) no-repeat 3px 3px;overflow:hidden}
.latest {padding:3px 5px 5px 0}
if ($list[$i]['icon_new']) { ?> } ?> =$list['0']['subject'] ?>
| for ($i=0; $i echo " $subject = "
//그룹명 추가 echo "".$list[$i]['ca_name']."";
$subject .= "".cut_str($list[$i][subject],30).""; //제목 글자수 자르기 if ($list[$i]['icon_new']) { ?> }
preg_match_all('#sca=(.*)#',$list[$i]['ca_name_href'],$sca); $sca = urldecode($sca[0][0]);
echo "{$subject}{$list[$i][ca_name]}"; echo ""; echo ""; ?>
} ?> | |
| 게시물이 없습니다. | ||
-----------------------------------------------------------------------------------------------------
답변 3개
스킨 상단에 추가하면 됩니다
$rowk= sql_fetch("select gr_subject from $g5[group_table] where gr_id='$board[gr_id]'");
출력할 곳에서
echo $rowk[gr_subject];
답변에 대한 댓글 1개
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인
말씀해주신 방법으로 해보니가 대표 큰 카데고리는 추출되는 것 같습니다.