MyBB Community Forums

Full Version: PM on Reg Question
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is it possible to make the PM on Registration Mod send the PM to me? (UID1)

Thanks.
Change
		'uid' => $uid,
		'fromid' => $fromuid,
		'toid' => $uid,
to
		'uid' => 1,
		'fromid' => 0,
		'toid' => 1,
If your uid is 1. fromid you can change to 1 aswell if you like to get PM's from yourself =) .

Change:
	$db->query("INSERT INTO ".TABLE_PREFIX."settings (name,title,description,optionscode,value,gid) VALUES ('pmonreg_subject', 'PM Subject', 'Enter the subject of the automated private messages.', 'text', 'Hello there!', $group)");
	$db->query("INSERT INTO ".TABLE_PREFIX."settings (name,title,description,optionscode,value,gid) VALUES ('pmonreg_message', 'PM Message', 'Enter the message of the automated private messages.<br /><br />{username} will be replaced with the username of the recipient', 'textarea', 'Hello {username}, and welcome to my MyBB forum!', $group)
to:

	$db->query("INSERT INTO ".TABLE_PREFIX."settings (name,title,description,optionscode,value,gid) VALUES ('pmonreg_subject', 'PM Subject', 'Enter the subject of the automated private messages.', 'text', 'Hello there!', $group)");
	$db->query("INSERT INTO ".TABLE_PREFIX."settings (name,title,description,optionscode,value,gid) VALUES ('pmonreg_message', 'PM Message', 'Enter the message of the automated private messages.<br /><br />{username} will be replaced with the username of the recipient', 'textarea', 'An new User has regged, {username}. Welcome him/her', $group)
This you can change in the Admin settings anyways tho. (not the first but the second)