메뉴 건너뛰기

정보자료게시판

장비/디자인/구조

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. xe 소셜 로그인, 세상 편하다.

    Date2022.04.21 Category장비/디자인/구조 ByMsjcLaki
    Read More
  2. XE | 쓰기 버튼 클릭시 권한이 없습니다 대신 로그인 화면으로 이동하기

    Date2022.04.19 Category장비/디자인/구조 By숨마
    Read More
  3. 기적의 메모법

    Date2022.04.18 Category학습/연구 By숨마
    Read More
  4. MAIL: 451 4.7.1 Service unavailable synology

    Date2022.04.10 By숨마
    Read More
  5. 민팃 휴대폰 팔기

    Date2022.04.06 Category장비/디자인/구조 By숨마
    Read More
  6. 오늘 할일

    Date2022.04.06 Category여행/맛집/음식 By숨마
    Read More
  7. 기다리고 있는 것들, 구매한 것들 간단 코멘트

    Date2022.04.04 Category장비/디자인/구조 By숨마
    Read More
  8. 균형에 대한 집착이 완성한 전기차, GV70 전동화 모델

    Date2022.04.03 Category전기차 By숨마
    Read More
  9. 원천세 지방소득세 납부

    Date2022.04.01 By숨마
    Read More
  10. 더존 자료수집 및 자동분개 수집실패

    Date2022.04.01 Category장비/디자인/구조 By숨마
    Read More
  11. Blynk 대신 Arduino IoT Cloud를 써볼까??

    Date2022.03.27 Category장비/디자인/구조 By숨마
    Read More
  12. 전기차 모터룸을 물로 세차할 수 있나요?

    Date2022.03.27 Category전기차 By숨마
    Read More
  13. 전기차에 화재 발생시

    Date2022.03.27 Category전기차 By숨마
    Read More
  14. 프리뷰 전자제어 시스템 사용시 주의할 점

    Date2022.03.27 Category전기차 By숨마
    Read More
  15. 전기차가 절대로 건널 수 없는 수심과 하면 절대 안되는 행동

    Date2022.03.27 Category전기차 By숨마
    Read More
  16. 일반도로 주행시 험로 주행 모드를 선택하면?

    Date2022.03.27 Category전기차 By숨마
    Read More
  17. 새로 추가된 경사로 저속 주행 시스템

    Date2022.03.27 Category전기차 By숨마
    Read More
  18. 전기차 주행 중 브레이크가 고장나면?

    Date2022.03.27 Category전기차 By숨마
    Read More
  19. 자율주행의 한계

    Date2022.03.27 Category전기차 By숨마
    Read More
  20. 차량 에어컨 냄새 안나게 사용하기

    Date2022.03.27 Category전기차 By숨마
    Read More
Board Pagination Prev 1 ... 3 4 5 6 7 8 9 10 11 12 ... 45 Next
/ 45
위로