Extension talk:New User Email Notification

Defining notification targets
To define the notification targets, you have to set the array $wgNewUserNotifTargets: You can use the UserId or the UserName.

To define multiple targets use the following code:

$wgNewUserNotifTargets[] = 'Foo'; $wgNewUserNotifTargets[] = 'Bar'; $wgNewUserNotifTargets[] = 'Baz';

LocalSettings.php entry does not work
In the section == 3. Installing the extension == the entry: require_once( "{$IP}/extensions/NewUserNotif.php" ); did not work for me, then I've realized that following the installation instructions it should be       require_once( "{$IP}/extensions/NewUserNotif/NewUserNotif.php" ); If it is not a big deal the README should be changed.

Not Working with MW1.9
After upgrading Mediawiki from 1.6 to 1.9 this extension is not working. -- 84.184.134.122 11:29, 30 March 2007 (UTC)

Solved
For MediaWiki 1.9 try this patch: @@ -138,14 +143,15 @@ 		 * @param $spec User identifier or name * @return mixed */ 		function makeUser( $spec ) { $name = is_integer( $spec ) ? User::whoIs( $spec ) : $spec; -			$user = User::newFromName( $name ); +			$userTitle = Title::newFromText($name); +			$user = User :: newFromName($userTitle->getText); if( is_object( $user ) ) { -				$user->loadFromDatabase; -				if( $user->getId > 0 ) +				$user->load; +				if ($user->idForName > 0) return $user; } 			return false; }

Regards, BeneM 16:51, 8 May 2007 (UTC)

MW 1.10?
Does this patch work for the latest MW version as well? 10:15, 9 July 2007 (UTC)