Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 PM to New Users
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #19
RE: PM to New Users
Sorry for the late reply - I haven't exactly been in the mood to look at this lately.

You can't specify a list in that code, because it only accepts a single integer.

You'll have to get it to send two PMs.
Make a second copy of the following code:

PHP Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
	$pm = array(
		'username' => $user_info['username'],
		'toid' => $user_info['uid'],
		'fromid' => intval($mybb->settings['pmregister_fromuid']),
		'subject' => $mybb->settings['pmregister_subject'],
		'message' => $message,
		'options' => array(
			'signature' => 'no',
			'disablesmilies' => 'no',
			'savecopy' => 'no',
			'readreceipt' => 'no'
		)
	);
		
	$pmh->admin_override = true;
	$pmh->set_data($pm);
	// it _should_ validate... - if not (ie PMs disabled), we'll ignore it
	if($pmh->validate_pm())
		$pmh->insert_pm();

Directly under the code for sending the first PM (note, this is important, you need to put it before unset($pmh);).


My Blog
02-02-2008 07:29 PM
Find all posts by this user

« Next Oldest | Next Newest »

Messages In This Thread
PM to New Users - ZiNgA BuRgA - 01-27-2008, 12:58 AM
RE: PM to New Users - Constrictor - 01-27-2008, 03:19 AM
RE: PM to New Users - goindex - 01-27-2008, 06:07 AM
RE: PM to New Users - 77.125.132.137 - 01-27-2008, 09:50 AM
RE: PM to New Users - ZiNgA BuRgA - 01-27-2008, 11:10 AM
RE: PM to New Users - goindex - 01-27-2008, 04:18 PM
RE: PM to New Users - 71.103.182.118 - 02-29-2008, 02:08 AM
RE: PM to New Users - ZiNgA BuRgA - 01-27-2008, 04:28 PM
RE: PM to New Users - goindex - 01-27-2008, 04:43 PM
RE: PM to New Users - ZiNgA BuRgA - 01-27-2008, 05:49 PM
RE: PM to New Users - MyBB Us3r - 01-28-2008, 06:40 AM
RE: PM to New Users - Shemo - 01-30-2008, 03:54 PM
RE: PM to New Users - ZiNgA BuRgA - 01-30-2008, 06:24 PM
RE: PM to New Users - Shemo - 01-31-2008, 03:07 PM
RE: PM to New Users - ZiNgA BuRgA - 01-31-2008, 10:33 PM
RE: PM to New Users - Shemo - 02-01-2008, 02:27 AM
RE: PM to New Users - Shemo - 02-01-2008, 02:30 AM
RE: PM to New Users - Shemo - 02-02-2008, 01:55 AM
RE: PM to New Users - Shemo - 02-02-2008, 05:22 PM
RE: PM to New Users - ZiNgA BuRgA - 02-02-2008 07:29 PM
RE: PM to New Users - Shemo - 02-03-2008, 04:36 AM
RE: PM to New Users - ZiNgA BuRgA - 02-29-2008, 12:17 PM
RE: PM to New Users - Anime King King King - 06-14-2008, 10:26 PM
RE: PM to New Users - downsy007 - 08-05-2008, 11:34 PM
RE: PM to New Users - ZiNgA BuRgA - 08-06-2008, 10:37 PM
RE: RE: PM to New Users - Fedtmule - 08-07-2008, 04:55 PM

 Standard Tools
Forum Jump: