Jump to content


Wargaming.Net ID (OpenID)

openID

  • Please log in to reply
2 replies to this topic

LesBearEU #1 Posted 13 October 2018 - 04:42 PM

    Private

  • Player
  • 20792 battles
  • 24
  • [-I19-] -I19-
  • Member since:
    03-06-2016

Hello

I need Wargaming.Net ID (OpenID) login system to vBulletin 5.4.4.

When login they should come to an special group on forum.

I can even pay for it if someone can code it for me.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Thanks

LesBearEU

15:46 Added after 4 minutes
Sorry for the double post, can someone delete this topic http://forum.worldof...gnet-id-openid/ thanks and sorry

Edited by LesBearEU, 13 October 2018 - 05:05 PM.


TripleSpider #2 Posted Yesterday, 06:57 PM

    Private

  • Player
  • 14188 battles
  • 1
  • [KOKN] KOKN
  • Member since:
    02-26-2012

its infact very easy :), at least in php

 

****first create 2 functions in example your functions file

 

$app_id= your app_id that you get from wot

 

function get_wot_data ($url) {
$api_response = json_decode(file_get_contents( $url ), true);
if ($api_response['status'] == 'ok;) {
return $api_response;
} else { return ''; }
}
 
//login and get access token
function get_loginpage ( ) {
global $app_id,$clan_id;
$url = 'https://api.worldoft...plication_id='. $app_id. '&display=page&nofollow=1&redirect_uri=Url to after login page';
$loginpage = get_wot_data( $url );
foreach ( $loginpage['data'] as &$value ) {
return $value;
}
}
 
 
*****on your main page  >
$lpage = get_loginpage();
header ("Location: $lpage");
 
in your return page  you use>
 
$status = $_GET['status'];
$access_token = $_GET['access_token'];
$nickname = $_GET['nickname'];
$account_id = $_GET['account_id'];
$expires_at = $_GET['expires_at'];
 
if ($ok == 'ok;) {
*****bla bla bla
then  with these you can create,get or update the user data and send himt to the needed forums
}
 
 
 
 
17:59 Added after 1 minute

yuck, send me an mail "post @ riis-data.no" if char messesd up :)

 

 

18:00 Added after 3 minutes

that is what we use on our clan page and it work for us :)

 

18:02 Added after 4 minutes
oops last if ($ok should be if ( $status   == 'ok'  of course

LesBearEU #3 Posted Yesterday, 07:03 PM

    Private

  • Player
  • 20792 battles
  • 24
  • [-I19-] -I19-
  • Member since:
    03-06-2016

Thanks TripleSpider

I will take a look at it when i have time and will come back to you when tested...

Thanks







Also tagged with openID

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users