SMF Support > SMF 1.1.x Support
Copy user at registration to another database
ExSpirit:
This activates user in first database, but how to activate it in second one?
Doctor Deejay:
I'm sorry, but I'm confused right now. Are members and members2 in the same database or aren't they? :p
ExSpirit:
I now have 2 databases seperated. Both are now Members, but the problem is that inserted users have different ID, so in second query I would have to match validation_code and ignore the user ID check (or something like that).
ExSpirit:
I'm not sure how to get the code value from URL (or POST)
I tried
--- Code: ---$actcod = $_REQUEST['code'];
--- End code ---
But that doesn't work...
I would like to use it this way:
--- Code: ---UPDATE {$db_prefix}members SET validation_code = '', is_activated = 1 WHERE is_activated = '0' AND validation_code = '$actcod' LIMIT $member_count
--- End code ---
ExSpirit:
I disabled activation for now, so only data is added to other database when user registers.
Now when I log-in in one forum I have to log in separately in another, is it possible that if user logs in in one he is also logged in in other forum (on another domain)?
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version