Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted October 23, 20159 yr 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.
October 23, 20159 yr Author 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?
October 23, 20159 yr 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.
October 23, 20159 yr Author 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.
October 23, 20159 yr 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']
October 23, 20159 yr Author 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.
October 23, 20159 yr Author yep, that works. It returns '1' if validating, and '0' if not. Thanks for your help Adriano.
October 23, 20159 yr Author 33 minutes ago, dancingbear said: It returns '1' if validating, and nothing if not. Correction: it returns '0' if not validating.
Archived
This topic is now archived and is closed to further replies.