Customizing SMF > SMF Coding Discussion
is_activated values
westonm:
The members table has a field "is_activated" What are the valid values and their meaning. I have found value in code for 1,2,3,4,5,10,11,13,14,15 and 0 but don't know what any of them mean, other than 10 appears to be banned. I have not found this in any of the documentation.
Arantor:
There is no documentation.
What I can tell you is this:
0 - pending activation
1 - active
2 - I think this is for members who were active and changed their email
3 - never encountered this
4 - pending deletion
5 - pending COPPA form completion
Add 10 if the user is banned.
westonm:
OK - I am creating an external registration process that will update SMF members table. So it looks like I can set value to 1 and that is really all I need. Any other changes would be handled by SMF if and when they occured.
Arantor:
Or, you could save yourself some hassle and have SMF handle the registration; Register.php creates an array called $regOptions, which is passed to a function, registerMember() (which is in Subs-Members.php if I remember right), which will handle registration for you...
westonm:
I don't mind the hassle, and it really is not too bad to do what I am doing. There are several reasons for doing it this way. Our site is an alumni group, and the information we get on the registration is a lot more detailed than is collected by SMF. For what we are doing it is easier for the users to go through our registration and pass the info to SMF.
Thanks for the idea, but I think I will be sticking with the original plan.
Navigation
[0] Message Index
[#] Next page
Go to full version