이미지 게시판에서 플레시 정보
그누보드 이미지 게시판에서 플레시본문
지금 막 생각나는 데로 해서 틀릴지도 몰르겠네요....
1번 파일을 리스트에서 보이게 할 경우
gblist_main.skin 에 <? 와 ?> 사이에 삽입...
if (preg_match($cfg[image_extension], $data[wr_file1])){
$file1_image= "<img src='{$gnu_path}data/file/$board[bo_table]/$data[wr_file1]' width='$width' height='$height' border=0><p>";
}else if (preg_match($cfg[flash_extension], $data[wr_file1])){
$file1_image= "<embed src='{$gnu_path}data/file/$board[bo_table]/$data[wr_file1]' width='$width' height='$height'></embed><p>";}
1번 파일을 리스트에서 보이게 할 경우
gblist_main.skin 에 <? 와 ?> 사이에 삽입...
if (preg_match($cfg[image_extension], $data[wr_file1])){
$file1_image= "<img src='{$gnu_path}data/file/$board[bo_table]/$data[wr_file1]' width='$width' height='$height' border=0><p>";
}else if (preg_match($cfg[flash_extension], $data[wr_file1])){
$file1_image= "<embed src='{$gnu_path}data/file/$board[bo_table]/$data[wr_file1]' width='$width' height='$height'></embed><p>";}
댓글 전체
성공...
if($data[wr_file1]){
global $cfg, $board, $gnu_path;
if (preg_match($cfg[image_extension], $data[wr_file1])){
$file1_v= "<img src='{$gnu_path}data/file//$board[bo_table]/$data[wr_file1]' width='125' height='125' border=0>";}
else if (preg_match($cfg[flash_extension], $data[wr_file1])){
$file1_v= "<embed src='{$gnu_path}data/file/$board[bo_table]/$data[wr_file1]' width='125' height='125'></embed>";}
else if (preg_match($cfg[movie_extension], $data[wr_file1])){
$file1_v= "<embed src='{$gnu_path}data/file/$board[bo_table]/$data[wr_file1]'></embed>";}
}
보여줄곳에 <?=$file1_v?> 삽입.....
if($data[wr_file1]){
global $cfg, $board, $gnu_path;
if (preg_match($cfg[image_extension], $data[wr_file1])){
$file1_v= "<img src='{$gnu_path}data/file//$board[bo_table]/$data[wr_file1]' width='125' height='125' border=0>";}
else if (preg_match($cfg[flash_extension], $data[wr_file1])){
$file1_v= "<embed src='{$gnu_path}data/file/$board[bo_table]/$data[wr_file1]' width='125' height='125'></embed>";}
else if (preg_match($cfg[movie_extension], $data[wr_file1])){
$file1_v= "<embed src='{$gnu_path}data/file/$board[bo_table]/$data[wr_file1]'></embed>";}
}
보여줄곳에 <?=$file1_v?> 삽입.....
안되요...ㅋㅋ 방금 실험...
오~ 오늘 또 새로운걸 얻었네요~~^^
width와 height 값은 수정해야겠네요..