사진업로드할때 파일+눌러서올린것......사진바로밑에설명글쓰기?? 정보
사진업로드할때 파일+눌러서올린것......사진바로밑에설명글쓰기??본문
사진설명에 글쓰면..글씨가 보여지는것이아니라...
alt태그쓴것처럼...사진위에 커서가 올라가야 보이는데...
사진밑에..설명한글이 직접보이는 스킨의 아직 그누보드에는 없나요??
댓글 전체
http://sir.co.kr/bbs/tb.php/g4_qa/26451
http://sir.co.kr/bbs/tb.php/g4_qa/25825
<?
// 파일 출력
for($i=0; $i<=count($view[file]); $i++) {
if($view[file][$i][view])
###############################################
$img_width=100;
$f_type=""; $f_style=""; $f_path=""; $f_file ="";
// echo"파일타입: {$view[file][$i][image_type]}<br>";
$f_type=$view[file][$i][image_type];
if($f_type=='1' || $f_type=='2' || $f_type=='3' ||$f_type=='6' || $f_type=='7') $f_style="img";
else if($f_type=='4') $f_style="movie_img";//쭉..형태추가
else if($f_type=='0') $f_style="file_link";
$f_file = urlencode($view[file][$i][file]);
$f_path="{$view[file][$i][path]}";
###############################################
if($view[file][$i][source])
{$view[file][$i][href]="$f_path/$f_file";
if(preg_match("/\.(jp[e]?g|tif|bmp|gif|png)$/i","$f_file")
&& file_exists("$f_path/$f_file")&& $f_style=="img")
{//이미지면 끝
echo"<a href='{$view[file][$i][href]}'><img src='$f_path/$f_file' width='$img_width' border='0'><br>";
echo"</a><br>";
echo"이미지크기:<font color='red'>{$view[file][$i][image_width]} x {$view[file][$i][image_height]}</font><br>";
echo"이미지설명:<font color='blue'>{$view[file][$i][bf_content]}</font><br>";
echo"<br>";
}else
echo $view[file][$i][view];
}//if 다운소스가 존재하면
###############################################
}//for 끝
?>
http://sir.co.kr/bbs/tb.php/g4_qa/25825
<?
// 파일 출력
for($i=0; $i<=count($view[file]); $i++) {
if($view[file][$i][view])
###############################################
$img_width=100;
$f_type=""; $f_style=""; $f_path=""; $f_file ="";
// echo"파일타입: {$view[file][$i][image_type]}<br>";
$f_type=$view[file][$i][image_type];
if($f_type=='1' || $f_type=='2' || $f_type=='3' ||$f_type=='6' || $f_type=='7') $f_style="img";
else if($f_type=='4') $f_style="movie_img";//쭉..형태추가
else if($f_type=='0') $f_style="file_link";
$f_file = urlencode($view[file][$i][file]);
$f_path="{$view[file][$i][path]}";
###############################################
if($view[file][$i][source])
{$view[file][$i][href]="$f_path/$f_file";
if(preg_match("/\.(jp[e]?g|tif|bmp|gif|png)$/i","$f_file")
&& file_exists("$f_path/$f_file")&& $f_style=="img")
{//이미지면 끝
echo"<a href='{$view[file][$i][href]}'><img src='$f_path/$f_file' width='$img_width' border='0'><br>";
echo"</a><br>";
echo"이미지크기:<font color='red'>{$view[file][$i][image_width]} x {$view[file][$i][image_height]}</font><br>";
echo"이미지설명:<font color='blue'>{$view[file][$i][bf_content]}</font><br>";
echo"<br>";
}else
echo $view[file][$i][view];
}//if 다운소스가 존재하면
###############################################
}//for 끝
?>
그누보드에 푹~빠졌다가...많이 실망했었는데.......
오달수님덕분에..다시 힘내서..홈피 만들고 있습니다...복받으실꺼예요~~~
제가쓰는 스킨은 유아원님의 g1_bora갤러리 를 쓰고있는데요..
echo"이미지설명:<font color='blue'>{$view[file][$i][bf_content]}</font><br>";
echo"<br>";
위의 두줄을 추가했는데....잘되기는 한데...
왜.."이미지설명"이란 글자가..업로드한사진 설명글 밑에..두개가 더 생기는지 궁금합니다..
그리고 이스킨에 업로드한사진들은 왼쪽맞춤으로 되어있는데..
어디를 고쳐야...가운데맞춤으로 되는지...가르쳐주세요..부탁합니다..
오달수님덕분에..다시 힘내서..홈피 만들고 있습니다...복받으실꺼예요~~~
제가쓰는 스킨은 유아원님의 g1_bora갤러리 를 쓰고있는데요..
echo"이미지설명:<font color='blue'>{$view[file][$i][bf_content]}</font><br>";
echo"<br>";
위의 두줄을 추가했는데....잘되기는 한데...
왜.."이미지설명"이란 글자가..업로드한사진 설명글 밑에..두개가 더 생기는지 궁금합니다..
그리고 이스킨에 업로드한사진들은 왼쪽맞춤으로 되어있는데..
어디를 고쳐야...가운데맞춤으로 되는지...가르쳐주세요..부탁합니다..
꼭 있어야 할 부분은
1,2,3,4 파일을 업로드하고 3 번을 지웠다면
$i 는 고대로 4가 되겠졈.
중간에
echo"이미지설명:<font color='blue'>{$view[file][$i][bf_content]}</font><br>";
한줄을 넣으면
3번 파일이 있던 없던 4까지 반복되어 두번 나오겠죠.
아래처럼 하시고
$f_path[$i]="{$view[file][$i][path]}";
$f_file[$i] = @urlencode($view[file][$i][file]);
if(@filesize("{$f_path[$i]}/{$f_file[$i]}") !=0){
echo"파일설명:<br><font color='blue'>{$view[file][$i][bf_content]}</font><br>";
}
가운데 정렬은 아래처럼 ... <p>와</p> 안에 출력.
아래에서는 초기화를
$f_type=""; $f_style=""; $f_path=""; $f_file ="";
식으로 했지만
위에서는 $f_file[$i] 처럼 배열에 할당됨을 주의.
<?
// 파일 출력
for($i=0; $i<=count($view[file]); $i++) {
if($view[file][$i][view])
###############################################
$img_width=100;
$f_type=""; $f_style=""; $f_path=""; $f_file ="";
// echo"파일타입: {$view[file][$i][image_type]}<br>";
$f_type=$view[file][$i][image_type];
if($f_type=='1' || $f_type=='2' || $f_type=='3' ||$f_type=='6' || $f_type=='7') $f_style="img";
else if($f_type=='4') $f_style="movie_img";//쭉..형태추가
else if($f_type=='0') $f_style="file_link";
$f_file = urlencode($view[file][$i][file]);
$f_path="{$view[file][$i][path]}";
###############################################
if($view[file][$i][source] && @filesize("{$f_path}/{$f_file}") !=0)
{$view[file][$i][href]="$f_path/$f_file";
if(preg_match("/\.(jp[e]?g|tif|bmp|gif|png)$/i","$f_file")
&& file_exists("$f_path/$f_file")&& $f_style=="img")
{//이미지면 끝
echo"<p align='center'><a href='{$view[file][$i][href]}'><img src='$f_path/$f_file' width='$img_width' border='0'><br>";
echo"</a><br>";
echo"이미지크기:<font color='red'>{$view[file][$i][image_width]} x {$view[file][$i][image_height]}</font><br>";
echo"이미지설명:<font color='blue'>{$view[file][$i][bf_content]}</font><br>";
echo"<br>";
}else
echo $view[file][$i][view];
}//if 다운소스가 존재하면
echo"</p>";
###############################################
}//for 끝
?>
1,2,3,4 파일을 업로드하고 3 번을 지웠다면
$i 는 고대로 4가 되겠졈.
중간에
echo"이미지설명:<font color='blue'>{$view[file][$i][bf_content]}</font><br>";
한줄을 넣으면
3번 파일이 있던 없던 4까지 반복되어 두번 나오겠죠.
아래처럼 하시고
$f_path[$i]="{$view[file][$i][path]}";
$f_file[$i] = @urlencode($view[file][$i][file]);
if(@filesize("{$f_path[$i]}/{$f_file[$i]}") !=0){
echo"파일설명:<br><font color='blue'>{$view[file][$i][bf_content]}</font><br>";
}
가운데 정렬은 아래처럼 ... <p>와</p> 안에 출력.
아래에서는 초기화를
$f_type=""; $f_style=""; $f_path=""; $f_file ="";
식으로 했지만
위에서는 $f_file[$i] 처럼 배열에 할당됨을 주의.
<?
// 파일 출력
for($i=0; $i<=count($view[file]); $i++) {
if($view[file][$i][view])
###############################################
$img_width=100;
$f_type=""; $f_style=""; $f_path=""; $f_file ="";
// echo"파일타입: {$view[file][$i][image_type]}<br>";
$f_type=$view[file][$i][image_type];
if($f_type=='1' || $f_type=='2' || $f_type=='3' ||$f_type=='6' || $f_type=='7') $f_style="img";
else if($f_type=='4') $f_style="movie_img";//쭉..형태추가
else if($f_type=='0') $f_style="file_link";
$f_file = urlencode($view[file][$i][file]);
$f_path="{$view[file][$i][path]}";
###############################################
if($view[file][$i][source] && @filesize("{$f_path}/{$f_file}") !=0)
{$view[file][$i][href]="$f_path/$f_file";
if(preg_match("/\.(jp[e]?g|tif|bmp|gif|png)$/i","$f_file")
&& file_exists("$f_path/$f_file")&& $f_style=="img")
{//이미지면 끝
echo"<p align='center'><a href='{$view[file][$i][href]}'><img src='$f_path/$f_file' width='$img_width' border='0'><br>";
echo"</a><br>";
echo"이미지크기:<font color='red'>{$view[file][$i][image_width]} x {$view[file][$i][image_height]}</font><br>";
echo"이미지설명:<font color='blue'>{$view[file][$i][bf_content]}</font><br>";
echo"<br>";
}else
echo $view[file][$i][view];
}//if 다운소스가 존재하면
echo"</p>";
###############################################
}//for 끝
?>
오달수님 귀찮게해서 죄송하지만 한가지더 묻겠습시다...
님께서...올려주신...소스. 34줄을 모두 덮어썼는데요...
잘되긴하지만..왜..원본파일이 안나오고..섬네일처럼 조그마하게 나오는거죠.
올려주신소스중에 $img_width=100; 이것때문인가요...
저는 원본크기의파일이 나왔으면 좋겠는데요...
가르쳐 주세요..please~~~~
님께서...올려주신...소스. 34줄을 모두 덮어썼는데요...
잘되긴하지만..왜..원본파일이 안나오고..섬네일처럼 조그마하게 나오는거죠.
올려주신소스중에 $img_width=100; 이것때문인가요...
저는 원본크기의파일이 나왔으면 좋겠는데요...
가르쳐 주세요..please~~~~