글 수정시 파일명 출력오류
<?php if($w == 'u' && $file[$i]['file']) { ?>
<input type="checkbox" id="bf_file_del<?php echo $i ?>" name="bf_file_del[<?php echo $i; ?>]" value="1"> <label for="bf_file_del<?php echo $i ?>"><?php echo $file[$i]['source'].'('.$file[$i]['size'].')'; ?> 파일 삭제</label>
<?php } ?>
이 코드가 언젠가부터 출력 안되는데 php버전과 상관 있나요?
|
답변 2개
최신 그누 코드는 아래와 같이 span으로 한번 더 감싸는 코드가 있으니 참고해 보세요.
https://github.com/gnuboard/gnuboard5/blob/e26fb62f5dc78d4e33e87d843cce0712b248a4c0/skin/board/basic/write.skin.php#L147C1-L151C19
https://github.com/gnuboard/gnuboard5/blob/e26fb62f5dc78d4e33e87d843cce0712b248a4c0/skin/board/basic/write.skin.php#L147C1-L151C19
Copy
<?php if($w == 'u' && $file[$i]['file']) { ?>
<span class="file_del">
<input type="checkbox" id="bf_file_del<?php echo $i ?>" name="bf_file_del[<?php echo $i; ?>]" value="1"> <label for="bf_file_del<?php echo $i ?>"><?php echo $file[$i]['source'].'('.$file[$i]['size'].')'; ?> 파일 삭제</label>
</span>
<?php } ?>
5일 전
버전과는 상관없고
파일첨부가 된 글을 수정했을시에만 나타나는 파일삭제기능 입니다
파일첨부가 된 글이 아니면 나타나지 않습니다
그리고 파일첨부가 됐는데도 나타나지 않는다면
css 문제일 수 있으니 F12 를 눌러 개발자모드로 확인해보세요
답변을 작성하려면 로그인이 필요합니다.