I have to go to the Usergroup Manager for the usergroup this user is in and re-save the page where "Birthdays Viewable " is located to have it appear within the Today's Borthdays module in CMPS... (I know: Not A vBulletin issue but you have to admit, it's an interesting oddity: I named the task Groundhog Day)
PHP Code:
<?php
// ########################## SET PHP ENVIRONMENT ###############################
error_reporting(E_ALL & ~E_NOTICE);
// ###################### PREVENT UNAUTHORIZED ACCESS ###########################
if (!is_object($vbulletin->db))
{
exit();
}
// ############################ SET NEEDED DATES ################################
$birthday = date('m-d-Y', strtotime("-29 years"));
$birthday_search = date('Y-m-d', strtotime("-29 years"));
// ################# UPDATE BIRTHDAY FOR USERID 1, 2 AND 3 ######################
$birthdays = $vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user
SET birthday = '" . $vbulletin->db->escape_string($birthday) . "',
birthday_search = '" . $vbulletin->db->escape_string($birthday_search) . "'
WHERE userid IN (7,46)
");
// ############################ LOG CRON ACTION #################################
log_cron_action('', $nextitem, 1);
?>
Anything telltale about that?