Closed (won't fix)
Project:
phpbb
Version:
master
Component:
User interface
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 May 2006 at 21:06 UTC
Updated:
24 Oct 2006 at 23:05 UTC
Users on our site report that they always receive a notification email for every reply and they cant disable this, it becomes more of spam right now. I cannot disable this anywhere.
Comments
Comment #1
arkepp commentedWas fixed in the last commit to CVS, I believe. (What have you been running?)
Users may have to update their profiles so that the changes trickle over to, or you can run an SQL query that synchronizes the two databases again.
Comment #2
tcviper commentedYeah and what is the command exactly to do that synchronisation?
Comment #3
arkepp commentedDepends on how your userprofiles are configured. Personally I use two separate databases for phpBB and Drupal, so for me it is easier to do this in PHP rather than SQL.
In my profile_fields table I have an entry named "user_notify" with fid 12.
<?PHP
echo "Start....";
$dbc_drupal = connection to drupal
$dbc_phpbb = connection to phpbb
$drupal_query = "SELECT * FROM prefix_profile_values WHERE fid = 12";
$drupal_res = mysql_query($drupal_query, $drupal_dbc) or die('Query failed: '. mysql_error() . " \n" . $drupal_query . "\n");
while ($drupal_row = mysql_fetch_assoc($drupal_res) )
$phpbb_query = "UPDATE prefix_users SET user_notify = ". $drupal_row['value'] . " where user_id = " . $drupal_row['uid'];
$phpbb_res = mysql_query($phpbb_query, $phpbb_dbc) or die('Query failed: '. mysql_error() . " \n" . $phpbb_query . "\n");
}
echo " done...";
?>
Comment #4
arkepp commentedThis is super annoying. I typed in all the PHP code you needed in the post above, but then Drupal leaves it out because it thinks I am trying to trick it into executing code (I prefixed it with ?PHP, capitalized, which should work. Maybe it got confused).
Sorry, out of time, will try again some other time. If any admins see this / have access to my raw post I'd appreciate it if they recovered the text.
Comment #5
arkepp commented