최신글 불러오기 질문있습니다.. > 그누4 질문답변

그누4 질문답변

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

최신글 불러오기 질문있습니다.. 정보

최신글 불러오기 질문있습니다..

본문

글 제목까지는 불러오기 했는데요

내용을 불러와야하는데 한 50글자정도 불러오면 되는데 어떻게 해야할지 모르겠네요

인덱스에서 해야할지
<? echo latest("basic2", "board_07", 3, 70);    ?> 여기 밑에다 명령어를 넣어야할지


우선  latest.skin.php 파일 여기다 해야할지 모르겠네요..

<table align="center" cellpadding="0" cellspacing="0" width="90%">
<tr>
<td width="3" ></td>
<td >
<!--타이틀 시작: 실선 색상을 바꾸려면 215, 215, 215를 고치세요.-->
<table align="center" cellpadding="0" cellspacing="0" width="100%" border="0">
<tr height="30">
<td class=m_tit><h2><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><?=$board[bo_subject]?></a></h2></td>
<td align=right style="padding:0 5 0 0"><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><img src="<?=$latest_skin_path?>/img/btn_more.gif" border="0"></a></td>
</tr>
</table>
<!--타이틀 끝-->
</td>
<td width="3" ></td>
</tr>
<tr height="1"><td width="3" ></td><td></td><td width="3" background="<?=$latest_skin_path?>/img/latest_m_2.gif"></td>
<tr>
<td width="3" ></td>
<td>
<table align="center" cellpadding="0" cellspacing="0" width="100%" border="0">
<? for ($i=0; $i<count($list); $i++) {?>
<tr>
<!--게시물 아래 점선 색상을 바꾸고 싶으시면 211,211,211부분을, 게시물 추출부분 세로 길이를 늘리시려면 25을 수정하세요-->
<td width="100%" height="18" valign=middle style="border-bottom-width:0px; border-bottom-color:rgb(211,211,211); border-bottom-style:dotted;">

<?
//날짜표시
$subject = $list[$i][subject];
$b_subject = "<strong>".$list[$i][subject]."<strong>";
?>
<table align="center" cellpadding="0" cellspacing="0" width="100%" height="100%" border="0">
<tr>
<td style="padding:0 5 0 10" width=2><img src="<?=$latest_skin_path?>/img/board_icon.gif" align=absmiddle></td>
<td>                       
<a href='<?=$list[$i][href]?>'><span class="th8"><?if ($list[$i][is_notice])
echo $b_subject;
else
echo $subject;
?></span></a>
<span style="font-size:7pt;font-family:tahoma;color:#EE5A00;vertical-align:1px;"><?=$list[$i][comment_cnt]?> <?

echo " " . $list[$i][icon_new];
//echo " " . $list[$i][icon_hot];
//echo " " . $list[$i][icon_file];
//echo " " . $list[$i][icon_link];
//echo " " . $list[$i][icon_secret];

?>
</span>
</td>
<!--
<td width=100 align=center><?=$list[$i][datetime]?></td>
-->
<!--
<td width=80 align=center><?=$list[$i][name]?></td>
-->
</tr>
</table>
<!--게시물 추출 글자 설정 끝-->


위치랑 명령어 알려주시면 감사합니다....


댓글 전체

latest.skin.php에 넣을 려면 넣을 수도 있지만 보통 저것은 자기가 가져오려고 하는 데이터로서 자기가 넣고 싶은 곳에 넣으면 됩니다.
latest.skin.php는 말 그대로 latest함수에서 불러 가는  html이나 php들이 들어 있는 것이구요...
내용수 줄이기만 하면 되는데 정말힘드네요 ㅠㅠ
검색해도 잘 안보이네요 소스의 구동을 잘몰라서 그런가 검색해서 수정됬다는거 하나하나 해봤는데 안되네요.. ㅠㅠ

글씨 사이즈도 줄이지도 못하고 원본 그대로 가져오는것도 문제입니다..
전체 66,554 |RSS
그누4 질문답변 내용 검색

회원로그인

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