최근게시물 스킨수정할때..궁금한점이 있습니다. 정보
최근게시물 스킨수정할때..궁금한점이 있습니다.본문
게시물 리스트를 노출지정할때...
1. ----------------------
2. ----------------------
3. ----------------------
4. ----------------------
5. ----------------------
이렇게 한줄만 뜨는걸
1. ---------------------- 6. --------------------
2. ---------------------- 7. ---------------------
3. ---------------------- 8. ---------------------
4. ---------------------- 9. --------------------
5. ---------------------- 10. ---------------------
이렇게 두줄로 나오게하는게 가능한가요?
가능하다면 어느부분을 수정해줘야하나요?ㅠㅠ
1. ----------------------
2. ----------------------
3. ----------------------
4. ----------------------
5. ----------------------
이렇게 한줄만 뜨는걸
1. ---------------------- 6. --------------------
2. ---------------------- 7. ---------------------
3. ---------------------- 8. ---------------------
4. ---------------------- 9. --------------------
5. ---------------------- 10. ---------------------
이렇게 두줄로 나오게하는게 가능한가요?
가능하다면 어느부분을 수정해줘야하나요?ㅠㅠ
댓글 전체
해당 최신글 스킨의 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까지로 해서
두 부분으로 나눈 다음에 테이블의 각각 셀을 나누어서 넣어주시면 될 것 같습니다.
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까지로 해서
두 부분으로 나눈 다음에 테이블의 각각 셀을 나누어서 넣어주시면 될 것 같습니다.
앗 감사합니다! 한번 해보겠습니다:)