user_notify (disable notification) is not updated phpbb_users table

Events happening in the community are now at Drupal community events on www.drupal.org.
sterwa's picture

Hello all,

I have Drupal 5.3+phpbb2.0.22 integrated using phpbb5x-1.1 module,

I seem to have an interesting problem: when editing user profile, I can successfully update such fields as user_from, user_icq, etc. both in the drupal users table and in the phpbb users table. On the otherr hand, when I want to disable notifications about new posts on the forum -- "disable notifications" unclicked in the profile -- the change is happening only in drupal_profile_values table and not in phpbb_users table.

Field name is set as user_notify in both drupal_profile_fields and phpbb_users. Obviously, cince the update is not happening correctly, notifications keep coming and there is no way for a user to unsubscribe.

Can anyone please let me know if this functionality works on your sites, and if it does not - is there way to get around the problem?
Thanks

Comments

I never actually used the

arkepp's picture

I never actually used the 5.3 / phpBB 2.x combination, so I can't vouch for it.

However, make sure you have tried to toggle:
1) Turn on / off , save (i.e., if it shows on, turn it off)
2) Turn off / on, save

Since what is displayed in your profile is not from phpBB, they can go out of sync if the module is disabled at some point or the server only performs half the operations.

Thanks... After fiddling

sterwa's picture

Thanks...
After fiddling around with these options per your suggestion, it looks like the database values in user_profile (both Drupal and Phpbb tables) is now updated synchronously. Of course, now there is another issue: even if notification is disabled, notification emails keep coming. And that is because by default a user DOES get notifications.

Now, I went to you test site, arkepp, and I tried to enable notifications (as it is off by default) for user1, then I posted something as user1, then created a user2 and posted something in the post by user1. User1 never was notified about activity in the topic. I wonder if this means that notifications always work based on default values and can not be actually changed (effectively) by a user?

I couldn't find where you

arkepp's picture

I couldn't find where you tested this, can you give me links to the posts?

I tested it again and I am positive it works at http://kepp.net/drupal-5.1/ (the only relevant place for you to test):
If you check off "Disable notifications" under phpBB in the user profile, the next time you write a post the check box at the bottom of the post "Notify me when a reply is posted" will NOT be checked off by default. If you uncheck "Disable notifications", the default is that check box at the bottom of the post IS checked off. Neither of these affect existing subscriptions.

Actually I found it now

arkepp's picture

Actually I found it now while updating the phpBB 3.x page.

1) It worked for me, http://kepp.net/phpbb3/forum/viewtopic.php?f=2&t=21
2) This all happens in phpBB 3. This module does not touch the code that sets the flag in the profile, nor the one that reads it when sending notification emails. So it would be a phpBB bug anyway.
3) That site is running Drupal 5.3 and phpBB 3.x (still RC7). It's not relevant for phpBB 2.0.22

phpbb

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week