Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Cosmic Posted October 23, 2015 Posted October 23, 2015 can anyone tell me what database table & field is flagged in some manner to identify that user as a not-yet-validated user? I've just looked at the fields of core_members for both a registered and validating member, and there wasn't anything that jumped out at me as different. Thanks.
Adriano Faria Posted October 23, 2015 Posted October 23, 2015 User must have a record on core_validating table.
Cosmic Posted October 23, 2015 Author Posted October 23, 2015 thank you very much, I hadn't spotted there was a validating table. :)
Cosmic Posted October 23, 2015 Author Posted October 23, 2015 So the next question is... Is there any way of returning the validating flag with the IPS framework? In the same way that \IPS\Member::loggedIn()->member_id; .. will return the member_id?
Adriano Faria Posted October 23, 2015 Posted October 23, 2015 Why would you do that ? IIRC,one way is change their email and make them confirm it ? In this case the user would be required to validate it again.
Cosmic Posted October 23, 2015 Author Posted October 23, 2015 11 minutes ago, Adriano Faria said: Why would you do that ? I don't want to validate them via the IPS framework, I want to know *IF* they're validating or not via that framework. I use the IPB logins for some stuff away from the IPB install I have, on the main part of my (custom coded) website for competitions and the like - and I don't want validating users to be able to enter the competitions (which they can do at the moment) - so I need to look to see if they're validating. I could just query the validating table, but i'd prefer to use the right framework code if possible.
Adriano Faria Posted October 23, 2015 Posted October 23, 2015 Actually there's a bitwise column on core_members that stores, among other things, the VALIDATING status: members_bitoptions: \IPS\Member::loggedIn()->members_bitoptions['validating']
Cosmic Posted October 23, 2015 Author Posted October 23, 2015 I saw a reference to that on one of the doc pages, tho it suggests it's for validating a member rather than finding out if their status is validating. I'll give it a go tho, and see what it returns, thanks.
Cosmic Posted October 23, 2015 Author Posted October 23, 2015 yep, that works. It returns '1' if validating, and '0' if not. Thanks for your help Adriano.
Cosmic Posted October 23, 2015 Author Posted October 23, 2015 33 minutes ago, dancingbear said: It returns '1' if validating, and nothing if not. Correction: it returns '0' if not validating.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.