Forums / Cotonti / Extensions / Member's Inactivity Plugin

Hataz
#1 2009-12-19 23:03
Can someone make a plugin in which when a member hasn't been on in two weeks they automatically get a message sent to their e-mail saying something similar to like this:

Hello, {Username}!
We've noticed that you've not been active on {YOUR_SITE} :: {YOUR SITE's SLOGAN}
Could we not tempt you back?

If you don't remember your password, you can request it here: h{LOST PASSWORD RECOVERY URL}
We hope to see you soon

Kindest Regards
{SITE NAME}
{SITE URL}
5uper Mario
#2 2009-12-20 13:38
hmm

I'm about half way done with this.

But let me hijack your thead for a second..

HELLO there peoples of Cotonti.com
May I receive some help please?

Me has a question:

I have no clue where it is it would record the user being gone...
user_lastvisit
user_lastlog

Are both what I'm working on...but like, its not like a time...
My test site, has some users who've logged on a few times, 0
While I, the admin, has like, 124596595????

| | | | | | | |
user_name | user_lastloguser_lastvisit
5uperMario12612921311253858411
demo00
pat125448897154

Doesn't make sense to me.

Thanks
Hataz
#3 2009-12-20 21:31
Yeah this will be a good plugin
Kilandor
#4 2009-12-21 04:51
lastlog is what you want, its only updated when they login. This is also used by the cleaner for inactive accounts.4

lastvisit is last time they "refreshed" a page since they have logged in. Which is used for whoisonline type information
5uper Mario
#5 2009-12-21 05:39
# Hataz : Yeah this will be a good plugin

Well, every so often, I get a email from a site installed with Vb saying I haven't been on for some time...please come back and post....

So I guess Cotonti can use this feature too!

# Kilandor : lastlog is what you want, its only updated when they login. This is also used by the cleaner for inactive accounts.4

lastvisit is last time they "refreshed" a page since they have logged in. Which is used for whoisonline type information

Thanks for clearing that up for me.

Be done sometime today.