[buddypress-dev] [BuddyPress] How to detect if an user has never logged in

Paul Gibbs djpaul at gmail.com
Mon Jun 27 12:17:08 UTC 2011


Hi

Checking for last_activity is the most reliable way to go, but only in BP v1.3. In 1.2, that key is made when the user activates their account.

I tweaked the behaviour for 1.3 so that it only creates it, for the first time, when the user logs in. 

Regards
Paul Gibbs

On 27 Jun 2011, at 11:16, Erick Hitter <ehitter at gmail.com> wrote:

> If a user has logged in at least once, there will be a last_activity key in the wp_usermeta table for that user. At one point, users without that key didn't appear in the members loop, though that may have changed.
> 
> Erick
> 
> On Mon, Jun 27, 2011 at 03:17, Pasquale Puzio <pasquale.puzio at gmail.com> wrote:
> Hi friends,
> 
> I'm developing a particular social network where the users are
> pre-registered and only after that they receive an invitation to join
> the social network. If they accept they can log in and become members.
> In order to do so, I need to display only the users that have logged
> in at least one time and hide the others.
> 
> My question is very simple: how can I detect if a registered user
> never logged in? It would be very useful to insert this filter in the
> members loop.
> 
> Thanks
> 
> --
> Dott. Pasquale Puzio
> http://www.pasqualepuzio.it
> info at pasqualepuzio.it
> 340 5026359
> _______________________________________________
> buddypress-dev mailing list
> buddypress-dev at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/buddypress-dev
> 
> _______________________________________________
> buddypress-dev mailing list
> buddypress-dev at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/buddypress-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.automattic.com/pipermail/buddypress-dev/attachments/20110627/94ef0447/attachment.htm>


More information about the buddypress-dev mailing list