미채택 완료

첨부파일 버튼 문구변경

2018-12-10 (월) 19:53:17 6,986

2038874021_1544439162.33.jpg

파일선택 선택된 파일 없음

문구를 바꾸고싶은데요.

어디에서 바꿔야할까요??

답변 2개

http://eyekiss.kr/bbs/write.php?bo_table=free

편법인데요.. 레이어를 위에 덮으면 됩니다.

/skin/board/스킨명/write.skin.php 에 아래 소스를 추가했습니다.

<div style="position:absolute;top:10px;left:128px;width:100px;background:#fff;">파일설명 test</div>

Copy
<?php for ($i=0; $is_file && $i<$file_count; $i++) { ?>

<div class="bo_w_flie write_div">

<div class="file_wr write_div">

<label for="bf_file_<?php echo $i+1 ?>" class="lb_icon"><i class="fa fa-download" aria-hidden="true"></i><span class="sound_only"> 파일 #<?php echo $i+1 ?></span></label>

<input type="file" name="bf_file[]" id="bf_file_<?php echo $i+1 ?>" title="파일첨부 <?php echo $i+1 ?> : 용량 <?php echo $upload_max_filesize ?> 이하만 업로드 가능" class="frm_file ">

</div>

<div style="position:absolute;top:10px;left:128px;width:100px;background:#fff;">파일설명 test</div>

<?php if ($is_file_content) { ?>

<input type="text" name="bf_content[]" value="<?php echo ($w == 'u') ? $file[$i]['bf_content'] : ''; ?>" title="파일 설명을 입력해주세요." class="full_input frm_input" size="50" placeholder="파일 설명을 입력해주세요.">

<?php } ?>

 

<?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 } ?>

</div>

<?php } ?>

/루트/skin/board/사용중인스킨/write.skin.php

<input type="file" 측을 보시면 html 태그로 파일선택과 문구를 생성해줍니다.

즉..

실제로 HTML 태그로 브라우저에서 자동생성 되는 부분이라,

직접 코딩이 되어있지 않습니다.

-------------------

같은 질문의 답변

https://sir.kr/qa/260700

--------------------------

참고하면 좋을듯..

https://stackoverflow.com/questions/16001586/change-the-no-file-chosen

답변을 작성하려면 로그인이 필요합니다.