2009-05-13, 04:02 PM
Not sure if this is the best way or not - I'm not too polished on pgSQL...
In ./inc/datahandlers/pm.php, around line 499, find:
Above it, add:
That obviously sets it to the uid of the user reporting the post - setting it to 0 will set it to "MyBB Engine".
In ./inc/datahandlers/pm.php, around line 499, find:
$this->pm_insert_data = array(
Above it, add:
if(!$pm['sender']['uid'])
{
$pm['sender']['uid'] = $mybb->user['uid'];
}
That obviously sets it to the uid of the user reporting the post - setting it to 0 will set it to "MyBB Engine".