• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.1 Forcing users to fill out a custom user field after they have already registered

#1
Hey guys, I very rarely stumble across something that I cannot figure out by searching online, but this has been causing me some major frustration :)

I have added a new custom user field that should be required for user registration, and it works fine for those that are new users.

However, I want all users that were registered before this change to also have to fill out the custom user field.
Is there a way to force them to fill it out upon there next login?

Thanks!
 

Rob

Well-known member
#3
I've suggested this too. I feel XenForo needs to enforce data integrity. After all, a required field should be required. Hope this is added soon.
 
#4
That currently isn't possible but it has been suggested.
I see, would that be an expected update at some point in the future perhaps?

For the meantime, would the only other alternative be to completely reset all users/posts and ask them to register all over again?
If so, how would that be accomplished? I've read that mass user deletion isn't currently supported. Would I have to drop some tables on the MYSQL back-end?
Cheers for the quick response.
 

Brogan

XenForo moderator
Staff member
#5
It's a suggestion like thousands of others so there's no telling if or when it will make it into the software.

Dropping all users is a bit drastic, unless it is a new site and you don't care about potentially losing members.
1.2 supports mass user management but again I would suggest that's a last resort.
Why not ask everyone to fill out the field and those that don't place them into moderation until they do?
 
#6
I'd agree that dropping all users is a bit drastic :p
Seems like your way is the best way and is what I'll be doing tonight haha!

Thanks again!
 

Rob

Well-known member
#8
I think this would actually be an easy add-on. All it would need to do is iterate the custom fields looking for required ones. If one is found then the user receives a warning message and is redirected to the missing fields. Im pretty sure it would be a very easy mod. @Waindigo may be able to help.
 
#9
That would be absolutely fantastic. It seems like there are quite a few of us that would appreciate that feature, so there appears to be a need.
Unfortunately I know next to nothing about producing an add-on for XF.
However, being a student on holiday gives me a lot of time so I may have to look into it if it isn't too difficult!

If @Waindigo does it, I'll be first in line to test it for him!
 

Jon W

Well-known member
#10
Using user group promotions, you can promote any user who has filled in certain custom fields -- then any user who hasn't been promoted can be shown a notice to tell them to fill in the field.