테스트 사이트 - 개발 중인 베타 버전입니다

가입인사 게시판스킨인데요. 모바일화면이 너무 비좁게 나와요ㅠㅠ 채택완료

CEBUTV 4년 전 조회 2,433

아래 가입인사소스인데요.

어디를 수정해야 옆으로 긴화면을 한줄에 하나씩 가입인사가 나오게 변경이 가능할까요?

아무리 봐도 모르겠네요 ㅠㅠ

고수님들 도와주세요.

 

[code]

if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가

 

// 선택옵션으로 인해 셀합치기가 가변적으로 변함

$colspan = 2;

 

if ($is_checkbox) $colspan++;

 

// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨

add_stylesheet('', 0);" target="_blank" rel="noopener noreferrer">https://fonts.googleapis.com/icon?family=Material+Icons">', 0);

add_stylesheet('', 0);" target="_blank" rel="noopener noreferrer">https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;700&family=Noto+Sans+KR:wght@300;400;700&display=swap" rel="stylesheet">', 0);

add_stylesheet('', 0);" target="_blank" rel="noopener noreferrer">https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css">', 0);

add_javascript('', 0);" target="_blank" rel="noopener noreferrer">https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js">', 0);

add_javascript('', 0);" target="_blank" rel="noopener noreferrer">https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js">', 0);

add_javascript('', 0);" target="_blank" rel="noopener noreferrer">https://unpkg.com/masonry-layout@4/dist/masonry.pkgd.min.js">', 0);

add_stylesheet('', 0);

 

$wr_disabled = $is_member ? '' : 'disabled';

$cm_disabled = $is_member ? '' : 'disabled';

$bo_1 = $board['bo_1'] ? explode('|', $board['bo_1']) : array(); // 자동 가입인사 문구

$bo_2 = $board['bo_2'] ? explode('|', $board['bo_2']) : array(); // 자동 환영댓글 문구

 

$member_profile_img = get_member_profile_img($member['mb_id']);

preg_match('% src="([^"]+)"%i', $member_profile_img, $matches);

$member_profile_src = $matches[1];

 

$avatar = array();

$imgdir = 'avatar';

if (is_dir($board_skin_path.'/'.$imgdir)) {

    if ($handle = opendir($board_skin_path.'/'.$imgdir)) {

        while (false !== ($file = readdir($handle))) {

            if ($file == "." || $file == "..") continue;

            if (!preg_match('%^.*\.(gif|png|jpg|jpeg)$%i', $file)) continue;

            $avatar[] = $board_skin_url.'/'.$imgdir.'/'.$file;

        }

        closedir($handle);

    }

}

$imgtxt = $board_skin_path.'/avatar.txt';

$imgarr = file_exists($imgtxt) ? file($imgtxt) : array();

foreach ($imgarr as $img) {

    $img = trim($img);

    if ($img && substr($img, 0, 1) != '#') {

        //$avatar[] = G5_URL.'/image.php?url='.urlencode($img);

        $avatar[] = $img;

    }

}

?>

 

    

         작성

        " method="post" onsubmit="return flistwrite_submit(this);">

        

        ">

        

         required value="님의 가입인사">

        

        

            

                 0) { ?> data-toggle="dropdown" data-boundary="viewport" data-display="static" data-flip="false" aria-haspopup="true" aria-expanded="false" id="avatar">

                

                    echo '';

                    echo '';

                    foreach ($avatar as $src) {

                        echo '';

                    }

                    echo '

';

                ?>

            

            

                 required>

                 accesskey="s">등록

            

        

        

    

 

/board_list_update.php" onsubmit="return fboardlist_submit(this);" method="post">

">

">

">

">

">

">

">

 

">

    

  • " class="btn_admin btn" title="관리자">관리자
  •     

  • " class="btn_b03 btn" title="RSS">RSS
  •     

        

  •         게시판 리스트 옵션

                

            

                

  •  선택삭제
  •             

  •  선택복사
  •             

  •  선택이동
  •         

            

        

        

        

  • " class="fix_btn write_btn" title="글쓰기">글쓰기
  •  

        

        

            

     카테고리

            

                

            

        

        

        

            

            $r = count($list) > 0 ? mt_rand(0, count($list)-1) : 0;

            for ($i=0; $i

                $highlight = $i == $r ? 'card-highlight' : '';

     

                

                // 작성자 회원 아이콘

                $mb_icon = $list[$i]['mb_id'] 

                   ? '

                    : '';

     

                // 작성자 회원 프로필 이미지

                $mb_pf_img = get_member_profile_img($list[$i]['mb_id']);

                preg_match('% src="([^"]+)"%i', $mb_pf_img, $matches);

                $mb_pf_src = $matches[1];

                // 글 작성시 선택한 아바타가 있다면?

                $mb_pf_img = $list[$i]['wr_link1'] 

                    ? '

                    : $mb_pf_img;

            ?>

     

     

           ">

                  

                    

                        

                            

                           

                        

                        

                            

                                

                                " class="bo_cate_link">

                                

     

                                비밀글 '; ?>

                                " class="bo_subject">

     

                                

                                    //if ($list[$i]['link']['count']) { echo '['.$list[$i]['link']['count'].']'; }

                                    //if ($list[$i]['file']['count']) { echo '['.$list[$i]['file']['count'].']'; }

     

                                    //if (isset($list[$i]['icon_file'])) echo ($list[$i]['icon_file']);

                                    //if (isset($list[$i]['icon_link'])) echo ($list[$i]['icon_link']);

                                    //if (isset($list[$i]['icon_new'])) echo ($list[$i]['icon_new']);

                                    //if (isset($list[$i]['icon_hot'])) echo ($list[$i]['icon_hot']);

                                    if (trim($list[$i]['icon_new'])) echo ' 새글 ';

                                    if (trim($list[$i]['icon_hot'])) echo ' 인기글 ';

                                ?>

                            

                            

                            

                                

                                ─ 

     

                                

                                

                                    " class="sound_only">

                                    " id="chk_wr_id_">

                                

                                

                            

     

                            

                                // 환영댓글

                                {

                                    echo '';

                                    echo '환영댓글 ';

     

                                    if ($list[$i]['comment_cnt']) { 

                                        echo '댓글+ '.$list[$i]['wr_comment'].'개';

                                    }

     

                                    echo '';

                                    foreach ($bo_2 as $greeting) {

                                        echo ''.$greeting.'';

                                    }

                                    echo '직접 작성';

                                    echo '';

                                    echo '';

                                }

     

                                // 환영댓글 출력

                                {

                                    $welcome = '';

                                    $foo = "select wr_name, wr_content from {$write_table} 

                                            where wr_parent = '{$list[$i]['wr_id']}' and wr_is_comment = 1 and wr_comment_reply = ''

                                            order by wr_comment desc 

                                            limit 10 ";

                                    $bar = sql_query($foo);

                                    for ($j=0; $tmp=sql_fetch_array($bar); $j++)

                                    {

                                        $welcome .= '';

                                        $welcome .= ''.$tmp['wr_name'].' ';

                                        $welcome .= '─ '.cut_str(preg_replace("%[\r\n]+%", " ", strip_tags($tmp['wr_content'])), 45).'';

                                        $welcome .= '';

                                    }

                                    if ($j < intval($list[$i]['wr_comment'])) {

                                        $welcome .= '+ 더보기';

                                    }

     

                                    if ($welcome) {

                                        echo ''.$welcome.'';

                                    }

                                }

                            ?>

                        

                    

                

            

     

             

            } 

            ?>

         

     

     

    자바스크립트를 사용하지 않는 경우 별도의 확인 절차 없이 바로 선택삭제 처리하므로 주의하시기 바랍니다.

     

     

        전체 

         페이지

     

        게시물 검색

        

        ">

        ">

        

        검색대상

        

            

        

        " placeholder="검색어를 입력하세요" required id="stx" class="sch_input" size="15" maxlength="20">

         검색

        

     

      

        

          /write_comment_update.php" method="post" onsubmit="return flistcomment_submit(this);">

          

          ">

          

          

          ">

          ">

          ">

          ">

          ">

          

          

            환영댓글

            

              ×

            

          

          

            

                >

            

          

          

            닫기

            >등록

          

          

        

      

     

     

     

     

    댓글을 작성하려면 로그인이 필요합니다.

    답변 2개

    채택된 답변
    +20 포인트
    s
    4년 전

    사이트주소를 알려주시면 더 쉽게 찾아서 알려드릴수 있을꺼 같습니다

    로그인 후 평가할 수 있습니다

    댓글을 작성하려면 로그인이 필요합니다.

    CEBUTV
    4년 전

     

    화면이 이런식으로 모바일에서는 찌그러져요

    로그인 후 평가할 수 있습니다

    댓글을 작성하려면 로그인이 필요합니다.

    답변을 작성하려면 로그인이 필요합니다.

    로그인