묻고답하기

섬네일 오류

2018.12.05 01:28

hatali

마켓플레이스 물품 등록 후 섬네일이 보이지 않아 코드 찾아보니 아래 빨간색부분인데,

modules/marketplace/skins/default/list.html

<td class="bd_thmb">

<div style="position:relative">

        <span class="mp-condition-badge mp-condition-badge-small mp-{$document->getItemCondition()}">{$condition_list[$document->getItemCondition()]->short_name}</span>

        <img src="{$document->getThumbnail(118,77)}" />

</div>

</td>

 

아래 코드(modules/marketplace/marketplace.item.php)의 파란색부분과 관련있는 것 같은 데 어떻게 수정하면 될 지 고견 부탁합니다.

function getThumbnail($width = 80, $height = 0, $thumbnail_type = '')

{

// Return false if the document doesn't exist

if(!$this->get('thumbnails_srl')) return;

// If not specify its height, create a square

if(!$height) $height = $width;

// Get thumbnai_type information from document module's configuration

if(!in_array($thumbnail_type, array('crop','ratio')))

{

$config = $GLOBALS['__document_config__'];

if(!$config)

{

$oDocumentModel = getModel('document');

$config = $oDocumentModel->getDocumentConfig();

$GLOBALS['__document_config__'] = $config;

}

$thumbnail_type = $config->thumbnail_type;

}

// Define thumbnail information

$thumbnail_path = sprintf('files/marketplace/thumbnails/%s',getNumberingPath($this->get('thumbnails_srl'), 3));

$thumbnail_file = sprintf('%s%dx%d.%s.jpg', $thumbnail_path, $width, $height, $thumbnail_type);

$thumbnail_url  = Context::getRequestUri().$thumbnail_file;

 

 

11.png

https://busan-in.com/used_market

글쓴이 제목 최종 글
XE 공지 글 쓰기,삭제 운영방식 변경 공지 [16] 2019.03.05 by 남기남
KimJ 글쓰기 본문에 iframe 필터링 문제 질문 [6] file 2019.03.06 by KimJ
마하수리 카페24 PHP 버전 변경 방법 [6] 2019.03.06 by 마하수리
찌우닝 닷홈에서 웹호스팅 XE회사테마 문의합니다.. [2] 2019.03.06 by 찌우닝
디씨넷 글쓰기 화면 에러문구 어떻게 없애나요? [4] file 2019.03.05 by 디씨넷
sitara 댓글이 있는지 없는지 어떻게 아나요? [6] 2019.03.05 by sitara
앤더슨 첨부파일 사이즈를 늘리고 싶어요 ㅠ [4] file 2019.03.05 by 앤더슨
앤더슨 첨부파일 사이즈 변경 해결했습니다.  
검은내일 cafe24 서브도메인 질문입니다 [1] 2019.03.05 by LuisK
sitara if문 좀 가르쳐주세요 ㅠㅠ [2] 2019.03.05 by sitara
chorok contact board skin 에서 개인정보취급방침 동의서 출력 [5] file 2019.03.04 by DoorWeb
wtst 스케치북5 list.html에 내용추가하고싶습니다 [2] file 2019.03.04 by wtst
디씨넷 카카오스토리에 링크방식으로 글을 올리면... file  
chorok 스케치북 게시판 스킨 에디터 박스(?)가 서로 다른 이유?? [4] file 2019.03.03 by chorok
우랑탕탕이 Contact 게시판스킨, 모바일 스킨 이거 안되는 분들 [2] 2019.03.03 by chorok
V6DS 홈페이지 오류 - 깨짐현상 [2] file 2019.03.03 by V6DS
sitara 스케치북 글보호 기능 오류 메세지 관련 file  
추기헌 로그인 오류 [1] 2019.03.03 by sejin7940
V6DS 갤러리에 올린 사진들이 회전이 되어 있어요... [2] 2019.03.02 by V6DS
구름의저편 마이그레이션 질문입니다  
Genoss 위젯 크기가 변경 되지 않습니다 [6] 2019.03.02 by Genoss
펀고리 xe3 설치 오류 [2] 2019.03.02 by 펀고리
HTML왕초보 도와주세요!! 클릭 한번으로 창 두개를 띄우고 싶어요 [2] 2019.03.01 by HTML왕초보
검은고양이냐옹 php 확장 필수 모듈 설치 봐주실 수 있을까요? [2] 2019.03.01 by 검은고양이냐옹
sitara 요청한 기능을 실행할 수 있는 권한이 없습니다 페이지 어딨나요? [2] 2019.02.28 by sitara
현님v XEDITION 배경색 문의드립니다. [2] file 2019.02.28 by 우랑탕탕이
불꽃남자cc4e1 메일 발송/발송자 이메일 [1] 2019.02.28 by 불꽃남자cc4e1
코딩펀 로그인 창의 텍스트 박스에 노란색 음영이 나오는 이유는 [1] file 2019.02.28 by DoorWeb
검은고양이냐옹 내부 아이피로 XE 사이트 구축 할 수 있나요? [2] 2019.02.27 by 검은고양이냐옹
sitara 사용자정의 폼 관련 [2] 2019.02.27 by sitara
sitara 조건문 좀 알려주세요 [2] 2019.02.27 by sitara