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: #14
RE: PM to New Users
If you want to send a PM to both you and the end user, find:

PHP Code:
	$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();

Add below:

PHP Code:
	$pm['toid'] = intval($mybb->settings['pmregister_fromuid']);
	$pm['fromid'] = $user_info['uid'];
	$pmh->set_data($pm);
	if($pmh->validate_pm())
		$pmh->insert_pm();


My Blog
01-31-2008 10:33 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: