Skip to content

우리끼리 가치할래?우리끼리 가치할래?

소셜로그인.png

소셜 로그인 구글 api 픽스 내용

 

픽스 내용

개발자 구버전 -> 구글 fix 버전 수정 내용

lang/lang.xml
libs/google.lib.php
그리고 m.skins랑 skins 폴더에 있는 css 파일들과 구글 아이콘들

그리고 conf 정보 파일에서 구글픽스 버전임을 명시

 

경로

루트 /modules/socialxe/skins  와 m.skins 안의 css 파일의

 

디폴트 css 27~32 라인 구글 관련 스타일 편집

 

경로

루트/modules/socialxe/libs/google.lib.php


google.lib.php

이후

오브젝트 충돌을 일이키는

return new Object();  를

return new BaseObject();  로 변경 이후

9라인

const GOOGLE_PEOPLE_URI = 'https://www.googleapis.com/plus/v1/people/'; 을


const GOOGLE_PEOPLE_URI = 'https://www.googleapis.com/userinfo/v2/';

로 변경


97라인 이메일 주소

    // 이메일 주소
            if($profile['emails'])
            {
                foreach($profile['emails'] as $key => $val)
                {
                    if($val['type'] == 'account' && $val['value'])
                    {
                        $this->setEmail($val['value']);

                        break;
                    }
                }
            }



// 이메일 주소
$this->setEmail($profile['email']);

로 모두  변경

수정전 113 라인
수정 후코드 는 101 라인

$this->setName($profile['displayName']);  


$this->setName($profile['name']);

로 변경

*추가

수정후 코드 102 라인

$this->setProfileImage($profile['image']['url']);



$this->setProfileImage($profile['picture']);

로 변경 후 사용성이 없어진 104 라인

104행의 $this->setProfileUrl($profile['url']); 은 삭제함


 

수정한 이유 :

Recent Articles

Recent Comment

sketchbook5, 스케치북5

sketchbook5, 스케치북5