지금 막 생각나는 데로 해서 틀릴지도 몰르겠네요....
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>";}
|
댓글을 작성하시려면 로그인이 필요합니다.
로그인
댓글 4개
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?> 삽입.....