Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Current Version (Old)
 Check if users has filled out the required fields
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

jensvoll
Starting Member

16 Posts

Posted - 14 June 2001 :  13:34:59  Show Profile
What I want to do is to check when they log on if the user has filled out their First name and surename in their profile.

Just to explain why:
I have just made some changes to the forum that makes them required to fill out the First- and surename fields when they register.

Only problem now is to get the already registered users to do the same.
So what I want is: When the user logs in, the forum checks if they have filled out the first name and surename.. if they haven't they get an error msg, saying
"Please go to your profile and fill out your first- and surename"
If they already have filled out the information, the login goes as normal.

big9erfan
Average Member

540 Posts

Posted - 14 June 2001 :  13:49:17  Show Profile
That seems like a pretty taxing job on the server, to have to check this for each and every user that is logged into the forum.

I'd suggest you make an extra file and include this in all pages EXCEPT pop_profile, config, inc_top, inc_functions, inc_top_short, inc_footer, and inc_footer_short so they they don't get this error at pop_profile as well.

What you need to do is if the user is logged in ( mLev > 1 ) get the record for the member that is logged in.

Check the record rsMember ( for example ) and see if the field has a value
I don't know the name of the field in the db that holds this info, so I'm just using this as an example

if rsMember("M_SURNAME") <> "" then

'do nothing

else

display your error and give them a link to edit their member profile ( see inc_top on how the Profile link is made on the fly )

end if

Is this the most efficient code? Hell, probably not, but it should work.

http://www.ugfl.net/forums
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.33 seconds. Powered By: Snitz Forums 2000 Version 3.4.07