Sending a PM
Imran Offline
Member
***
Posts: 204
Joined: Apr 2010
Post: #1
Question Sending a PM
Hello zinga !

I am using the following function to sends out a PM.

PHP Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
		require_once MYBB_ROOT."inc/datahandlers/pm.php";
		$pmhandler = new PMDataHandler();

		$pm = array(
		'subject' => "Your thread has been stucked !",
		'message' => "Hello ! a one of your thread has been stucked successfully. Its an automated Private Message, so please don't reply to it. Thank You",
		'icon' => '',
		'toid' => $thread['uid'],
		'fromid' => $pmsender,
		"do" => '',
		"pmid" => '',
	
	);
	
	$pm['options'] = array(
	'signature' => '1',
	'savecopy' => '1',
	'disablesmilies' => '0',
	'readreceipt' => '0',
	);
	
	
	$pmhandler->set_data($pm);
	$valid_pm = $pmhandler->validate_pm();
	
		if( $valid_pm)
		{
			$pmhandler->insert_pm();
		}


and it is hooked to.

PHP Code:
moderation_start


But it comes up empty ! Ouch


[Image: logo.png]

[Image: twitter.png]
07-29-2010 04:51 PM
Visit this user's website Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
Sending a PM - Imran - 07-29-2010 04:51 PM
RE: Sending a PM - ZiNgA BuRgA - 07-29-2010, 06:39 PM
RE: Sending a PM - Imran - 07-30-2010, 04:25 PM
RE: Sending a PM - ZiNgA BuRgA - 07-30-2010, 06:51 PM
RE: Sending a PM - Pirata Nervo - 07-30-2010, 07:56 PM
RE: Sending a PM - Imran - 07-31-2010, 01:42 PM

 Standard Tools
Forum Jump: