아~ 답답해서 염치불구하구 팔공산님에게 질문을 합니다.
XE외부페이지에서 또 다른 외부페이지로 링크를 걸면서 로그인을한 사람만 보여지도록 할려합니다.
해결방법 좀 알려주세여.
<?if($member[level]>=10){?><링크주소><?}else{?><링크주소><?}?>
이런식으로는 안되는것인가요?
댓글 5
-
네 // 감사합니다.
테스트를 해보고 답글을 올리겠습니다.
-
제가 질문이 조금 잘못된듯합니다.
소스를 적용하니 이동한페이지가 고정이 되네요.
다시 질문내용을 보충합니다.
외부페이지로 메인을 만들었고 배너에서 링크를걸면 외부페이지로 만든 내용이 보여지게 됩니다.
그런데 이것을 로그인을 해서 볼수있도록 하고 싶은겁니다.
또 한가지 더 질문입니다.
게시판의 글쓰기페이지 주소를 복사하여 링크를 걸어보니 로그인하고는 상관없이 이동이 되더군요.
이런것을 로그인한 사람만 이동할수는 없는지요.
-
<!--@if($logged_info->member_srl)-->로그인한 회원만 보여지는 배너<!--@end-->
-
팔공산님 땡큐~
이거 잘됩니다.
<!--@if($logged_info->member_srl)-->
<script language="javaScript">
location.href="이동할주소";
</script>
<!--@end-->
제가 외부페이지를 사용을 해 본적이 없어서 정확한 답변은 드리기 어렵지만
아마 위와 같이 해보시면 로그인한 회원은 "이동할주소"로 접속이 될 것 같습니다.