Quote:
Originally Posted by karimali831
Hey,
very sorry I meant SMF - Forums. I wouldn't mind paying if you could possible do this.
Thanks.
|
Sry only just noticed this reply.
I haven't done SMF either and don't have time to write a script. I only only just started using SMF myself but had a quick look and can point you in the right direction.
First of all though I think you need to be clear on what you really want to achieve here and the best method of doing what you need.
All the registration and validation is done in the 'register.php' file in the sources folder. You scroll down to 'function (activate) and you need to pick the bones out of the "insert into database.
First glance at the validation email uses "u" as the variable to identify the new user with the details contained in the database. (from registering)
This "u" is the members id field in the database.
Therefore: If you scroll down register.php file until you see where is states that the activation was successful, you could then query that database for the user datails and then insert those details into the other database.
i.e; SELECT ALL FROM {$db_prefix}members WHERE ID_MEMBER='u';
Then you can create the login details for the other database and
INSERT INTO ID_MEMBERS....................
Don't know if that makes any sense at all! but it is one of the ways to do what you need.
You could also remove the registering from one forum and redirect registering only on the other, then create a cron job to periodically copy the members table.