Hi
I have recently installed Drupal 5 and phpBB3 with the integration module. Everything seems Ok so far except this one thing that is bugging me:
When new users register, all of the forum posts are shown as "unread" to them. Is there some way for me to automatically set all forums as "read" for new users?
UPDATE: It seems I have fixed the problem by adding these two lines above the first break; in the phpbb.module file:
$query = "UPDATE {$phpbbcfg['db_users']} SET user_lastmark = ".time()." WHERE user_id = ".$user->uid;
$res = db_query($query) or die('Query failed: ' . db_error() . " \n" . $query . "\n");
I basically just copied the query that runs when a registered user clicks "mark forums read" in the forum index, and put it into phpbb.module so it runs whenever the module inserts a new user into phpbb.