채택완료

sns 연동시 로그인 후 처리

iframe 을 사용해서 본문내용이 있습니다.

sns(카톡,페북) 연동해서 로그인은 되는데.. 

결과가..  iframe안에서.. 페이지 이동을 하는데 _top이나 전체페이지를 특정 페이지로 이동 하고 싶은데..

어디를 봐야 할까요~?

|

답변 3개 / 댓글 2개

채택된 답변
+20 포인트

plugin\social\popup.php 파일을 수정해보세요.

window.opener.top.location.href = login_url+"&provider=<?php echo $provider_name; ?>";

답변에 대한 댓글 1개

자답으로처리했는데.. eyekiss님 내용도 테스트해 볼께요~

/board/plugin/social/includes/loading.php

 

if( window.opener )
{
 window.opener.name = "social_login";
 document.loginform.target = window.opener.name;
document.loginform.submit();
window.close();

//부모창 index로 이동 - 190925
//window.opener.parent.location.href = "../../index.htm";
window.opener.parent.location.href = "https://www.thelandkorea.com";
window.close();

}
else
{
document.loginform.submit();
}

스크립트에서..

window.top.location.href = "이동경로"; 

답변에 대한 댓글 1개

sns(카톡,페북) 팝업창에서 로그인후 어디에 넣어야 할지 모르겠어요.
window.top.location.href = "이동경로";

답변을 작성하려면 로그인이 필요합니다.