메뉴 건너뛰기

정보자료게시판

장비/디자인/구조

XE | 쓰기 버튼 클릭시 권한이 없습니다 대신 로그인 화면으로 이동하기

by 숨마 posted Apr 19, 2022
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄

/xe/modules/board/board.view.php 를 수정해야 한다.

dispBoardMessage 함수와 alertMessage 함수를 수정한다. 들어오는 메시지가 msg_not_permitted 면 로그인 화면으로 바로 이동하는 것으로 정리.

https://github.com/rhymix/rhymix/issues/853

https://xetown.com/tips/99279

등 참조.

 

// function dispBoardMessage($msg_code)

// {

// $msg = Context::getLang($msg_code);

// if(!$msg) $msg = $msg_code;

// Context::set('message', $msg);

// $this->setTemplateFile('message');

// }

    

    function dispBoardMessage($msg_code)

    {

        if($msg_code=="msg_not_permitted") {

            $script = sprintf('<script type="text/javascript"> jQuery(function(){ location.href="/?act=dispMemberLoginForm"; } );</script>');

            Context::addHtmlFooter( $script );

        }

        else

        {

        $msg = Context::getLang($msg_code);

        if(!$msg) $msg = $msg_code;

        Context::set('message', $msg);

        $this->setTemplateFile('message');

        }

    }

 

/**

* @brief the method for displaying the warning messages

* display an error message if it has not  a special design

**/

// function alertMessage($message)

// {

// $script =  sprintf('<script> jQuery(function(){ alert("%s"); } );</script>', Context::getLang($message));

// Context::addHtmlFooter( $script );

// }

    function alertMessage($message) {

        if($message=="msg_not_permitted") {

            $script = sprintf('<script type="text/javascript"> jQuery(function(){ location.href="/?act=dispMemberLoginForm"; } );</script>');

        }

        else

        {

            $script = sprintf('<script type="text/javascript"> jQuery(function(){ alert("%s"); } );</script>', Context::getLang($message));

        }

        Context::addHtmlFooter( $script );

    }


  1. A7m2 Elgato | 미러리스를 통해 화상회의 및 유투브 실시간 스트리밍하기

    Date2020.08.26 Category장비/디자인/구조 By숨마
    Read More
  2. 라즈베리파이 제로 W에 홈브릿지 - 스마트싱즈 설치하기

    Date2020.12.09 Category장비/디자인/구조 By숨마
    Read More
  3. 구글스프레드시트 들여쓰기

    Date2022.02.16 Category장비/디자인/구조 By숨마
    Read More
  4. 단축키 | 구글 스프레드 시트 맥 용 단축키

    Date2020.09.18 Category장비/디자인/구조 By숨마
    Read More
  5. 아이폰 +82 나오는 문제

    Date2020.06.15 Category장비/디자인/구조 By숨마
    Read More
  6. CentOS 6.6 에서 APM 설치, GD라이브러리 설치, SSL, FTP 설치 작업 정리

    Date2017.06.02 Category장비/디자인/구조 By라키
    Read More
  7. 홈페이지 디자인 & 로고 만들기

    Date2016.10.30 Category장비/디자인/구조 By라키
    Read More
  8. XE | 쓰기 버튼 클릭시 권한이 없습니다 대신 로그인 화면으로 이동하기

    Date2022.04.19 Category장비/디자인/구조 By숨마
    Read More
  9. 아이폰에서 갤럭시워치4 호환

    Date2021.08.21 Category장비/디자인/구조 By숨마
    Read More
  10. 청소 | 레인지 부엌 주방 환풍기 후드 기름 떨어질때, 주방 환풍기 후드 청소 해야.

    Date2020.07.29 Category장비/디자인/구조 By숨마
    Read More
  11. [아두이노] 시리얼 통신 예제

    Date2018.08.09 Category장비/디자인/구조 By라키
    Read More
  12. 지그비 통신(COORDINATOR API-ROUTER AT) 정리

    Date2018.09.16 Category장비/디자인/구조 By라키
    Read More
  13. 정품 아이폰 라이트닝 충전 케이블 단선 수리하기

    Date2019.02.10 Category장비/디자인/구조 By라키
    Read More
  14. 양면 인쇄 앞면 뒷면 정렬하기 맞추기

    Date2021.05.25 Category장비/디자인/구조 By숨마
    Read More
  15. 애플은 왜 사람들의 마음을 빼앗는가.

    Date2017.07.27 Category장비/디자인/구조 By라키
    Read More
  16. 파일질라의 갑작스러운 디렉터리 목록 조회 실패

    Date2020.09.06 Category장비/디자인/구조 By숨마
    Read More
  17. 신형 맥북프로 블루투스 끊김 현상 해결

    Date2017.03.16 Category장비/디자인/구조 By라키
    Read More
  18. 라미 만년필 분해 세척 후기

    Date2019.04.25 Category장비/디자인/구조 By라키
    Read More
  19. 극강의 가성비 에스프레소 머신 CRM3605 환불 시도기 및 펌프 교체 수리기

    Date2021.04.23 Category장비/디자인/구조 By숨마
    Read More
  20. [아두이노] ESP32 - LCD 연결하기

    Date2018.11.24 Category장비/디자인/구조 By라키
    Read More
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 ... 15 Next
/ 15
위로