적용된 테마의 게시판에 적용한다.




/html/theme/temp1/skin/board/gallery/view.skin.php

--> 기존 설정 영역을 주석처리하고...아래 코드로 변경한다.




        //  이미지 가로배치 시작  ( 첨부로 올린 이미지에 적용됨, 에디터 삽입 이미지는 적용 안됨 )---------------------------

        $n = 3;  //  <-------------------- 한줄당 표시하고픈 이미지 갯수 

        //$wid = (int)(1/$n*100); 

        $wid = (int)($board[bo_image_width]/$n);

        echo "<table width='100%' cellpadding=3 cellspacing=0 border=0 align='center'>";

        echo "<tr align='center'>";

        for ($i=0; $i<=count($view[file]); $i++) {

                if (($view[file][$i][view]) && $i>0 && ($i%$n == 0)) {

                        echo "</tr><tr>";

                }

        if ($view[file][$i][view]) {

                echo "<td width='370px' align='center'>";

                echo get_view_thumbnail($view[file][$i][view]);

                echo "<br><br>". get_view_thumbnail($view[file][$i][content]); // 이미지 설명글 

           }

        }


        // 부족한 <td> 갯수 맞추는 작업 

        if ((count($view[file])-1) % $n != 0) {

        $td_cnt = $n - ((count($view[file])-1)%$n);

        for ($t=0; $t<$td_cnt; $t++) {

        echo "<td width='370px'>&nbsp;</td>";

        }

        }


        echo "</tr></table>";

        echo "<p>";

        // 여기까지  이미지 가로 배치 수정 끝. ---------------------------------------------------------------------------------  



'배워서 남주자 > PHP' 카테고리의 다른 글

[php.ini] 용량 설정  (0) 2018.09.07

php.ini




/etc/php.ini      --->  메일서비스를 위해 세팅된 내용으로 disable_funcions 기능을 제한하지 않았음.





[PHP]


engine = On

short_open_tag = Off
precision = 14
output_buffering = 4096

zlib.output_compression = Off

implicit_flush = Off
unserialize_callback_func =
serialize_precision = -1
disable_functions =
disable_classes =

zend.enable_gc = On

expose_php = On
max_execution_time = 30
max_input_time = 3600
memory_limit = 5120M
error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT
display_errors = Off
display_startup_errors = Off
log_errors = On
log_errors_max_len = 1024
ignore_repeated_errors = Off
ignore_repeated_source = Off
report_memleaks = On
track_errors = Off
html_errors = On
variables_order = "GPCS"
request_order = "GP"
register_argc_argv = Off
auto_globals_jit = On
post_max_size = 4096M
auto_prepend_file =
auto_append_file =
default_mimetype = "text/html"
default_charset = "UTF-8"
doc_root =
user_dir =
enable_dl = Off

file_uploads = On

upload_tmp_dir = /tmp

upload_max_filesize = 3072M

max_file_uploads = 20

allow_url_fopen = On

allow_url_include = Off

default_socket_timeout = 60

[CLI Server]

cli_server.color = On
[Date]
date.timezone = Asia/Seoul;
[filter]
[iconv]
[intl]
[sqlite3]
[Pcre]

pcre.jit=0

[Pdo]
[Pdo_mysql]
pdo_mysql.cache_size = 2000

pdo_mysql.default_socket=

[Phar]
[mail function]
sendmail_path = /usr/sbin/sendmail -t -i
mail.add_x_header = On
[ODBC]
odbc.allow_persistent = On
odbc.check_persistent = On
odbc.max_persistent = -1
odbc.max_links = -1
odbc.defaultlrl = 4096
odbc.defaultbinmode = 1
[Interbase]

ibase.allow_persistent = 1

ibase.max_persistent = -1
ibase.max_links = -1
ibase.timestampformat = "%Y-%m-%d %H:%M:%S"
ibase.dateformat = "%Y-%m-%d"
ibase.timeformat = "%H:%M:%S"
[MySQLi]
mysqli.max_persistent = -1
mysqli.allow_persistent = On
mysqli.max_links = -1
mysqli.cache_size = 2000
mysqli.default_port = 3306
mysqli.default_socket =
mysqli.default_host =
mysqli.default_user =
mysqli.default_pw =
mysqli.reconnect = Off
[mysqlnd]
mysqlnd.collect_statistics = On
mysqlnd.collect_memory_statistics = Off

[PostgreSQL]

pgsql.allow_persistent = On
pgsql.auto_reset_persistent = Off
pgsql.max_persistent = -1
pgsql.max_links = -1
pgsql.ignore_notice = 0
pgsql.log_notice = 0
[bcmath]
bcmath.scale = 0
[browscap]
[Session]
session.save_handler = files
session.use_strict_mode = 0

session.use_cookies = 1

session.use_only_cookies = 1
session.name = PHPSESSID
session.auto_start = 0
session.cookie_lifetime = 0
session.cookie_path = /
session.cookie_domain =
session.cookie_httponly =
session.serialize_handler = php
session.gc_probability = 1
session.gc_divisor = 1000
session.gc_maxlifetime = 1440
session.referer_check =
session.cache_limiter = nocache
session.cache_expire = 180
session.use_trans_sid = 0
session.sid_length = 26
session.trans_sid_tags = "a=href,area=href,frame=src,form="
session.sid_bits_per_character = 5
[Assertion]
zend.assertions = -1

[mbstring]

[gd]
[exif]

[Tidy]

tidy.clean_output = Off
[soap]
soap.wsdl_cache_enabled=1
soap.wsdl_cache_dir="/tmp"
soap.wsdl_cache_ttl=86400
soap.wsdl_cache_limit = 5
[sysvshm]
[ldap]
ldap.max_links = -1
[dba]
[curl]
[openssl]









+ Recent posts