We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

GOOGLE CONNECT (RECODE - Google Connect (recode) | Forum

gami
gami Apr 5 '19

so now again in the forum.


for a long time they are looking for a solution for this "Google Connect (recode)" | PLUGIN. the eternal sorry with the "google_user_xxx" after the login.

Unfortunately, like many other developers, this one is no longer online and does not fix this problem.


Who has an idea who knows a solution who can and may help?


the solution is not in the admin area the whole change. then come also the google user names, but with the other members I have then the problem that nothing is more there. I do not ask for the correct name....


THANKS

The Forum post is edited by gami Apr 5 '19
Attachments:
  username: realname.png (20Kb)
Paul
Paul Apr 5 '19
Go to glconnect/controller/connect.php


~Line: 110


Change:

$user->username = "google_user_" . $user->id;


To:


if ($params['name']) {   $user->username = str_replace(' ','',$params['name']);} else {   $user->username = "google_user_" . $user->id;  }

Oxwall Germany Club
Oxwall Germany Apr 5 '19
Topic was moved from Oxwall Store.
gami
gami Apr 5 '19
hi, 

thanks for the info it does not work. come to login then comes only a white page. :-(


can you possibly send me the connect.php in zip?

The Forum post is edited by gami Apr 5 '19
gami
gami Apr 5 '19

perfect thanks now it worked.


please give it free in the plugin forum that helps others too ;-)

Ash
Ash Apr 6 '19

Quote from gami

perfect thanks now it worked.


please give it free in the plugin forum that helps others too ;-)

What did you do wrong? 


I am going to do below as explained .. any additional steps?


~Line: 110


Change:

$user->username = "google_user_" . $user->id;


To:


if ($params['name']) {   $user->username = str_replace(' ','',$params['name']);} else {   $user->username = "google_user_" . $user->id;  }

Webster Molaudi
Webster Molaudi Apr 13 '19
Thanks
Ash
Ash Jul 13 '20

Quote from Paul Go to glconnect/controller/connect.php


~Line: 110


Change:

$user->username = "google_user_" . $user->id;


To:


if ($params['name']) {   $user->username = str_replace(' ','',$params['name']);} else {   $user->username = "google_user_" . $user->id;  }

Hi Paul, 

i have a small doubt, what will happen if 2people with same name register?


because after doing above changes, the username is getting generated by name, 


example: if the email id is johnhopkins1981@gmail.com and name registered in google account is John Hopkins 


So the user id getting in oxwall is JohnHopkins ,

it needs to be johnhopkins1981

 

Look forward for support,

Thanks in Advance!

Cheers!

You do not have permission to reply this topic