As requested: (Apply ONE of them)
HACK OF THE HACK:
TO GREET ONLY USERS WHO VISITED YOUR BOARD IN THE LAST X DAYS:
Find:
PHP Code:
## Time difference between the time zone you and your server's time.
## Set is as a positive or negative number such as -3, +5 etc.
$timeset=9;
After that add:
PHP Code:
## Greets only users who visited your board in the last X days
$last_visit_day=90;
Find:
PHP Code:
$todays_date1= date("Y-m-d", mktime (date("H")+$timeset, date("i"), date("s"), date("m"), date("d"), date("Y")));
After that add:
PHP Code:
$user_last_visit= mktime (date("H")+$timeset, date("i"), date("s"), date("m"), date("d")-$last_visit_day, date("Y"));
Find:
PHP Code:
$birthday_children_row=$DB_site->query("SELECT userid, username, birthday, email, receivepm FROM user WHERE birthday LIKE '%$greetingday' $excluded_SQL");
Replace it as:
PHP Code:
$birthday_children_row=$DB_site->query("SELECT userid, username, birthday, email, receivepm FROM user WHERE lastvisit > $user_last_visit AND birthday LIKE '%$greetingday' $excluded_SQL");
TO GREET ONLY USERS WHO HAVE POSTED MORE THAN X MESSAGES:
Find:
PHP Code:
## Time difference between the time zone you and your server's time.
## Set is as a positive or negative number such as -3, +5 etc.
$timeset=9;
After that add:
PHP Code:
## To Greet only users who have more than X messages, set this:
$message_to_greet=90;
Find:
PHP Code:
$birthday_children_row=$DB_site->query("SELECT userid, username, birthday, email, receivepm FROM user WHERE birthday LIKE '%$greetingday' $excluded_SQL");
Replace it as:
PHP Code:
$birthday_children_row=$DB_site->query("SELECT userid, username, birthday, email, receivepm FROM user WHERE posts>$message_to_greet AND birthday LIKE '%$greetingday' $excluded_SQL");
Enjoy!

Logician