메뉴 건너뛰기

app

[XE] 게시판 팁

lispro062013.12.10 19:31조회 수 2982댓글 1

    • 글자 크기

list_count와 page_count 설정


board.view.php 에서

            if($this->module_info->list_count) $this->list_count = 10;//$this->module_info->list_count;

            if($this->module_info->page_count) $this->page_count = 10;//$this->module_info->page_count;


10으로 설정했다.



게시판의 첨부이미지 표시

[skins/xe_####/skin.xml]


  <var name="auto_img_insert" type="select">

            <title xml:lang="ko">첨부 이미지 표시</title>

            <options value="N">

                <title xml:lang="ko">N</title>

                <title xml:lang="en">N</title>

                <title xml:lang="jp">N</title>

                <title xml:lang="zh-CN">N</title>

                <title xml:lang="es">N</title>

            </options>

            <options value="Y">

                <title xml:lang="ko">Y</title>

                <title xml:lang="en">Y</title>

                <title xml:lang="jp">Y</title>

                <title xml:lang="zh-CN">Y</title>

                <title xml:lang="es">Y</title>

            </options>

   <default>N</default>

      <description xml:lang="ko">

       첨부파일이 이미지 파일이면 자동으로 본문에 삽입하시겠습니까?

            </description>

      <description xml:lang="en">

       insert imagefile to maindisplay?

            </description>

      <description xml:lang="jp">

       insert imagefile to maindisplay?

            </description>

      <description xml:lang="zh-CN">

       insert imagefile to maindisplay?

            </description>

      <description xml:lang="es">

       insert imagefile to maindisplay?

            </description>

        </var>


[skins/xe_####/view_document.html]


{$oDocument->getContent()}

대신에


<!--@if($module_info->auto_img_insert!='N')-->

    {@ $uploaded_list = $oDocument->getUploadedFiles() }

{@$picture=""}

                    <!--@foreach($uploaded_list as $key => $file)-->

                    {@$file_explode=explode(".",strtoupper($file->source_filename))}

                    <!--@if($file_explode[1]=="GIF" || $file_explode[1]=="JPG" || $file_explode[1]=="JPEG" || $file_explode[1]=="PNG" || $file_explode[1]=="BMP")-->

                    {@$picture=$picture."<p align='center'><img src='".$file->uploaded_filename."' style='' editor_component='image_link' />"}

                    <!--@end-->

                    <!--@end-->

                    <!--@if($picture)-->

                    {@ $cont=$oDocument->get('content')}

                    {@ $oDocument->add('content',$cont.$picture)}

                    <!--@end-->

                    {$oDocument->getContent()}

                    <!--@else-->

                    {$oDocument->getContent()}

     <!--@end-->

lispro06 (비회원)
    • 글자 크기
[XE] 애드온 팁 (by lispro06) [ASM] strcpy (by suritam9)

댓글 달기

댓글 1
lispro06
2015.05.15 조회 1649
lispro06
2015.05.15 조회 1618
lispro06
2015.05.15 조회 2516
lispro06
2014.08.16 조회 1765
lispro06
2014.02.08 조회 4010
lispro06
2013.12.11 조회 1667
lispro06
2013.12.10 조회 2982
suritam9
2013.12.06 조회 2259
suritam9
2013.12.02 조회 3447
suritam9
2013.11.30 조회 2149
suritam9
2013.11.26 조회 1645
suritam9
2013.08.23 조회 7309
suritam9
2013.08.23 조회 1847
suritam9
2013.06.28 조회 2335
첨부 (0)
위로