Email on account creation?

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Email on account creation?

Dan Davis-2
Is it possible to have an email sent to an administrative user when a
user creates a new account? Without too many edits to base MediaWiki
code?

Dan
_______________________________________________
MediaWiki-l mailing list
[hidden email]
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Reply | Threaded
Open this post in threaded view
|

Re: Email on account creation?

Rob Church
On 12/05/06, Dan Davis <[hidden email]> wrote:
> Is it possible to have an email sent to an administrative user when a
> user creates a new account? Without too many edits to base MediaWiki
> code?

There's an extension for this. See
http://meta.wikimedia.org/wiki/New_User_Email_Notification.


Rob Church
_______________________________________________
MediaWiki-l mailing list
[hidden email]
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Reply | Threaded
Open this post in threaded view
|

Re: Email on account creation?

Al Degutis
> There's an extension for this. See
> http://meta.wikimedia.org/wiki/New_User_Email_Notification.

The changelog shows the most recent being v1.3 but sourceforge only
has v1.2. How can I get v1.3?

Thanks
Al
_______________________________________________
MediaWiki-l mailing list
[hidden email]
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Reply | Threaded
Open this post in threaded view
|

Re: Email on account creation?

Rob Church
On 12/05/06, Al Degutis <[hidden email]> wrote:
> > There's an extension for this. See
> > http://meta.wikimedia.org/wiki/New_User_Email_Notification.
>
> The changelog shows the most recent being v1.3 but sourceforge only
> has v1.2. How can I get v1.3?

Whoops, I thought I'd cleaned up all the documentation. We're using a
Subversion repo. now so the latest extension code is there; see
http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/NewUserNotif
for the download. I've updated the Meta page.


Rob Church
_______________________________________________
MediaWiki-l mailing list
[hidden email]
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Reply | Threaded
Open this post in threaded view
|

Re: Email on account creation?

Rotem Liss
In reply to this post by Al Degutis
In the Subversion used instead of Sourceforge CVS:
http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/NewUserNotif/NewUserNotif.php


Al Degutis wrote:

>>There's an extension for this. See
>>http://meta.wikimedia.org/wiki/New_User_Email_Notification.
>>    
>>
>
>The changelog shows the most recent being v1.3 but sourceforge only
>has v1.2. How can I get v1.3?
>
>Thanks
>Al
>_______________________________________________
>MediaWiki-l mailing list
>[hidden email]
>http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
>
>  
>
--
#define Name RotemLiss
#define Mail mailSTRUDELrotemlissDOTcom
#define Site www.rotemliss.com


_______________________________________________
MediaWiki-l mailing list
[hidden email]
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Reply | Threaded
Open this post in threaded view
|

Re: Email on account creation?

Dan Davis-2
In reply to this post by Rob Church
On 5/12/06, Rob Church <[hidden email]> wrote:
> On 12/05/06, Dan Davis <[hidden email]> wrote:
> > Is it possible to have an email sent to an administrative user when a
> > user creates a new account? Without too many edits to base MediaWiki
> > code?
>
> There's an extension for this. See
> http://meta.wikimedia.org/wiki/New_User_Email_Notification.

Thanks, Rob. Perfect... except for one of the features...

> == 5. Notes ==
>
> * On wikis where email address authentication is present and active(1), then
>   no email is sent unless the recipient's email address is validated.
>
> (1) => MediaWiki 1.6 and later

I hacked the extension so that would be an option...

Dan

--------------------------------

# grep wgNewUserNotifUnconfirmed LocalSettings.php
$wgNewUserNotifUnconfirmed = true;

--------------------------------

--- Original.NewUserNotif.php   2006-05-12 14:49:45.254067000 +0000
+++ NewUserNotif.php    2006-05-12 14:46:07.884067000 +0000
@@ -20,6 +20,7 @@
       $wgNewUserNotifSender = $wgPasswordSender;
       $wgNewUserNotifTargets[] = 1;
       $wgNewUserNotifEmailTargets = array();
+       $wgNewUserNotifUnconfirmed = false;

       function efNewUserNotifSetup() {
               global $wgHooks, $wgMessageCache;
@@ -123,11 +124,11 @@
                * Send email to users
                */
               function sendInternalMails() {
-                       global $wgNewUserNotifTargets;
+                       global $wgNewUserNotifTargets,
$wgNewUserNotifUnconfirmed;
                       foreach( $wgNewUserNotifTargets as $userSpec ) {
                               if( $user =& $this->makeUser( $userSpec ) ) {
                                       $message = $this->makeMessage(
$user->getName(), $this->user );
-                                       if( $user->isEmailConfirmed() )
+                                       if( $user->isEmailConfirmed()
|| $wgNewUserNotifUnconfirmed )
                                               $user->sendMail(
$this->makeSubject(), $message, $this->sender );
                               }
                       }
_______________________________________________
MediaWiki-l mailing list
[hidden email]
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l