Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[F] [pgsql] Report posts [C-StefanT]
#3
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:

$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".


Messages In This Thread
RE: [pgsql] Report posts - by Ryan Gordon - 2009-05-07, 04:46 PM
RE: [pgsql] Report posts - by Tomm M - 2009-05-13, 04:02 PM
RE: [pgsql] Report posts - by Ryan Gordon - 2009-05-13, 09:40 PM
RE: [pgsql] Report posts - by Tomm M - 2009-05-13, 09:54 PM
RE: [pgsql] Report posts - by Ryan Gordon - 2009-05-14, 01:43 AM
RE: [pgsql] Report posts - by Tomm M - 2009-05-14, 08:04 AM
RE: [pgsql] Report posts - by Ryan Gordon - 2009-05-14, 03:20 PM
RE: [pgsql] Report posts - by Tomm M - 2009-05-14, 03:37 PM
[F] [pgsql] Report posts - by Tomm M - 2009-05-15, 11:17 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)