PDA

View Full Version : How do I....


Rhod
08-03-2002, 11:13 PM
How do I Protect the Required Information after a new user has registered so that they will not maliciously change their personnal information?

Help Please.... :bunny:

Xenon
08-03-2002, 11:25 PM
which required fields do you mean?
the standart one, or custom fields?

if you mean the standart like emails or such open members.php
find:$DB_site->query("UPDATE user SET birthday='".addslashes($birthday)."',signature='".addslashes($signature)."',customtitle='".intval($customtitle)."',usertitle='".addslashes($customtext)."',email='".addslashes(htmlspecialchars($email))."',parentemail='".addslashes(htmlspecialchars($parentemail))."',coppauser='$coppauser',homepage='".addslashes(htmlspecialchars($homepage))."',icq='".addslashes(htmlspecialchars($icq))."',aim='".addslashes(htmlspecialchars($aim))."',yahoo='".addslashes(htmlspecialchars($yahoo))."',usergroupid='$bbuserinfo[usergroupid]' WHERE userid='$bbuserinfo[userid]'");

and delete out the variables which shouldn't change

for custom fields find that code in members.php (update user section): $profilefields=$DB_site->query("SELECT profilefieldid,required,title,size,maxlength
FROM profilefield
WHERE editable = 1");

and replace it with:$profilefields=$DB_site->query("SELECT profilefieldid,required,title,size,maxlength
FROM profilefield
WHERE editable = 1 AND required = 0");

i think this should do it.

Rhod
08-04-2002, 01:06 AM
I added some required fields (Personnal Info) that each user has to enter to gain access to the forums BUT after a-mail verification I do not want them to be able to change what they entered on the required fields.

We want to be able to have accurate information in our database when we give the individuals authorization to BETA test the games being developed.

Xenon
08-04-2002, 09:20 AM
then the secound part of my post will help ya

Rhod
08-04-2002, 09:25 AM
ok..before i test it out....

If people have already registered after I added new required fields (personnal information) will they be able to add the new required information?

Xenon
08-04-2002, 09:36 AM
no this prevent users from editing all required fields, old and new...