이미지 게시판에서 플레시 > 그누3질답

그누3질답

이미지 게시판에서 플레시 정보

그누보드 이미지 게시판에서 플레시

본문

지금 막 생각나는 데로 해서 틀릴지도 몰르겠네요....
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>";}
  • 복사

댓글 전체

성공...

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?> 삽입.....
© SIRSOFT
현재 페이지 제일 처음으로