첨부파일 (이미지) 출력시에 첫번째것만 빼고 출력하기... 정보
첨부파일 (이미지) 출력시에 첫번째것만 빼고 출력하기...본문
스킨의 view.skin.php에서 여러개의 이미지를 출력하는데요.
그중에 첫번째 파일(이미지)은 list.skin.php 전용으로 넣으려고 합니다. 그래서 view.skin.php에는 첫번째 파일이 안나오게 하려고합니다.
어떻게 수정해야 하나요?
혹시 몰라서 그 부분 소스를 ...;;
<?
// 파일 출력
for ($i=0; $i<=count($view[file]); $i++) {
if ($view[file][$i][view]) {
//이미지 링크를 없앤다.
$view[file][$i][view] = str_replace("onclick='image_window(this);' style='cursor:pointer;'","",$view[file][$i][view]);
echo $view[file][$i][view]."<br><br>";
if ($view[file][$i][bf_content]) {
echo "<div style='font-family:Tahoma;font-size:11px;color:#3388DD;padding-top:4;padding-bottom:12'>".$view[file][$i][bf_content] ."</div>";
}
}
}
?>
<?//echo $view[rich_content]; // 과 같은 코드를 사용할 경우?>
// 파일 출력
for ($i=0; $i<=count($view[file]); $i++) {
if ($view[file][$i][view]) {
//이미지 링크를 없앤다.
$view[file][$i][view] = str_replace("onclick='image_window(this);' style='cursor:pointer;'","",$view[file][$i][view]);
echo $view[file][$i][view]."<br><br>";
if ($view[file][$i][bf_content]) {
echo "<div style='font-family:Tahoma;font-size:11px;color:#3388DD;padding-top:4;padding-bottom:12'>".$view[file][$i][bf_content] ."</div>";
}
}
}
?>
<?//echo $view[rich_content]; // 과 같은 코드를 사용할 경우?>
댓글 전체
echo $view[file][$i][view]."<br><br>";
↑이 부분을 이렇게↓ 해보시죠.
if ($i > 0) { echo $view[file][$i][view]."<br><br>"; }
↑이 부분을 이렇게↓ 해보시죠.
if ($i > 0) { echo $view[file][$i][view]."<br><br>"; }
잘되네요^^ 감사합니다^^