[buddypress-dev] [BuddyPress] How to detect if an user has never logged in
Pasquale Puzio
pasquale.puzio at gmail.com
Mon Jun 27 14:49:22 UTC 2011
Taking a look at this URL
http://www.ethitter.com/tips-tricks/2010/11/automatically-add-new-users-to-a-buddypress-group/
I've noticed that there is an interesting action called
"bp_core_activated_user".
I think it could be the action executed when the buddypress profile of
an user is created for the first time, in my case the first time an
user logs in.
What do you think about?
Thanks
2011/6/27 Paul Gibbs <djpaul at gmail.com>:
> 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
>
> _______________________________________________
> buddypress-dev mailing list
> buddypress-dev at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/buddypress-dev
>
>
--
Dott. Pasquale Puzio
http://www.pasqualepuzio.it
info at pasqualepuzio.it
340 5026359
More information about the buddypress-dev
mailing list