2026 년 4 월

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

 
그누스킨 그누소스 소스변경 소스문법 홈준비 기타
 
작성일 : 07-02-04 22:30
[소스문법] dq_thumb_engine2를 쓴 최신글스킨에서 썸네일 안나올때
 글쓴이 : Morning (124.♡.112.157)
조회 : 5,552  
   http://sir.co.kr/bbs/board.php?bo_table=g4_tiptech&wr_id=9138&sca=&sfl… [2271]
화일이름에 공백이 있는 경우에 생기는 문제를 바로잡는 방식입니다.
파일이름에 공백이있으면 엑스박스로 나옵니다.
아래처럼 바꾸면 정상으로 나옵니다.

//썸네일 관련 설정
 for ($i=0; $i<count($list); $i++) {
 $thumb1_width=85;//섬네일 최대폭
 $thumb1_height=65;//섬네일 최대높이
 $image = urlencode($list[$i][file][0][file]); // 첫번째 파일이 이미지라면
  if (preg_match("/\.(gif|jpg|png)$/i", $image)) {
  if(!is_file('$g4[path]/data/file/$bo_table/thumb1_$image')){
    include_once "$g4[path]/thumbEngine/dq_thumb_engine2.php";
    $thumbsource="$g4[path]/data/file/$bo_table/" . $image;
    $thumbimg="$g4[path]/data/file/$bo_table/thumb1_" . $image;
    make_thumb($thumb1_width,$thumb1_height,$thumbsource,$thumbimg);
    @chmod($thumbimg, 0606);
  }
  }


$image = urlencode($list[$i][file][0][file]); 
이것을

$image = $list[$i][file][0][file]; 
이것으로 바꾸십시요.
[이 게시물은 morning님에 의해 2009-11-22 17:49:48 홈관리자료실에서 이동 됨]
[이 게시물은 morning님에 의해 2009-11-22 17:56:43 알림판에서 이동 됨]
주님과 함께 모닝커피를

Morning 07-02-04 22:32
 124.♡.112.157  
그리고 한국일보 무슨 슬라이드 스킨및  dq_thumb_engine2 를 이용하여 만든 스킨은

///// 썸네일 생성 마침 
if($list[$i][file][0][file]){
    $image_file = "thumb_slide_".$image;
    $image_url = "$g4[path]/data/file/$bo_table";
    $href_url = $list[$i][href];
    $image_view = "<a href='$href_url'><img src='$image_url/$image_file' hspace='0' VSPACE='0' border='0' align='left'  style=\"margin: 8 8 8 8 ;\" ></a>";
    $imageview = "$image_url/$image_file";
}

섬네일 보여주려고 준비하는 코드중 위와 같은 코드가 있을때

if($list[$i][file][0][file]){ 이것을 
if (preg_match("/\.(gif|jpg|png)$/i", $image)) { 이것으로 바꿔야 될듯 합니다.
 
 

Total 37
번호 제   목 글쓴이 날짜 조회
37 [소스문법] 심볼릭링크없이, 두개의 그누보드에서 data폴… Morning 07-19 9615
36 [소스문법] 스타일이용하여 라운딩만들기 Morning 03-06 5604
35 [소스문법] 리다이렉트 (3) Morning 02-27 6983
34 [소스문법] 보더 입력방법 Morning 03-12 5631
33 [소스문법] 일정한 부분을 다른 것으로 치환하는 방법 (9) Morning 02-22 6531
32 [소스문법] div, table (2) Morning 01-20 5522
31 [소스문법] dq_thumb_engine2를 쓴 최신글스킨에서 썸네일 안… (1) Morning 02-04 5553
30 [소스문법] include() (5) Morning 02-03 7100
29 [소스문법] 제어 구조의 대체 문법 Morning 02-03 5573
28 [소스문법] elseif Morning 02-03 5489
27 [소스문법] else Morning 02-03 5535
26 [소스문법] if (2) Morning 02-03 5989
25 [소스문법] for (1) Morning 02-03 5437
24 [소스문법] 흐르는 글 Morning 01-31 5355
23 [소스문법] 보더를 이용해서 box 만들기 Morning 01-26 5671
 1  2  3  

Therefore, holy brothers, who share in the heavenly calling,
fix your thoughts on Jesus, the apostle and high priest whom we confess.
Let us fix our eyes on Jesus, the author and perfecter of our faith,
who for the joy set before him endured the cross, scorning its shame,
and sat down at the right hand of the throne of God