Not sure if this is the correct forum/site to ask, but feel free to move or delete
To convert registered users I use the code below, which works:
- Code: Select all
<snip>
$user->session_begin();
$user->setup();
$auth->login('user', 'password', false); //Some valid user username and password
$auth->acl($user->data);
$user->data['user_id'] = $arrRow2['userid'];
$user->data['user_ip'] = $arrRow2['ipaddress'];
$user->data['username'] = $arrRow2['name'];
<snip>
//make post here
When I do the same for guest posts I get correct information on the topic overview pages (so you can see who made the first post and the last one) but on the topic page all posts are linked to the user I use at $auth->login('user', 'password', false); When I skip the login part in de code the posts are converted but without the postnames i have stored in my own comment table. I tried to update the posts after they were converted but then the topic overview information seemed to be incorrect.
I used this topic to get the member part working, but unfortunately this isn't working for guests.
Anyone a idea how to solve this?

English |
French
