Comments (7)
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.
@SchlesserClaude could you take a look, please?
from social-login-phpbb.
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.
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.
No, you need to change pf_steamid to user_steamid
from social-login-phpbb.
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.
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)
- SocialLogin isn't visible on the index page - $this->php_ext HOT 1
- [REQ] Make it clear which accounts are linked HOT 1
- [REQ] Show from where i'm logged in
- Impossible to clone with GitHub Desktop HOT 2
- Activating the extantion error HOT 3
- Issue while activating plugin HOT 2
- req: ability to see what account is linked to what social site account
- Working alongside Privacy Policy extension
- Help me: Authentication Issue, FB and Gmail user can't login HOT 1
- Req : Add Strava social network
- [Feature] Show along with login form on post replies (phpbb 3.2)
- Ask user to fill out more (custom) fields on registration
- Unable to delete a member in phpBB 3.3 HOT 1
- BUG: captcha factory missing in constructor of auth/provider/oneall.php
- Discord doesn't show up in acp HOT 1
- Redirects user to the wrong port
- oneall/library.js loaded on all pages when not used
- php each() function deprecated, will be removed PHP 8.
- Login with youtube: Access blocked: oneall.com
- Phpbb 3.3 errors
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from social-login-phpbb.