미채택 완료

영카트 후기 썸네일 이미지를 변경하고싶습니다.

2017-04-21 (금) 16:49:10 6,429

영카트 상품 후기 썸네일 이미지가 상품의 이미지1 첨부파일로 보이는거같은데 이미지3 첨부파일로 보이게하려면 어떻게 수정해야하나요??

lib/shop.lib.php

Copy
// 사용후기 썸네일 생성function get_itemuselist_thumbnail($it_id, $contents, $thumb_width, $thumb_height, $is_create=false, $is_crop=true, $crop_mode='center', $is_sharpen=true, $um_value='80/0.5/3'){    global $g5, $config;    $img = $filename = $alt = "";     if($contents) {        $matches = get_editor_image($contents, false);         for($i=0; $i<count($matches[1]); $i++)        {            // 이미지 path 구함            $p = parse_url($matches[1][$i]);            if(strpos($p['path'], '/'.G5_DATA_DIR.'/') != 0)                $data_path = preg_replace('/^\/.*\/'.G5_DATA_DIR.'/', '/'.G5_DATA_DIR, $p['path']);            else                $data_path = $p['path'];             $srcfile = G5_PATH.$data_path;             if(preg_match("/\.({$config['cf_image_extension']})$/i", $srcfile) && is_file($srcfile)) {                $size = @getimagesize($srcfile);                if(empty($size))                    continue;                 $filename = basename($srcfile);                $filepath = dirname($srcfile);                 preg_match("/alt=[\"\']?([^\"\']*)[\"\']?/", $matches[0][$i], $malt);                $alt = get_text($malt[1]);                 break;            }        }        if($filename) {            $thumb = thumbnail($filename, $filepath, $filepath, $thumb_width, $thumb_height, $is_create, $is_crop, $crop_mode, $is_sharpen, $um_value);             if($thumb) {                $src = G5_URL.str_replace($filename, $thumb, $data_path);                $img = '<img src="'.$src.'" width="'.$thumb_width.'" height="'.$thumb_height.'" alt="'.$alt.'">';            }        }    }    if(!$img)        $img = get_it_image($it_id, $thumb_width, $thumb_height);     return $img;}

skin/shop/basic/itemuselist.skin.php

Copy
<?php echo get_itemuselist_thumbnail($row['it_id'], $row['is_content'], 50, 50); ?>

이부분을 수정하는거같은데 어떻게 수정해야할지 잘 모르겠어서요..ㅜㅜ

답변 1개 / 댓글 1개

그개 아니고  thumbnail 부분에서 만들어지는 거라

 

그냥  lib 안에 잇는 파일ㅇ에  thumbnail 에대한 부분이있어요

 

거기에다가 

 thumbnail_2 만들고 거기 보면 DB 에서 가져오는 커리부분이잇느데 거기서  

3번 이민지 가져오라고 검색커리부분을 바꿈녀되요

답변에 대한 댓글 1개

2017-04-24 (월) 11:30:24
lib 파일이 thumbnail.lib.php 이 파일인가요??

답변을 작성하려면 로그인이 필요합니다.