SMF Support > SMF 1.1.x Support

New member notification

(1/1)

Topspliff:
I have the system set, so when someone joins, they have to be approved.

Can registration mangement be set, so that if someone applies, I get an email notification that someone has applied.

I had this mod on yabbse, which was great, but as it stands at the moment, I have to log in periodicaly, just to check to see if someone has applied for membership, which is a bit of a pain.

Any help greatly appreciated.

Cheers Alan

pulpitfire:
just did a cursory check, and didn't see an option to do that yet, althought it might be handy.

Grudge:
It would be a *very* easy mod to write. Basically, it's just an additional call to sendmail. A bodge is something like:

sendmail("your@emailhere.com", "Another member has registered", "Just telling you someone needs approval");

Just put your email address in place of the duff one and stick it in register.php. Easy way is just to add this:

--- Code: ---else
{
sendmail("your@emailhere.com", "Another member has registered", "Just telling you someone needs approval");
}

--- End code ---

After:

--- Code: --- if (empty($modSettings['approve_registration']))
{
if (!empty($modSettings['send_validation']))
sendmail($_POST['email'], $txt[700] . ' ' . $context['forum_name'],
"$txt[248] $_POST[user]!\n\n" .
"$txt[719] $_POST[user], $txt[492] $_POST[passwrd1]\n\n" .
"$txt[activate_mail]:\n\n" .
"$scripturl?action=activate;u=$memberID;code=$password\n\n" .
"$txt[activate_code]: $password\n\n" .
$txt[130]);
elseif (!empty($modSettings['send_welcomeEmail']))
sendmail($_POST['email'], $txt[700] . ' ' . $context['forum_name'],
"$txt[248] $_POST[user]!\n\n" .
"$txt[719] $_POST[user], $txt[492] $_POST[passwrd1]\n\n" .
"$txt[701]\n" .
"$scripturl?action=profile\n\n" .
$txt[130]);
}

--- End code ---

pulpitfire:
cool, thanks.

Topspliff:
Hi Grudge

Thanks for the mod, just what I wanted, works like a charm.

Cheers my man.

Alan   ;D

Navigation

[0] Message Index

Go to full version