Notify by default

Mixed forum with code snippets, guides and styles
Forum rules
Everything in this forum is for everybody
But support only for Donators!
Post Reply
User avatar
Stoker
Site Admin
Site Admin
Posts: 3540
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

Notify by default

Post by Stoker »

Notify by default
Written by Stoker

When new users registeres, they are by default NOT notified when there is a reply to their post.
With one little codechange You can change that so new users by default will get notified when there is a reply to their post

Instructions:
Open includes/functions_user.php
Find:

Code: Select all

'user_notify'			=> 0,
Replace with:

Code: Select all

'user_notify'			=> 1,
Save and upload
Board rules! No PM support
User avatar
Nully
Donator
Donator
Posts: 258
Joined: 15 Mar 2010, 00:03
BBCodes: 10
Favourite MOD: Radios
Location: France > Bulgaria
Contact:

Notify by default

Post by Nully »

I discover only today this useful code.
Is it only for new registered users or for all users ?
I would like it only for new ones.
User avatar
Stoker
Site Admin
Site Admin
Posts: 3540
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

Notify by default

Post by Stoker »

Its for new users only.

If you want it for existing users you have to go to your phpmyadmin to run this querie:

Code: Select all

UPDATE `phpbb_users` SET `user_notify` = 1 WHERE `user_type` <> 2 
Board rules! No PM support
User avatar
Nully
Donator
Donator
Posts: 258
Joined: 15 Mar 2010, 00:03
BBCodes: 10
Favourite MOD: Radios
Location: France > Bulgaria
Contact:

Notify by default

Post by Nully »

I want it only for new ones.
Thanks, I go to insert the code :D
User avatar
Blackwolf
BBCoder IV
BBCoder IV
Posts: 272
Joined: 04 Dec 2010, 12:36
BBCodes: 101
Favourite BBCode: Dropcap
Favourite MOD: mchat
Location: Melbourne Australia

Notify by default

Post by Blackwolf »

Thanks....very handy snippet. :thumb:
Ultimate Edition, Ultimate Edition Oz, Oz Unity

“We are Anonymous. We are Legion. We do not forgive. We do not forget. Expect us.”
techman41973
BBCoder II
BBCoder II
Posts: 6
Joined: 28 Jul 2013, 01:59
BBCodes: 12

Notify by default

Post by techman41973 »

This MOD works great.
But I have a similar issue with Users getting notified of New PM's by default.
For new registrations on my board,
I want the following UCP setting, "Notify me on new private messages:"
to be set to YES by default.
I changed the following value to 1 in functions_user.php, but this didn't work.
'user_notify_pm' => 1,
For new registrations, "Notify me on new private messages:" is still set to NO by default.
Is there something else that could be conflicting with what I intend.
Thanks
User avatar
Stoker
Site Admin
Site Admin
Posts: 3540
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

Notify by default

Post by Stoker »

On a default phpBB installation user_notify_pm is set to 1, which means that new users get notified on new PM.
So I dont really understand your question?
Board rules! No PM support
Post Reply