I have checked out the integration.php script, and could not figure out exactly what it's functions are and how to implement them.
Could anyone explain the fully function of integration.php for PR2? Thanks!
You can put your own PHP code in the functions, for example:
function profileUpdated($uid)
{
// Called when a user profile is updated
global $db;
}
Could be modified so that whenever a user updates there profile, you could send them an email to thank them. (stupid example I know, but doesn't matter)
function profileUpdated($uid)
{
// Called when a user profile is updated
global $db;
//Insert code to send email, or do pretty much anything you want
}
Ahh..I understand now. Thanks a lot!
accountCreated is only passed a user id. How can I get the plain text password (my other users table uses a different hashing method)?
Around line 437 of
member.php, change
if(function_exists("accountCreated"))
{
accountCreated($uid);
}
to
if(function_exists("accountCreated"))
{
accountCreated($uid,$password);
}
And in
inc/integration.php at line 23, change
function accountCreated($uid)
{
// Called after an account is created
global $db;
}
to
function accountCreated($uid,$password)
{
// Called after an account is created
global $db;
}