메뉴 건너뛰기

정보자료게시판

장비/디자인/구조

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에서 쓸만한 간단한 마크다운 컴포넌트 추천

    Date2018.01.19 Category장비/디자인/구조 By라키
    Read More
  2. XE사이트가 네이버 구글 등에 사이트맵 제출이 되지 않는 경우

    Date2021.01.07 By숨마
    Read More
  3. XE3 의 가장 큰 문제점

    Date2020.07.03 Category장비/디자인/구조 By숨마
    Read More
  4. XE3 설치하기

    Date2019.06.19 By라키
    Read More
  5. XE3 단점

    Date2020.04.24 Category장비/디자인/구조 By모키
    Read More
  6. XE, CKEditor 업데이트 및 SlideShow, KCFinder 설치

    Date2020.07.12 Category장비/디자인/구조 By숨마
    Read More
  7. XE 홈페이지 메뉴 클릭했는데 자꾸 엉뚱한데로 갈때

    Date2023.01.31 Category코딩 및 XE 관련 BySumma
    Read More
  8. xe 쉬운 설치가 안될때

    Date2017.12.20 Category장비/디자인/구조 By라키
    Read More
  9. xe 소셜로그인 설정 기본 자료

    Date2022.04.21 Category장비/디자인/구조 ByMsjcLaki
    Read More
  10. xe 소셜 로그인, 세상 편하다.

    Date2022.04.21 Category장비/디자인/구조 ByMsjcLaki
    Read More
  11. XE 글쓰기 등록 클릭 반응 없음

    Date2020.11.28 By숨마
    Read More
  12. XE | 쓰기 버튼 클릭시 권한이 없습니다 대신 로그인 화면으로 이동하기

    Date2022.04.19 Category장비/디자인/구조 By숨마
    Read More
  13. WMF 압력솥 단점

    Date2020.10.26 Category장비/디자인/구조 By숨마
    Read More
  14. WMF 냄비 유리뚜껑 파손

    Date2020.09.04 Category장비/디자인/구조 By숨마
    Read More
  15. VR 입문

    Date2020.07.20 Category장비/디자인/구조 By숨마
    Read More
  16. Virtualbox에 해놀로지 6.1 설치하기

    Date2018.05.29 Category장비/디자인/구조 By라키
    Read More
  17. VirtualBox 가상디스크 복사하기

    Date2018.02.05 Category애플/맥 Bylaki
    Read More
  18. TVING | 라라랜드

    Date2020.06.01 Category문화/연예/가십 By숨마
    Read More
  19. Tuya 4ch zigbee relay switch 투야 4채널 지그비 릴레이 스위치 에러

    Date2023.07.18 Category장비/디자인/구조 BySumma
    Read More
  20. ST(스마트씽스) 연동 지그비 솔레노이드 밸브 자작기

    Date2021.05.16 Category장비/디자인/구조 By숨마
    Read More
Board Pagination Prev 1 ... 34 35 36 37 38 39 40 41 42 43 ... 45 Next
/ 45
위로