News:

Want to get involved in developing SMF? Why not lend a hand on our GitHub!

Main Menu

New member notification

Started by Topspliff, March 18, 2004, 05:58:16 PM

Previous topic - Next topic

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("[email protected]", "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:

else
{
sendmail("[email protected]", "Another member has registered", "Just telling you someone needs approval");
}


After:

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]);
}
I'm only a half geek really...

pulpitfire


Topspliff

Hi Grudge

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

Cheers my man.

Alan   ;D

Advertisement: