메뉴관련 질문드립니다.

왕경태 2024.04.11 20:45:42 상품 선택: 포탈SENSE 질문 유형: 기타 정품 도메인: http://daumerdy.co.kr 그누보드 버젼: 버전 알수없음 PHP 버젼: 버전 알수없음 질문 페이지 URL: http://해당없음 사용 브라우져: 없음 커스터마이징 유무:


--------------------------------------------------------------------------------------------------------------------------------------------------------
[ 질문시 유의사항 ]
- 원할한 상담을 위해 "유선상담 및 카톡, 텔레그램 상담" 은 진행하지 않으니 양해부탁 합니다. (*질문 게시판 에서 최대한 빠른 답변 진행 )
- 질문시 누구나 이해할수 있는 "요점"만 상세히 작성 (*필요시 질문의 요점을 스샷이미지로 체크후 첨부해 주세요. )
- 그누보드 코어관련 문제는 그누보드 공홈 질문게시판에 문의 (테마 이슈만 답변가능 합니다.)
   * 공홈질문게시판: https://sir.kr/qa/

[ 개인 커스터마이징 수정후 유의사항 ]
- "원본 html+css 파일 임의수정(커스터마이징)" 한후 "이슈(문제)"는 고객님이 자체 해결 및 상담 지원하지 않습니다.

* 구매후 "도메인 변경" 불가능 합니다.
* PHP8 버젼은 지원하지 않으니, 안정적인 php5.6 ~ php7.x 로 사용해 주세요.
--------------------------------------------------------------------------------------------------------------------------------------------------------

안녕하세요. 

한가지 질문드립니다. 

제가 급한건 3차메뉴가 급해서 우선 https://sir.kr/g5_skin/44200 여기에서 안내된대로 세팅을 해봤지만 구조상의 문제라고 하며 세팅후 화면이 안보입니다. 

초보라서 정확하게 어디가 잘못되었는지 모르는 상태입니다. 

혹시 간단하게 수정해서 3차메뉴가 가능한건지 문의드립니다. 

"php함수들 중에서 get_menu_db 함수에 3차메뉴를 배열에 넣는 부분만 추가하면 됩니다

function get_menu_db($use_mobile=0, $is_cache=false){
    global $g5;

    static $cache = array();
    
    $cache = run_replace('get_menu_db_cache', $cache, $use_mobile, $is_cache);
    
    $key = md5($use_mobile);

    if( $is_cache && isset($cache[$key]) ){
        return $cache[$key];
    }
    
    $where = $use_mobile ? "me_mobile_use = '1'" : "me_use = '1'";

    if( !($cache[$key] = run_replace('get_menu_db', array(), $use_mobile)) ){
        $sql = " select *
                    from {$g5['menu_table']}
                    where $where
                      and length(me_code) = '3'
                    order by me_order, me_id ";
        $result = sql_query($sql, false);

        for ($i=0; $row=sql_fetch_array($result); $i++) {
            
            $row['ori_me_link'] = $row['me_link'];
            $row['me_link'] = short_url_clean($row['me_link']);
            $cache[$key][$i] = $row;

            $sql2 = " select *
                        from {$g5['menu_table']}
                        where $where
                          and length(me_code) = '5'
                          and substring(me_code, 1, 3) = '{$row['me_code']}'
                        order by me_order, me_id ";
            $result2 = sql_query($sql2);
            for ($k=0; $row2=sql_fetch_array($result2); $k++) {
                $row2['ori_me_link'] = $row2['me_link'];
                $row2['me_link'] = short_url_clean($row2['me_link']);
                $cache[$key][$i]['sub'][$k] = $row2;
                
                $sql3 = " select *
                        from {$g5['menu_table']}
                        where $where
                          and length(me_code) = '6'
                          and substring(me_code, 1, 3) = '{$row['me_code']}'                          
                          and substring(me_code, 1, 5) = '{$row2['me_code']}'
                        order by me_order, me_id ";
                $result3 = sql_query($sql3);
                for ($j=0; $row3=sql_fetch_array($result3); $j++) {
                    $row3['ori_me_link'] = $row3['me_link'];
                    $row3['me_link'] = short_url_clean($row3['me_link']);
                    $cache[$key][$i]['sub'][$k]['sub'][$j] = $row3;
                }
            }
        }
    }

    return $cache[$key];
}"

이 부분의 문제인것 같아보입니다..

 

제가 3차메뉴가 정말 급한데 이렇게도 가능한지요?