PHP Web Host - Quality Web Hosting For All PHP Applications Clan Themes! We make clans look good!!
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
msimonds
Regular
Regular


Joined: Jul 15, 2003
Posts: 56
Location: Dallas

PostPosted: Wed Dec 24, 2003 10:00 am Reply with quote Back to top

I am trying to and I will figure it out somehow, trying to add a mod for new users to that will allow new users to check a radio box and then have it emailed along with the new user signup on the account that is sent to me everytime a member signs up!

it is here:
Only registered users can see links on this board!
Get registered or login to the forums!


Code:
echo "<b>"._REGNEWUSER."</b> ("._ALLREQUIRED.")<br><br>\n"
                ."<table cellpadding=\"0\" cellspacing=\"10\" border=\"0\">\n<form action=\"modules.php?name=$module_name\" method=\"post\">\n"
                ."<tr><td>"._NICKNAME.":</td><td><input type=\"text\" name=\"username\" size=\"30\" maxlength=\"25\"></td></tr>\n"
                ."<tr><td>"._EMAIL.":</td><td><input type=\"text\" name=\"user_email\" size=\"30\" maxlength=\"255\"></td></tr>\n"
                ."<tr><td>"._PASSWORD.":</td><td><input type=\"password\" name=\"user_password\" size=\"11\" maxlength=\"40\"></td></tr>\n"
                ."<tr><td>"._RETYPEPASSWORD.":</td><td><input type=\"password\" name=\"user_password2\" size=\"11\" maxlength=\"40\"><br><font class=\"tiny\">("._BLANKFORAUTO.")</font></td></tr>\n"
                ."<tr><td><b>"._INFO."</b></tr></td>\n"
                ."<tr><td><input type=\"radio\" name=\"info\" value=\"search\" size=\"25\">Search Engine<br></td></tr>\n"
            ."<tr><td><input type=\"radio\" name=\"info\" value=\"friend\" size=\"25\">Friend<br></td></tr>\n"
            ."<tr><td><input type=\"radio\" name=\"info\" value=\"ad\" size=\"25\">Advertisement<br></td></tr>\n"
            ."<tr><td><input type=\"radio\" name=\"info\" value=\"link\" size=\"25\">Link<br></td></tr>\n"
            ."<tr><td><input type=\"radio\" name=\"info\" value=\"other\" size=\"25\">Other<br></td></tr>\n";
            echo "<tr><td colspan='2'>\n"
                ."<input type=\"hidden\" name=\"op\" value=\"new user\">\n"
                ."<input type=\"submit\" value=\""._NEWUSER."\">\n";


the value is being held in the variable $info and if I am not mistaken I should be able to add this to the email, but that is where I am getting stuck!

in the function finishnewuser I have added this to the function
Code:
function finishNewUser($username, $user_email, $user_password, $random_num, $info) {


and then in the email send, I have added $ info to this this:

Code:
if ($sendaddmail == 1) {
                            $to = $adminmail;
                            $from = $user_email;
                            $subject = "$sitename - "._MEMADD."";
                            $message = "$username has been added to $sitename.\n-----------------------------------------------------------\n, $info\n Do not reply to this message!!";
                            mail($to, $subject, $message, "From: $from\nReturn-Path: $from\nX-Mailer: PHP/" . phpversion());
                        }


I have tested it and the info is not getting passed!

What am I doing wrong?
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Maku
New Member
New Member


Joined: Sep 24, 2003
Posts: 15
Location: Estonia

PostPosted: Sun Dec 28, 2003 3:45 pm Reply with quote Back to top

Great to know where visitors find your site. When you are done in this tweak.....let me know Mr. Green
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:       
Post new topic   Reply to topic

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