| Author |
Message |
Retrolock New Member


Joined: Jan 29, 2004 Posts: 4
|
Posted:
Sun Feb 01, 2004 7:58 am |
|
Hi raven you've got a great script like the PHPnuke 7.0 auto activation hack! it really helps out!
the problem is, i still want my users to receive emails with their username and password when they register, and it seems they dont receive it! Is there a solution to this?
thanks and more power!!
- my phpnuke site |
|
|
|
 |
Raven Site Admin/Owner

Joined: Aug 27, 2002 Posts: 16987 Location: Kansas
|
Posted:
Sun Feb 01, 2004 12:29 pm |
|
Sure! Try this. In Your_Account/index.php change this code in finishNewUser() | Code: | | } elseif ($autoActivate) { activate($username, $check_num, $autoActivate); | to | Code: | } elseif ($autoActivate) {
$message = ""._WELCOMETO." $sitename!\n\n"._YOUUSEDEMAIL." ($user_email) "._TOREGISTER." $sitename.\n\n "._TOFINISHUSER."\n\n $finishlink\n\n "._FOLLOWINGMEM."\n\n"._UNICKNAME." $username\n"._UPASSWORD." $user_password";
$subject = ""._ACTIVATIONSUB."";
$from = "$adminmail";
mail($user_email, $subject, $message, "From: $from\nX-Mailer: PHP/" . phpversion());
activate($username, $check_num, $autoActivate); |
Now you will probably need to change the message text, but this should work. Note: I haven't tested the code. |
|
|
|
 |
Retrolock New Member


Joined: Jan 29, 2004 Posts: 4
|
Posted:
Mon Feb 02, 2004 4:02 am |
|
Hey sir raven thanks for the quick response!!!
another question: where can i change the message text? sorry for being such a newbie!!
thanks very much!
|
|
|
|
 |
Raven Site Admin/Owner

Joined: Aug 27, 2002 Posts: 16987 Location: Kansas
|
Posted:
Mon Feb 02, 2004 6:08 am |
|
|
|
 |
Nukeum66 Life Cycles Becoming CPU Cycles

Joined: Jul 30, 2003 Posts: 551 Location: Neurotic, State, USA
|
Posted:
Mon Feb 02, 2004 6:18 am |
|
modules/Your_Account/languages/what_ever_language.php
define("_YOUUSEDEMAIL", (if this is the message you need to edit) |
|
|
|
 |
Nukeum66 Life Cycles Becoming CPU Cycles

Joined: Jul 30, 2003 Posts: 551 Location: Neurotic, State, USA
|
Posted:
Mon Feb 02, 2004 6:19 am |
|
LOL! Posting at the same time  |
|
|
|
 |
Retrolock New Member


Joined: Jan 29, 2004 Posts: 4
|
Posted:
Mon Feb 02, 2004 8:15 pm |
|
One more query! How can I edit the activation link? Obviously I dont need it anymore! Thanks!! |
|
|
|
 |
Raven Site Admin/Owner

Joined: Aug 27, 2002 Posts: 16987 Location: Kansas
|
Posted:
Mon Feb 02, 2004 8:55 pm |
|
Find in finishNewUser where the setting $message is created and remove the code that constructs the anchor tag (link). |
|
|
|
 |
|
|
|
|