Giter Site home page Giter Site logo

Comments (7)

OminiData avatar OminiData commented on September 26, 2024

i would also like to know that too so i could get it to put the steam id from steam auth into the steam field so it can Work together with my steam status

from social-login-phpbb.

Galixte avatar Galixte commented on September 26, 2024

@SchlesserClaude could you take a look, please?

from social-login-phpbb.

SchlesserClaude avatar SchlesserClaude commented on September 26, 2024

Hello,

we have submitted the extension to the official phpBB extensions repository at https://www.phpbb.com and the phpBB team asked us to remove the event function as it only served as example and they don't want to see examples in the code.

This was removed from event/listener.php

/**
	 * Event handler for custom fields and user row modifications.
	 */
	public function modify_data ($event)
	{
		global $phpbb_log, $user;

		// The data retrieved from the social network profile.
		$social = $event['social_profile'];

		// The following code serves as example for custom changes.

		/*

                  // For Steam
                  $event['cp_data'] = array (
				'pf_steamid' => $social['user_accounts'][0]['userid'],  
			);

		*/

		// Uncomment following line if you need logs.
		// $phpbb_log->add ('admin', $user->data['user_id'], $user->ip, 'LOG_PROFILE_FIELD_EDIT', time(), $event['cp_data']);
	}

from social-login-phpbb.

OminiData avatar OminiData commented on September 26, 2024

so if in my db the profile field is
user_steamid then i should change 'pf_steamid' => $social['user_accounts'][0]['userid'],
to 'pf_steamid' => $social['user_steamid'][0]['userid'],
right?

from social-login-phpbb.

SchlesserClaude avatar SchlesserClaude commented on September 26, 2024

No, you need to change pf_steamid to user_steamid

from social-login-phpbb.

OminiData avatar OminiData commented on September 26, 2024

arh alright and are you also able to do that for multiple fields lets say user links it to hes steam profile then it will take hes steam id into user_steamid and then
if he links example
also links facebook then it will takes hes first name into pf_firts_name and last name into the pf_last_name

and also are user_accounts the DB tabel from phpbb?

from social-login-phpbb.

SchlesserClaude avatar SchlesserClaude commented on September 26, 2024

You can add this code for debugging to see the full data retrieved:

print_r($event['social_profile']);
exit;

Yes, the mapping corresponds to the user_accounts table.

from social-login-phpbb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.