Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 6.9
Author Message
eerieuk
New Member
New Member



Joined: Nov 25, 2003
Posts: 8

PostPosted: Wed Feb 11, 2004 10:09 pm Reply with quote

HI Raven.

I downloaded ur Resend email module and i like it, Very Happy. 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
 
View user's profile Send private message
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Wed Feb 11, 2004 11:00 pm Reply with quote

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.
 
View user's profile Send private message
eerieuk







PostPosted: Thu Feb 12, 2004 6:32 am Reply with quote

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 right
Quote:
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







PostPosted: Thu Feb 12, 2004 7:00 am Reply with quote

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







PostPosted: Thu Feb 12, 2004 7:10 am Reply with quote

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







PostPosted: Thu Feb 12, 2004 7:17 am Reply with quote

Just the mail() lines.
 
eerieuk







PostPosted: Thu Feb 12, 2004 7:20 am Reply with quote

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







PostPosted: Thu Feb 12, 2004 7:38 am Reply with quote

worked a treat thank you.

I know where to call for future problems....lol
 
Raven







PostPosted: Thu Feb 12, 2004 8:03 am Reply with quote

Hopefully you mean "future solutions" Laughing - Also, don't hesitate to use the "pay" phone now and then Wink


Last edited by Raven on Sun Feb 15, 2004 8:25 am; edited 1 time in total 
eerieuk







PostPosted: Sun Feb 15, 2004 7:01 am Reply with quote

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
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 6.9

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©