글 제목까지는 불러오기 했는데요
내용을 불러와야하는데 한 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>
<!--게시물 추출 글자 설정 끝-->
위치랑 명령어 알려주시면 감사합니다....
내용을 불러와야하는데 한 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>
<!--게시물 추출 글자 설정 끝-->
위치랑 명령어 알려주시면 감사합니다....
댓글 5개
게시글 목록
| 번호 | 제목 |
|---|---|
| 284508 | |
| 284499 | |
| 284492 | |
| 284490 | |
| 284484 | |
| 284481 | |
| 284478 | |
| 284476 | |
| 284474 | |
| 284472 | |
| 284470 | |
| 284458 | |
| 284457 | |
| 284454 | |
| 284453 | |
| 284447 | |
| 284446 | |
| 284444 | |
| 284441 | |
| 284440 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기