|
Joined: Aug 2002
Posts: 1,191
Kahuna
|
Kahuna
Joined: Aug 2002
Posts: 1,191 |
Let's assume you will want the Location field to be added which corresponds to the U_Location field in the database. Step 1. Open templates/default/newuser_signup.tmpl 1.1 Find: <br /><input type="text" name="Email" class="formboxes" /><br /><br /><br /><br /><br /> BELOW it ADD <br /><input type="text" name="Location" class="formboxes" /><br /><br /><br /><br /><br /> Step 2. Open adduser.php 2.1 Find: <br /> $Verify = get_input("Verify","post");<br /> BELOW it ADD <br /> $Location = get_input("Location","post");<br /> 2.2 Find: <br />// If Displayname is blank then set it to the Loginname<br /> if (!$Displayname) {<br /> $Displayname = $Loginname;<br /> }<br /> BELOW it ADD <br /> if (!$Location) {<br /> $html -> not_right("The Location field is obligatory but was not specified",$Cat);<br /> }<br /> 2.3 Find: <br /> $Color_q = addslashes($Color);<br /> BELOW it ADD <br /> $Location_q = addslashes($Location);<br /> 2.4 Find: <br /> $query = "<br /> INSERT INTO {$config['tbprefix']}Users (U_LoginName,<br /> U_Username,U_Password,U_Email,<br /> U_Totalposts,U_Laston,U_Status,<br /> U_Sort,U_Display,U_View,<br /> U_PostsPer,U_EReplies,U_Registered,<br /> U_RegEmail,U_RegIP,U_Groups,<br /> U_Title,U_Color,U_Privates,<br /> U_Approved,U_PicturePosts)<br /> VALUES ('$Login_q',<br /> '$Displayn_q','$crypt','$Email_q',<br /> '0','$date','$Status_q',<br /> '{$theme['sort']}','$Display_q','$View_q',<br /> '{$theme['postsperpage']}','$EReplies_q','$date',<br /> '$Email_q','$ip_q','$Groups_q',<br /> '$Title_q','$Color_q','1',<br /> '$approved','$PicturePosts')<br /> "; <br /> CAHNGE it to this <br /> $query = "<br /> INSERT INTO {$config['tbprefix']}Users (U_LoginName,<br /> U_Username,U_Password,U_Email,<br /> U_Totalposts,U_Laston,U_Status,<br /> U_Sort,U_Display,U_View,<br /> U_PostsPer,U_EReplies,U_Registered,<br /> U_RegEmail,U_RegIP,U_Groups,<br /> U_Title,U_Color,U_Privates,<br /> U_Approved,U_PicturePosts,[:"red"]U_Location[/])<br /> VALUES ('$Login_q',<br /> '$Displayn_q','$crypt','$Email_q',<br /> '0','$date','$Status_q',<br /> '{$theme['sort']}','$Display_q','$View_q',<br /> '{$theme['postsperpage']}','$EReplies_q','$date',<br /> '$Email_q','$ip_q','$Groups_q',<br /> '$Title_q','$Color_q','1',<br /> '$approved','$PicturePosts',[:"red"]'$Location_q'[/])<br /> "; <br /> NOTE: Step 2.4 has been edited for length. The original is in two lines only. The alteration is highlighted in redI hope this is what you want to do Warm regards Nikos
Nikos
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 1,157
Joined: July 2001
|
|
Forums63
Topics37,575
Posts293,931
Members13,823
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|