Welcome, Guest. Please Login or Register.
May 05, 2024, 01:55:06 AM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  Email when new member registers « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Email when new member registers  (Read 3427 times)
Cadish
Noobie
*
Posts: 46


Email when new member registers
« on: August 03, 2003, 07:05:10 AM »
Reply with quote

I have a private forum on my server, and I want to know when a new member registered. I think that it's not hard to encode that I receive an email when the registering is done... Is it?

How could I do this?

Thx
Logged
Daniel D.
Mod Team
YaBB God
*****
Posts: 2935


Re:Email when new member registers
« Reply #1 on: August 03, 2003, 07:13:10 AM »
Reply with quote

Look into the Completed Mods Board.
Logged

Cadish
Noobie
*
Posts: 46


Re:Email when new member registers
« Reply #2 on: August 03, 2003, 11:11:26 AM »
Reply with quote

Which mod do you mean? The 'Enhanced IM Box' ?

If it isn't, I don't know which one else...

I just want the code to do that simple thing, not a whole mod with many other new things... ::)

Thx
Logged
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:Email when new member registers
« Reply #3 on: August 03, 2003, 07:01:23 PM »
Reply with quote

edit Register.php, at the end of function Register2(), search for:   footer();
   obExit();
add before:   sendmail("[email protected]", "New registered member in your forum: $member[user] \n\n$scripturl?action=viewprofile;user=" . urlencode($euser) . "\n\n$txt[130]", $webmaster_email);

change the value of "[email protected]" to your email address, or use $webmaster_email
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
Cadish
Noobie
*
Posts: 46


Re:Email when new member registers
« Reply #4 on: August 03, 2003, 08:29:59 PM »
Reply with quote

Thx a lot!!! ;)
Logged
Thomas
Full Member
***
Posts: 203


WWW
Re:Email when new member registers
« Reply #5 on: December 11, 2003, 10:03:59 AM »
Reply with quote

I implemented this, and the ,mail started to come, but I get all the info in the subject.

I also get this in the subject:
  ?action=viewprofile;user=

Shouldnt it be converted to something and not just put out the code?

/Thomas
Logged
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:Email when new member registers
« Reply #6 on: December 11, 2003, 10:39:22 AM »
Reply with quote

Try this:

sendmail("[email protected]", "New registered member in your forum: $member[user]", "$GLOBALS[scripturl]?action=viewprofile;user=" . urlencode($euser) . "\n\n$txt[130]", $webmaster_email);

-[Unknown]
Logged
Thomas
Full Member
***
Posts: 203


WWW
Re:Email when new member registers
« Reply #7 on: December 11, 2003, 12:21:27 PM »
Reply with quote

Thanks Unknown

Almost there now.

Eith your changes I got the mil right with both body and subject, though th link to the user misses the user. It is stated like this in the mail:

http://www.dykkesiden.com/forum/index.php?action=viewprofile;user=

How do I get the username in there?

/Thomas
Logged
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:Email when new member registers
« Reply #8 on: December 13, 2003, 02:26:16 AM »
Reply with quote

Try... uhh... $uname... I think... err, it's there in the code somewhere, I don't have it readily available.

-[Unknown]
Logged
Thomas
Full Member
***
Posts: 203


WWW
Re:Email when new member registers
« Reply #9 on: December 13, 2003, 09:03:55 PM »
Reply with quote

It didn't work with

sendmail("[email protected]", "New registered member in your forum: $member[user]", "$GLOBALS[scripturl]?action=viewprofile;user=$uname" . urlencode($euser) . "\n\n$txt[130]", $webmaster_email);

either... :'(

Other sugestions?

BTW: This would be nice to have in SMF...

/Thomas
Logged
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:Email when new member registers
« Reply #10 on: December 14, 2003, 05:23:26 AM »
Reply with quote

Try this:

sendmail("[email protected]", "New registered member in your forum: $member[user]", "$GLOBALS[scripturl]?action=viewprofile;user=$member[user]\n\n$txt[130]", $webmaster_email);

-[Unknown]
Logged
Black Hawk
Jr. Member
**
Posts: 83


YaBB SE RULEZ!!

WWW
Re:Email when new member registers
« Reply #11 on: December 14, 2003, 02:01:16 PM »
Reply with quote

Quote« Reply #10 on: Today at 12:23:26am »

Unknown, up late? :o
Logged

Always fear the hawk...
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:Email when new member registers
« Reply #12 on: December 14, 2003, 05:29:22 PM »
Reply with quote

Actually, that was:

« Reply #10 on: December 13, 2003, 09:23:26 PM »

-[Unknown]
Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  Email when new member registers « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.041 seconds with 20 queries.