테스트 사이트 - 개발 중인 베타 버전입니다

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

· 12년 전 · 1258 · 5
글 제목까지는 불러오기 했는데요

내용을 불러와야하는데 한 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개

12년 전
스킨에 $list[$i][wr_content] 추가 했더니 내용이 출려되네요 남은건 내용수를 줄이는건데 검색을 더 해보고 남겨드릴게요~
latest.skin.php에 넣을 려면 넣을 수도 있지만 보통 저것은 자기가 가져오려고 하는 데이터로서 자기가 넣고 싶은 곳에 넣으면 됩니다.
latest.skin.php는 말 그대로 latest함수에서 불러 가는 html이나 php들이 들어 있는 것이구요...
12년 전
내용수 줄이기만 하면 되는데 정말힘드네요 ㅠㅠ
검색해도 잘 안보이네요 소스의 구동을 잘몰라서 그런가 검색해서 수정됬다는거 하나하나 해봤는데 안되네요.. ㅠㅠ

글씨 사이즈도 줄이지도 못하고 원본 그대로 가져오는것도 문제입니다..
12년 전
echo cut_str(strip_tags($list[$i][wr_content]),"120","...");
12년 전
삽입 위치가 어디가 되나요??
latest 인가요?? 글자가 짤리지 않네요 ㅠㅠ 사이즈 조절도 해야하는데..

게시글 목록

번호 제목
284508
284499
284492
284490
284484
284481
284478
284476
284474
284472
284470
284458
284457
284454
284453
284447
284446
284444
284441
284440