Author |
Message |
eerieuk
New Member


Joined: Nov 25, 2003
Posts: 8
|
Posted:
Wed Feb 11, 2004 10:09 pm |
|
HI Raven.
I downloaded ur Resend email module and i like it, . I dont have any problems with it but i would like to take it a step further.
I would like to use ur module to allow me to personally activate new users to my site personally making it more exclusive.
To do this i would need to stop the new user activating there account using the activation email.
How would i go about doing deactivating the activation email, or changing it so that it says your application has been recieved and will be processed asap without giving them the activation link in the email.
I have done a quick fix by changing the sites url in the site preferences but would like something more permanent, as im sure changing this option will effect other parts of the site which i havent though bout yet...lol
Any help you can offer would be great.
David |
|
|
|
 |
Raven
Site Admin/Owner

Joined: Aug 27, 2002
Posts: 17088
|
Posted:
Wed Feb 11, 2004 11:00 pm |
|
If I remember right, there are 3 mail() statements in Your_Account/index.php. Comment those 3 instances. That will stop the mailing and therefore confirmation. |
|
|
|
 |
eerieuk

|
Posted:
Thu Feb 12, 2004 6:32 am |
|
Hi thanks for the quick reply.
I found the 3 instances line 146,653 and 683 of your_account/index.php (lines no's shown in textpad). I commented all 3 instance and replaced the old index.php with the updated file.
Now when ever i try to use any commands related to your account i am getting a
Parse error:
parse error in /home/database/public_html/bbm/modules/Your_Account/index.php on line 146
My knowledge of php is limited and i may not be using the comment statement rightQuote: | i placed the mail() function in the html <!-- --> comment tag | , is this the correct tag or is there a different tag in php for comments?
Thanks again for ur help.
David |
|
|
|
 |
Raven

|
Posted:
Thu Feb 12, 2004 7:00 am |
|
This is php code so you want to use // in front of the code to comment. There are 3 ways to comment PHP code
// This is a comment
# This is a comment
/* This is a comment */
/* */ allows you to comment a block of text over several lines. The other 2 are for the duration of that line only. |
|
|
|
 |
eerieuk

|
Posted:
Thu Feb 12, 2004 7:10 am |
|
man ur fast....lol
Ok it was my poor knowledge that was letting me down.....lol
One last question i hope, do i comment just the line with the mail() function or the whole script below
Quote: | else {
$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());
title("$sitename: "._USERREGLOGIN."");
OpenTable();
echo "<center><b>"._ACCOUNTCREATED."</b><br><br>";
echo ""._YOUAREREGISTERED.""
."<br><br>"
.""._FINISHUSERCONF."<br><br>"
.""._THANKSUSER." $sitename!</center>";
CloseTable();
} |
|
|
|
|
 |
Raven

|
Posted:
Thu Feb 12, 2004 7:17 am |
|
|
|
 |
eerieuk

|
Posted:
Thu Feb 12, 2004 7:20 am |
|
Thanks again. ill get it updated and let u know how it goes.
Nuke would be lost without ya. definitely one of those rarely found good guys. |
|
|
|
 |
eerieuk

|
Posted:
Thu Feb 12, 2004 7:38 am |
|
worked a treat thank you.
I know where to call for future problems....lol |
|
|
|
 |
Raven

|
Posted:
Thu Feb 12, 2004 8:03 am |
|
Hopefully you mean "future solutions" - Also, don't hesitate to use the "pay" phone now and then  |
Last edited by Raven on Sun Feb 15, 2004 8:25 am; edited 1 time in total |
|
|
 |
eerieuk

|
Posted:
Sun Feb 15, 2004 7:01 am |
|
script's working great. At present it shows user name, user email and reg date and activation link. Anyway of modifying the script so that it logs and shows the potentional users IP address?
thanks
david |
|
|
|
 |
|