Re: Link users to custom database

mercredi 2 juillet 2014

Hi and thanks in advance for your support,

I'd like to create custom fields for user profile (which if possible would also be available at registration time), simply a username and a password that I would validate against my custom database.


I'll then need to persist this relationship, in order to fetch user data later on from my custom database.


The use case is fairly simple: I own a game server. My users create accounts on the forums, and I'd like to link these accounts with their ingame accounts, then display some of the linked data in profile view page and probably also when an user posts, below its avatar.


So the idea is that I'd create a table, joining forum account IDs with ingame logins, and this table will only get filled when the user successfully adds a character through the login/password screen that I want to create on profile/registration.


So far I have no clue how to achieve this, I'm digging in Profile.php to create a new action linking to my custom PHP file, but I'd prefer making it custom "profile fields" - however searching these keywords on Google points me to the mod, which is obviously not sufficient for what I need.


Thanks in advance for any help you will provide!






0 commentaires:

Enregistrer un commentaire

 

Lorem

Ipsum

Dolor