모듈에서 alert를 띄우는데 레이어로 띄울껀데요...
        if ( $mode == "msg_not_permitted" ) { 
            print (" <Script Language=JavaScript>alert('권한 부족'); history.go(-1);</Script>");
        }elseif ( $mode == "msg_not_permitted" ) { 
            print (" <Script Language=JavaScript>alert('잘못된 경로로 접근'); history.go(-1);</Script>");
        }

 

 

https://xe1.xpressengine.com/index.php?mid=download&package_id=21752944

 

이거 켜놧는데 적용이 안되는데 무슨 문제일까요??? ㅠㅠ

  • profile
    저 애드온이 최신버젼에서 작동 안하는걸로 알고 있습니다.
  • profile profile
    작동은하고있어요 ^^ 지금 젤 최신버전 사용중입니다. ^^
  • profile profile
    그렇군요 몇개월전에 쓰려다가 안불러와지길래 안되는구나 해서 그냥 넘겼습니다만..
  • profile profile
    ㅎㅎ 그렇군요 ^^
  • ?
    저도 궁금해요 모듈에서 alter 대신에 레이어띄우는 방법 ㅠ_ㅠ 누가 예제소스좀 부탁드려요
  • ? profile
    그 Oops 뜨는 페이지에서 alert 갑을 주고 거기서 띄우게 처리하고 history로 뒤로가거나 location 줘서 레이어 정상 작동하게 했습니다 저는 ^^ 해결햇어요 ^^
  • ? profile
    그리고 모듈에서 하시려면
    function seriesmessage($code) {
    Context::addJsFile("./addons/layerAlert/js/layerAlert.js");
    Context::addCSSFile("./addons/layerAlert/css/layerAlert.css");

    echo "<style>.xe_mobile{display:none;}</style><script>var error_code = '$code';</script>";

    Context::addJsFile("/modules/모듈명/js/code.js");
    }
    이런함수 만드셔서 code에따라 alert 처리를 부르시면됩니다. ^^
  • ? profile

    증거.png

    증거2.png

     

    증거이옵니다 ^^

     

  • profile profile
    우와, 이거... 좋아보여요 ㅠㅠ..
  • profile profile
    ㅎㅎ 좋아보이신다니 감사합니다. ^^ 근대 404는 기존꺼에서 수정해서 쓸려구여 alert 보단 그게 맞는거 같네요 ^^
  • profile ?
    캄사합니다!! 레이아웃을 꾸미면 더 좋겠네요~@.@
  • profile profile
    나머지는 alert 404는 페이지? 와.. 탐나는데요? ㅜㅜ