We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
modules/board/board_view.php /** * @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 ); }
The text was updated successfully, but these errors were encountered:
권한이 로그인되어있는데 없을수도 있고 로그인이 안되어있는 상황이라 없는걸수도 있고.. 다양한 조건이 잇다고 생각되어서..
Sorry, something went wrong.
@bjrambo 그건 그런데 실상에서 생각해보면 로그인이 안되는건 또 다른 문제라서...
차라리 운영자에게 로그인이 풀려요 라고 오는게 더 빠른 피드백이기도 하고..
아무튼 로그인으로 가는것 그자체는 나쁘진 않은것 같아요
'권한이 없습니다' 관련 이슈는 통합(?)하는게 어떨까싶어서.. (이슈를 줄이고싶...) #95 #626
추가로 제가 타운에 질문했던 링크도 슬쩍... https://www.xetown.com/qna/303186
중복 #95 #626
Fix #95 #626 #853 #1278 display login form if board action is not per…
b1b25ca
…mitted and the user is not logged in
No branches or pull requests
권한이 없습니다 라고 딱 나오고 끝나는게 아니라 로그인 창으로 이동까지 하면 좋을 듯 하여 제안 해봅니다. 아래는 관련 팁인데..xe용 입니다...
modules/board/board_view.php
/**
* @brief the method for displaying the warning messages
* display an error message if it has not a special design
// 원래의 코드는 위처럼 주석처리후 아래와 같이 삽입
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 );
}
The text was updated successfully, but these errors were encountered: