PHP Web Host - Quality Web Hosting For All PHP Applications Just Great Software
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Author Message
eerieuk
New Member
New Member


Joined: Nov 25, 2003
Posts: 8

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

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: 16987
Location: Kansas

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

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 Visit poster's website AIM Address Yahoo Messenger
eerieuk
New Member
New Member


Joined: Nov 25, 2003
Posts: 8

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

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
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

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

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.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
eerieuk
New Member
New Member


Joined: Nov 25, 2003
Posts: 8

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

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();
}
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

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

Just the mail() lines.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
eerieuk
New Member
New Member


Joined: Nov 25, 2003
Posts: 8

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

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


Joined: Nov 25, 2003
Posts: 8

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

worked a treat thank you.

I know where to call for future problems....lol
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

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

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
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
eerieuk
New Member
New Member


Joined: Nov 25, 2003
Posts: 8

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

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

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum