xe 글쓰기, 글읽기 권한 없을때 로그인창으로 바로 이동시키기
/**
* @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 );
}
SSL 사용자는 아래처럼 https 와 포트넘어 및 풀 주소를 넣어주는것이 좋다.
https://www.도메인.com:포트넘버/index.php?act=dispMemberLoginForm&mid=원하는위치
댓글 2
board.view.php 에 해당 팁을 적용, 1.8.13 버젼에서 테스트를 해보면 작동을 하지 않는것 같습니다.