M

이미지 게시판에서 플레시

MANDO
· 22년 전 · 577 · 4
지금 막 생각나는 데로 해서 틀릴지도 몰르겠네요....
1번 파일을 리스트에서 보이게 할 경우
gblist_main.skin 에 <? 와 ?> 사이에 삽입...

if (preg_match($cfg[image_extension], $data[wr_file1])){
&nbsp; &nbsp; &nbsp; &nbsp;$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])){
&nbsp; &nbsp; &nbsp; $file1_image= "<embed src='{$gnu_path}data/file/$board[bo_table]/$data[wr_file1]' width='$width' height='$height'></embed><p>";}
|

댓글 4개

MMANDO
22년 전
성공...

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?> 삽입.....
MMANDO
22년 전
안되요...ㅋㅋ 방금 실험...
&&nbsp;
22년 전
오~ 오늘 또 새로운걸 얻었네요~~^^
MMANDO
22년 전
width와 height 값은 수정해야겠네요..
댓글을 작성하시려면 로그인이 필요합니다. 로그인

그누3질답

+
제목 글쓴이 날짜 조회
22년 전 조회 659
22년 전 조회 693
22년 전 조회 561
22년 전 조회 512
22년 전 조회 507
22년 전 조회 623
22년 전 조회 509
22년 전 조회 511
22년 전 조회 604
MMANDO
22년 전 조회 578
22년 전 조회 587
22년 전 조회 935
22년 전 조회 612
22년 전 조회 553
22년 전 조회 744
&&nbsp;
22년 전 조회 566
22년 전 조회 753
22년 전 조회 578
22년 전 조회 631
&&nbsp;
22년 전 조회 729
🐛 버그신고