2

최근게시물 스킨수정할때..궁금한점이 있습니다.

· 2013-03-13 (수) 11:26:02 · 817 · 4
게시물 리스트를 노출지정할때...

1. ----------------------
2. ----------------------
3. ----------------------
4. ----------------------
5. ----------------------

이렇게 한줄만 뜨는걸

1. ---------------------- 6. --------------------
2. ---------------------- 7. ---------------------
3. ---------------------- 8. ---------------------
4. ---------------------- 9. --------------------
5. ---------------------- 10. ---------------------

이렇게 두줄로 나오게하는게 가능한가요?
가능하다면 어느부분을 수정해줘야하나요?ㅠㅠ
|

댓글 4개

해당 최신글 스킨의 latest.skin.php 를 수정 하시면됩니다.
:);;;심플...하네여. 그래도 답변감사합니당~
기본스킨에서 본다면
latest.skin.php 파일에서
<table width=100% cellpadding=0 cellspacing=0>
<? for ($i=0; $i<count($list); $i++) { ?>
<tr>
<td colspan=4 align=center>
<table width=95%>
<tr>
<td height=25><img src='<?=$latest_skin_path?>/img/latest_icon.gif' align=absmiddle>  
<?
echo $list[$i]['icon_reply'] . " ";
echo "<a href='{$list[$i]['href']}'>";
if ($list[$i]['is_notice'])
echo "<font style='font-family:돋움; font-size:9pt; color:#2C88B9;'><strong>{$list[$i]['subject']}</strong></font>";
else
echo "<font style='font-family:돋움; font-size:9pt; color:#6A6A6A;'>{$list[$i]['subject']}</font>";
echo "</a>";

if ($list[$i]['comment_cnt'])
echo " <a href=\"{$list[$i]['comment_href']}\"><span style='font-family:돋움; font-size:8pt; color:#9A9A9A;'>{$list[$i]['comment_cnt']}</span></a>";

// if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }
// if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }

echo " " . $list[$i]['icon_new'];
echo " " . $list[$i]['icon_file'];
echo " " . $list[$i]['icon_link'];
echo " " . $list[$i]['icon_hot'];
echo " " . $list[$i]['icon_secret'];
?></td></tr>
<tr><td bgcolor=#EBEBEB height=1></td></tr>
</table></td>
</tr>
<? } ?>

<? if (count($list) == 0) { ?><tr><td colspan=4 align=center height=50><font color=#6A6A6A>게시물이 없습니다.</a></td></tr><? } ?>

</table>
부분을 수정해 주시면 되겠지요.
$list 값이 10이 들어오게 된다면
$list1 = 5;
$list2 = 10;
변수를 추가하고 for문을 0에서 $list1까지, $list1에서 $list2까지로 해서
두 부분으로 나눈 다음에 테이블의 각각 셀을 나누어서 넣어주시면 될 것 같습니다.
앗 감사합니다! 한번 해보겠습니다:)
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

66,531건

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

+
제목 글쓴이 날짜 조회
13-03-14 조회 1,080
13-03-14 조회 2,391
13-03-14 조회 1,115
13-03-14 조회 1,734
13-03-13 조회 892
13-03-13 조회 1,640
13-03-13 조회 2,028
13-03-13 조회 4,153
13-03-13 조회 854
13-03-13 조회 1,622
13-03-13 조회 1,773
13-03-13 조회 1,067
13-03-13 조회 1,098
13-03-13 조회 3,025
13-03-13 조회 1,469
13-03-13 조회 1,093
13-03-13 조회 1,146
13-03-13 조회 1,650
13-03-13 조회 3,833
13-03-13 조회 818