게시판에 첨부한 swf 파일 크기 조정 문제 정보
게시판에 첨부한 swf 파일 크기 조정 문제본문
게시판에 첨부한 swf 파일 크기 조정은 불가능한 건가요?
질답 게시판을 검색해봐도 마땅한 답을 찾을 수가 없네요.
따로 업로드하고 embed 를 해서 크기를 지정해야 하나...ㅡㅡ;
--------------------
아! 추버라~~~
회원님들 감기 조심하세요~~~~
질답 게시판을 검색해봐도 마땅한 답을 찾을 수가 없네요.
따로 업로드하고 embed 를 해서 크기를 지정해야 하나...ㅡㅡ;
--------------------
아! 추버라~~~
회원님들 감기 조심하세요~~~~
댓글 전체
lib/gnuboard.lib.php 의 view_file_link() 펑션의 아래쪽에 플래쉬 설정부분의 가로, 세로 크기를 수정해 주시면 모든 게시판에 상관없이 통합 적용됩니다.
그런데 G4에선 lib/gnuboard.lib.php 파일이 없는데요. 나만 없나?
G3엔 lib/gnuboard.lib.php이 있군요.
G3엔 lib/gnuboard.lib.php이 있군요.
해결이 된건지 모르겠네요.
암튼 원하는 크기가 나오네요.
lib/common.lib.php 파일의 856번째 줄에 width=570 height=420를 추가해 주었습니다.
---------------------------------------------------------------------------------------------------------------------------------------------
845 // 폭이 있는 경우 폭과 높이의 속성을 주고, 없으면 자동 계산되도록 코드를 만들지 않는다.
846 if ($width)
847 $attr = " width='$width' height='$height' ";
848 else
849 $attr = "";
850
851 if (preg_match("/\.($config[cf_image_extension])$/i", $file))
852 // 이미지에 속성을 주지 않는 이유는 이미지 클릭시 원본 이미지를 보여주기 위한것임
853 // 게시판설정 이미지보다 크다면 스킨의 자바스크립트에서 이미지를 줄여준다
854 return "<img src='$g4[path]/data/file/$board[bo_table]/".urlencode($file)."' name='target_resize_ image[]' onclick='image_window(this);' style='cursor:pointer;' title='$content'>";
855 else if (preg_match("/\.($config[cf_flash_extension])$/i", $file))
856 return "<embed src='$g4[path]/data/file/$board[bo_table]/$file' $attr width=570 height=420></embed>";
857 else if (preg_match("/\.($config[cf_movie_extension])$/i", $file))
858 return "<embed src='$g4[path]/data/file/$board[bo_table]/$file' $attr></embed>";
859 }
암튼 원하는 크기가 나오네요.
lib/common.lib.php 파일의 856번째 줄에 width=570 height=420를 추가해 주었습니다.
---------------------------------------------------------------------------------------------------------------------------------------------
845 // 폭이 있는 경우 폭과 높이의 속성을 주고, 없으면 자동 계산되도록 코드를 만들지 않는다.
846 if ($width)
847 $attr = " width='$width' height='$height' ";
848 else
849 $attr = "";
850
851 if (preg_match("/\.($config[cf_image_extension])$/i", $file))
852 // 이미지에 속성을 주지 않는 이유는 이미지 클릭시 원본 이미지를 보여주기 위한것임
853 // 게시판설정 이미지보다 크다면 스킨의 자바스크립트에서 이미지를 줄여준다
854 return "<img src='$g4[path]/data/file/$board[bo_table]/".urlencode($file)."' name='target_resize_ image[]' onclick='image_window(this);' style='cursor:pointer;' title='$content'>";
855 else if (preg_match("/\.($config[cf_flash_extension])$/i", $file))
856 return "<embed src='$g4[path]/data/file/$board[bo_table]/$file' $attr width=570 height=420></embed>";
857 else if (preg_match("/\.($config[cf_movie_extension])$/i", $file))
858 return "<embed src='$g4[path]/data/file/$board[bo_table]/$file' $attr></embed>";
859 }