게시판 파일첨부.. 정보
게시판 파일첨부..
본문
안녕하세요 ^^
게시판에 파일첨부 하는 부분이요.
기본적으로 2개를 첨부할수 있게 하고 또 2개 첨부가 안될시 글 작성이 안되게 하려고 하는데요..
write페이지에 보여지는게 +를 눌렀을때가 아닌 +,- 가 없게끔 하고,
필수로 입력 시킬려면 어떻게 수정해야 하는지요...ㅠㅠ
초보라서 좀만 꼬아놓면 잘 모르겠어요 ㅠㅠ
도와주세요~~
댓글 전체
그누보드폴더/bbs/write.php 파일을 열으신후에. 351줄에 부터 보시면
$file_script .= "add_file('');\n";
$file_length = 0;
이렇게 되어있는데. 이것을
$file_script .= "add_file('');\n";
$file_script .= "add_file('');\n";
$file_length = 0;
이렇게 수정해주시고요.
그리고 해당 스킨(예를들어 basic 스킨을 듦) 폴더에 write.skin.php파일을 열으신후에. 134줄에 다음과 같이 있습니다.
<td style='padding-left:20px; height:30px;'><table cellpadding=0 cellspacing=0><tr><td style=" padding-top: 10px;">· 파일 <span onclick="add_file();" style='cursor:pointer; font-family:tahoma; font-size:12pt;'>+</span> <span onclick="del_file();" style='cursor:pointer; font-family:tahoma; font-size:12pt;'>-</span></td></tr></table></td>
이것을
<td style='padding-left:20px; height:30px;'><table cellpadding=0 cellspacing=0><tr><td style=" padding-top: 10px;">· 파일 </td></tr></table></td>
수정하시고, 158번째 줄에..
objCell.innerHTML = "<input type='file' class='field_pub_01' name='bf_file[]' title='파일 용량 <?=$upload_max_filesize?> 이하만 업로드 가능'>";
이것을
objCell.innerHTML = "<input type='file' class='field_pub_01' name='bf_file[]' required itemname='파일' title='파일 용량 <?=$upload_max_filesize?> 이하만 업로드 가능'>";
이렇게 수정해주시면 됩니다.
$file_script .= "add_file('');\n";
$file_length = 0;
이렇게 되어있는데. 이것을
$file_script .= "add_file('');\n";
$file_script .= "add_file('');\n";
$file_length = 0;
이렇게 수정해주시고요.
그리고 해당 스킨(예를들어 basic 스킨을 듦) 폴더에 write.skin.php파일을 열으신후에. 134줄에 다음과 같이 있습니다.
<td style='padding-left:20px; height:30px;'><table cellpadding=0 cellspacing=0><tr><td style=" padding-top: 10px;">· 파일 <span onclick="add_file();" style='cursor:pointer; font-family:tahoma; font-size:12pt;'>+</span> <span onclick="del_file();" style='cursor:pointer; font-family:tahoma; font-size:12pt;'>-</span></td></tr></table></td>
이것을
<td style='padding-left:20px; height:30px;'><table cellpadding=0 cellspacing=0><tr><td style=" padding-top: 10px;">· 파일 </td></tr></table></td>
수정하시고, 158번째 줄에..
objCell.innerHTML = "<input type='file' class='field_pub_01' name='bf_file[]' title='파일 용량 <?=$upload_max_filesize?> 이하만 업로드 가능'>";
이것을
objCell.innerHTML = "<input type='file' class='field_pub_01' name='bf_file[]' required itemname='파일' title='파일 용량 <?=$upload_max_filesize?> 이하만 업로드 가능'>";
이렇게 수정해주시면 됩니다.
정말 알기 쉽게 설명해 주셨네요 ^^
감사합니다~
$file_script .= "add_file('');\n";
$file_script .= "add_file('');\n";
$file_length = 0;
요기 부분을 찾다가...;;
답변 정말 감사드립니다~ 복받으실 꺼에요~ ^^
감사합니다~
$file_script .= "add_file('');\n";
$file_script .= "add_file('');\n";
$file_length = 0;
요기 부분을 찾다가...;;
답변 정말 감사드립니다~ 복받으실 꺼에요~ ^^