I am trying to find a way to change the username when submitting posts, so that you can be logged in as "A" but write posts as "Anonymous1234". However, so far all my attempts to do so have not worked out. Subscribing to "submit_post_data" and setting the user_id does not work, because later phpBB simply overrides this with
$user->data['user_id']. Trying to change the SQL also does not work, because as far as I can see there is no event that allows overriding the
last_poster_namethat is also stored in the topics table. So as far as I can see the best way to do this would be to override
$user->data['user_id']for the submit_post function. Is there a way to do this?