묻고답하기
마켓플레이스 물품 등록 후 섬네일이 보이지 않아 코드 찾아보니 아래 빨간색부분인데,
2020.05.04 18:10
마켓플레이스 물품 등록 후 섬네일이 보이지 않아 코드 찾아보니 아래 빨간색부분인데,
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;
어떻게 해야할까요...
댓글 4
-
sejin7940
2020.05.04 21:59
-
쿠쿠
2020.05.04 22:05
-
쿠쿠
2020.05.07 21:18
<img src="{$document->getThumbnail(118,77,'crop')}" />
<img src="{$document->getThumbnail(118,77,'ratio')}" />
어디가문제인까요
-
sejin7940
2020.05.08 01:36
마켓플레이스 자료의 경우
자주 사용하는 자료가 아니다보니.. 저도 확인하려면 소스 자체를 뜯어봐야해서
( 여기서 드리는 간단한 답변은 보통 제 머리속에 있는 걸 답변드리는거여서요 ^^;; )
도저히 안 되시면 차라리 제작의뢰 같은 형태로 해서
해당 자료의 버그(?) 를 고쳐달라고 의뢰하시는게 더 빠르실거예요.
글쓴이 | 제목 | 최종 글 |
---|---|---|
XE | 공지 글 쓰기,삭제 운영방식 변경 공지 [16] | 2019.03.05 by 남기남 |
손주사랑 | 좌측메뉴 이동이 정말 안되네요 부탁드립니다 [3] | 2021.03.10 by 손주사랑 |
절대킹빠 | php 8.0.3에서는 xe가 호환이 안되는건가요?? [1] | 2021.03.10 by YJSoft |
봄비 | 웹호스팅 이전 파일 업로드 의뢰 [1] | 2021.03.10 by YJSoft |
여시아빠 | xe1.5에서 1.8로 업데이트 방법 문의 드립니다. [1] | 2021.03.10 by YJSoft |
-fa88f | ssh 계정에 관하여... [1] | 2021.03.10 by YJSoft |
댕2s | 모든 메뉴를 클릭하면 인덱스메이지로 돌아갑니다... [1] | 2021.03.10 by YJSoft |
부산하늘 | 확장변수에 숫자만 입력되게 할려면~ | |
올파드 | 게시판관리 질문드립니다. [2] | 2021.03.01 by 바다 |
혜연 | 게시판 첨부파일 버튼(플래쉬버튼) 문제좀 부탁드립니다. [9] | 2021.02.28 by 파워 |
최정한 | 게시판에서 첨부된 이미지가 키보드로 인식이 안됩니다. | |
민들레 | 데이터베이스 복원 문의 [1] | 2021.02.26 by sejin7940 |
깜주 | xe코어 1.11.6 설치시 apm 버전 도움요청합니다. | |
한비아빠 | xpresseditor를 사용중입니다. 문의 드립니다. [2] | 2021.02.24 by 한비아빠 |
kook1e | AXISJ AXUpload5(HTML5) 에디터 사용함에도 파일첨부 버튼이 없네요 [3] | 2021.02.24 by Toby |
녹용껌 | 외부페이지 include 문제 [1] | 2021.02.23 by 오뎅궁물 |
행복아빠 | 사이트 메뉴를 중앙 정렬하고 싶은데요.. | |
hssc | 홈페이지 메인에 유튜브 넣을때 로딩 속도 개선이 가능할까요? [1] | 2021.02.19 by DoorWeb |
가입명 | 하나의 아이디로 동시 다른장소에서 로그인 막는 방법없을까요? [4] | 2021.02.19 by 가입명 |
부산하늘 | 콤마 입력 관련하여~~ | |
최갑균 | 글 작성시 태그를 쓰면 글이 등록이 안됩니다. |
사이트 주소가 없으니 직접 가서 확인은 못하고
<img src="{$document->getThumbnail(118,77)}" />
부분을
<img src="{$document->getThumbnail(118,77,'crop')}" />
이나
<img src="{$document->getThumbnail(118,77,'ratio')}" />
로 한번 바꿔보세요..