PDA

View Full Version : removing b-day's from calendar if user stop's posting


diettalk
11-15-2002, 01:13 AM
I'd like to remove birthdays of users who stop posting or have 0 post count.. is that possible?

Bison
11-15-2002, 03:52 PM
Best solution:

"Mass Delete In-Active Members and zero posters!"

If they find out that they have been deleted, you need to make it clear that they MUST remain active or else ...

Remember, "You're the boss" ... you have to make it clear about what type of members you want! Don't try adding all of these hacks when all that's needed is a definite move on your part ... OK? :)

Also, I may add that you should ask your members to set in their profiles IF they will be away for a certain amount of time. If you don't have this feature, I believe Bira created a "Away Message for User's" hack that might suit this need.

Regards...

diettalk
11-25-2002, 01:17 PM
Thanks.. but I would rather try to get people to post, instead of deleting everyone... eventually I will have to and have deleted inactive and 0 post accounts.

but in the mean time, I would like to have a hack that will not show b-days (and/or calendar events) of anyone who has less than X amount of posts and who is inactive user.

Xenon
11-25-2002, 01:58 PM
should work:

open calendar.php find: if ($calbirthday == 1) {
// Load the birthdays for this month:
$birthday=$DB_site->query("SELECT birthday,username,userid from user where birthday like '%-$doublemonth-%'");
}


and change to if ($calbirthday == 1) {
// Load the birthdays for this month:
$birthday=$DB_site->query("SELECT birthday,username,userid FROM user WHERE lastpost > ".(time()-3600*24*30)." AND birthday like '%-$doublemonth-%'");
}

that should just show birthdays of users which have posted within the last 30 days

diettalk
11-25-2002, 03:28 PM
Thanks Stefan.. it works great. Thanks a bunch.

Xenon
11-25-2002, 03:42 PM
:)
you're welcome