lib폴더 common.lib.php수정하세요
======================================================================
// 파일을 보이게 하는 링크 (이미지, 플래쉬, 동영상)
function view_file_link($file, $width, $height, $content="")
{
global $config, $board;
global $g4;
static $ids;
if (!$file) return;
$ids++;
// 파일의 폭이 게시판설정의 이미지폭 보다 크다면 게시판설정 폭으로 맞추고 비율에 따라 높이를 계산
if ($width > $board[bo_image_width] && $board[bo_image_width])
{
$rate = $board[bo_image_width] / $width;
$width = $board[bo_image_width];
$height = (int)($height * $rate);
}
// 폭이 있는 경우 폭과 높이의 속성을 주고, 없으면 자동 계산되도록 코드를 만들지 않는다.
if ($width)
$attr = " width='$width' height='$height' ";
else
$attr = "";
==================================================================================
// 파일의 폭이 게시판설정의 이미지폭 보다 크다면 게시판설정 폭으로 맞추고 비율에 따라 높이를 계산
if ($width > $board[bo_image_width] && $board[bo_image_width])
↓
if ($width < $board[bo_image_width] && $board[bo_image_width])
댓글 5개
스킨 : basic
첨부 : swf
결과 : 정상(제작된) 크기로 보여 지고 있습니다.
다른 부분의 변경이 있었는지 확인 해 보세요.~~
(게시판 수정 모드에서 이미지 폭 크기의 변화 등....)
스킨 : basic
첨부 : swf (400x350 px)
PHP ver: 4.4.2
Zend : v1.3.0
GD : 2.0.28
위 서버사양과 그누버전입니다..
호스팅 은 미리내 에서 받고 있습니다.
다른 호스팅사에서도 동일한 증상인데??
저만 그런지..
혹? 다른 부분을 채크해야 되는지 알려주십시요..^^
이미지(gif,jpg,png)파일은 정상적으로 보여 지는데..
swf 파일만 그렇습니다...
처음 올린 첨부사진처럼..
그누 처음 설치후 변경사항이 없을때도 그렇다면???
lib폴더 common.lib.php수정하세요
======================================================================
// 파일을 보이게 하는 링크 (이미지, 플래쉬, 동영상)
function view_file_link($file, $width, $height, $content="")
{
global $config, $board;
global $g4;
static $ids;
if (!$file) return;
$ids++;
// 파일의 폭이 게시판설정의 이미지폭 보다 크다면 게시판설정 폭으로 맞추고 비율에 따라 높이를 계산
if ($width > $board[bo_image_width] && $board[bo_image_width])
{
$rate = $board[bo_image_width] / $width;
$width = $board[bo_image_width];
$height = (int)($height * $rate);
}
// 폭이 있는 경우 폭과 높이의 속성을 주고, 없으면 자동 계산되도록 코드를 만들지 않는다.
if ($width)
$attr = " width='$width' height='$height' ";
else
$attr = "";
==================================================================================
// 파일의 폭이 게시판설정의 이미지폭 보다 크다면 게시판설정 폭으로 맞추고 비율에 따라 높이를 계산
if ($width > $board[bo_image_width] && $board[bo_image_width])
↓
if ($width < $board[bo_image_width] && $board[bo_image_width])
어떤 게시판에서는 아래와 같은 경고메시지가 뜹니다.
Warning: Division by zero in D:\seoboo\seoboomt\lib\common.lib.php on line 885
소스를 보니깐 이 구문인데 ...
$rate = $board[bo_image_width] / $width;
어떻게 해결해야 하나요?
$rate = $board[bo_image_width] / $width; 를
$rate = $board[bo_image_width] >$width; 로 바꿔야 하는군요.....