For the three new users, do they have their "Someone sends you a private message" email notification checked? phpbb does not seem to set this by default for new users so I choose not to set it by default as well.joshwh88 wrote: ↑Fri Aug 17, 2018 2:45 pmI double checked the settings you mentioned. All the users in question on my board had their email notifications on, and 2 of the 4 prime notify settings were set to user's choice. I changed the settings so all were set to user's choice and checked the UCPs again. The strangest thing happened! In all the users that were created after I did the prime notify install ( there are 3 such users ) 3 of the 4 settings finally showed up in the UCP, but for some reason the setting for private messages was still missing. In all users created before the prime notify install, all 4 settings properly showed up in the UCP.
Brilliant! Wish I would have known about that earlier!
FORUM_NAMEvariable should be available because it uses the notification/type/topic.php PHP file and inside that file, in the
get_email_template_variables()function, it sets up the
FORUM_NAMEvariable (you can see this around line 221). When subscribed to a topic, the
FORUM_NAMEvariable is never set as it uses the notification/type/post.php PHP file and in its
get_email_template_variables()function that variable is never set up. You may be able to set it up yourself by editing my version of the file, ext/primehalo/primenotify/notification/type/post.php. Find the
get_email_template_variables()function and try adding this line anywhere after the declaration of the
Code: Select all
$template_vars['FORUM_NAME'] = htmlspecialchars_decode($this->get_data('forum_name'));