묻고답하기
게시판에 이미지 첨부파일 목록 안보이게 하려면요
2015.06.13 13:35
<!-- // 첨부 파일 출력 // --> <dl class="attachedFile" cond="$oDocument->hasUploadedFiles() && $module_info->display_file !='N'"> <dt> <img src="./img/common/iconFiles.gif" width="27" height="11" alt="{$lang->uploaded_file}" /> <button type="button" class="fileToggle" onclick="jQuery(this).parents('dl.attachedFile').toggleClass('open');return false;">{$lang->uploaded_file} ({$oDocument->get('uploaded_count')})</button> </dt> <dd> <ul class="files"> {@ $uploaded_list = $oDocument->getUploadedFiles() } <li loop="$uploaded_list=>$key, $file"><a href="{getUrl('')}{$file->download_url}">{$file->source_filename} <span class="bubble">[File Size:{FileHandler::filesize($file->file_size)}/Download:{number_format($file->download_count)}]</span></a></li> </ul> </dd> </dl>
이곳을 수정해야 하는데 어떻게 하면 될지 도움좀 주세요
댓글 11
-
불금
2015.06.13 13:58
-
불금
2015.06.13 14:02
안된다면 &&를 ||로 바꿔보세요
예전에 송동우님이 답변해주신걸 참고했습니다.
-
착한동구
2015.06.13 14:06
감사합니다 저렇게 바꿔주니 오류가 생기네요
Parse error: syntax error, unexpected '{' in /host/home2/chken/html/files/cache/template_compiled/d85310b34d0aa6488ebaa5819850a985.compiled.php on line 98
-
불금
2015.06.13 14:26
해당 오류는 문법 오류입니다
제가 잘못적었거나 잘못 옮겨 적은신 경우 일겁니다
제가 따로 테스트는 해볼상황이 아니라..
송동우님 코드를 거의 그대로 가져온곳이기 때문에 별문제는 없을텐데요. -
착한동구
2015.06.13 14:50
감사합니다 잘못 적은게 아니고 게시판이 달라서 그런것같습니다
-
ehii
2015.06.13 17:06
<!-- // 첨부 파일 출력 // --> <dl class="attachedFile" cond="$oDocument->hasUploadedFiles() && $module_info->display_file !='N'"> <block loop="$oDocument->getUploadedFiles()=>$key,$file"> {@ $filelist_cond = !preg_match('/\.jp(e)?g$|\.gif$|\.bmp$|\.tif$|\.png$/i',$file->source_filename);} <block cond="$filelist_cond"> {@ $filecount +=1;} </block> </block> <dt> <img src="./img/common/iconFiles.gif" width="27" height="11" alt="{$lang->uploaded_file}" /> <button type="button" class="fileToggle" onclick="jQuery(this).parents('dl.attachedFile').toggleClass('open');return false;">{$lang->uploaded_file} ({$filecount})</button> </dt> <dd> <ul class="files"> <block loop="$oDocument->getUploadedFiles()=>$key,$file"> {@ $filelist_cond = !preg_match('/\.jp(e)?g$|\.gif$|\.bmp$|\.tif$|\.png$/i',$file->source_filename);} <li cond="$filelist_cond"><a href="{getUrl('')}{$file->download_url}">{$file->source_filename} <span class="bubble">[File Size:{FileHandler::filesize($file->file_size)}/Download:{number_format($file->download_count)}]</span></a></li> </block> </ul> </dd> </dl>
이렇게 해보세요.
-
불금
2015.06.13 17:16
간단하게 생각해보면
10번줄을
<li loop="$uploaded_list=>$key, $file" cond="$file->direct_download != 'Y'">
이렇게 바꿧으면 됬을거 같은데요.
-
ehii
2015.06.13 17:31
direct_download의 경우 이미지파일 외에 mp3나 swf 등의 경우에도 Y 로 지정됩니다 ㅜㅠ
-
불금
2015.06.13 17:31
아..
-
착한동구
2015.06.13 20:49
감사합니다 첨부는 나오는데 () 다운은 숨겨져서 나오네요 용량 작은 exe파일 올려보니 첨부(1)나오고요 첨부가 사라진건 아니지만 비슷한 방법 응용해 볼수 있겠군요 아직 실력이 없어서 안되겠지만 감사합니다
-
착한동구
2015.06.13 20:57
direct_download 부분이 없네요 업로드를 플래쉬로 사용하기 때문 아닐까 합니다
글쓴이 | 제목 | 최종 글 |
---|---|---|
XE | 공지 글 쓰기,삭제 운영방식 변경 공지 [16] | 2019.03.05 by 남기남 |
GG1627a | 이미지맵 특정부분만 링크가 안먹히네요 [1] | 2016.02.14 by DoorWeb |
구름의저편 | 애드온 질문입니다. | |
해뜰참 | 위젯이 홈페이지에 적용이 안되네요. ㅠㅠ [1] | 2016.02.14 by DoorWeb |
줄리아22 | 이메일로 비밀번호 잦기 기능이요, 없애거나 다른 항목까지 추가할 수 있는지요 [1] | 2016.02.14 by 불금 |
샤랄라 | 메인화면 설정 게시판화면말고 처음 셋팅화면으로 돌리는방법 [1] | 2016.02.14 by 휘즈 |
횡단보도 | xe 코어 쉬운설치를 했다가 오류가 났는데 복구는 불가능한건가요ㅠㅠ [1] | 2016.02.14 by 휘즈 |
tohappy | 외부페이지에 댓글 추가 가능할까요? | |
c*** | 이미지 슬라이더 그림 크기를 고정시키고 싶어요 | |
XESTUDIO | 통합검색을 사용할 수 없습니다 [3] | 2016.02.13 by 배삼열 |
바다사랑 | 고수님 도와주세요~~~ [1] | 2016.02.13 by gnurails |
말금 | 네이버 게시글 관련 [1] | 2016.02.13 by gnurails |
bncPlan | xe가 문제인지, 제가 문제인지ㅠㅠ [2] | 2016.02.13 by gnurails |
xpressengine01 | 로그인 문제 [3] | 2016.02.13 by xpressengine01 |
XESTUDIO | 썸네일이 존재하지 않을때 [2] | 2016.02.13 by XESTUDIO |
안드로이더스스 | 설정문제인가요?... [1] | 2016.02.13 by 불금 |
c*** | xe 자료실 같은 스킨 있나요? | |
star_key | 어디가 잘못되었는지 해석좀 부탁드립니다. | |
안녕하세요5000 | xe 카운터 예전 제로.보드4 카운터처럼 방문할시 카운팅되도록 못하나요 [7] | 2016.02.13 by 안녕하세요5000 |
dbaseman | 도메인 포트 변경시 게시판이 열리지 않습니다. | |
gnurails | 회원 그룹 없이 로그인 후 권한 조정 |
{@ $uploaded_list = $oDocument->getUploadedFiles() }
<li loop="$uploaded_list=>$key, $file"><a href="{getUrl('')}{$file->download_url}">{$file->source_filename} <span class="bubble">[File Size:{FileHandler::filesize($file->file_size)}/Download:{number_format($file->download_count)}]</span></a></li>
</ul>
이거를
{@ $uploaded_list = $oDocument->getUploadedFiles() }
<ul>
<!--@foreach($uploaded_list as $key => $file)-->
{@
$file_ext = substr($file->source_filename,-4);
$file_ext = strtolower($file_ext);
}
<!--@ if( $file_ext != ".jpg" && $file_ext != ".gif" && $file_ext != ".png" )-->
<li><a href="{getUrl()}{$file->download_url}">{$file->source_filename}({FileHandler::filesize($file->file_size)})({number_format($file->download_count)})</li>
<!--@ end--></a>
<!--@end-->
</ul>
로 바꿔보세요