Allthough $emailstoriesperdefault is set to 1 my new users do
not get Daily digests.
Is suspect the next lines in lib-user.php:
DB_query ("INSERT INTO {$_TABLES['userprefs']} (uid) VALUES ($uid)");
if ($_CONF['emailstoriesperdefault'] == 1) {
DB_query ("INSERT INTO {$_TABLES['userindex']} (uid) VALUES ($uid)");
} else {
DB_query ("INSERT INTO {$_TABLES['userindex']} (uid,etids) VALUES ($uid, '-')");
}
In lib-common.php the users for digests are selected as such:
// Get users who want stories emailed to them
$usersql = "SELECT username,email,etids,{$_TABLES['users']}.uid AS uuid "
. "FROM {$_TABLES['users']}, {$_TABLES['userindex']} "
. "WHERE {$_TABLES['users']}.uid > 1 AND {$_TABLES['userindex']}.uid = {$_TABLES['users']}.uid AND (etids '-') ORD
ER BY {$_TABLES['users']}.uid";
As in lib-user.php -values have been created in etids the SQL-query does not find these users in the statement (etids '-').
It seems to me lib-user.php should create an empty field:
(uid,etids) VALUES ($uid, '')