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!
User avatar
Stoker
Site Admin
Site Admin
Posts: 3502
Joined: 12 May 2008, 21:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark

Notify by default

Post by Stoker » 26 Jul 2011, 16:58

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
Sure, I can install the Mod for you ;)
Like the site? Then buy me a bear


User avatar
Nully
Donator
Donator
Posts: 258
Joined: 14 Mar 2010, 22:03
BBCodes: 10
Favourite MOD: Radios
Location: France > Bulgaria

Notify by default

Post by Nully » 13 Jul 2012, 18:25

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: 3502
Joined: 12 May 2008, 21:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark

Notify by default

Post by Stoker » 13 Jul 2012, 18:29

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
Sure, I can install the Mod for you ;)
Like the site? Then buy me a bear

User avatar
Nully
Donator
Donator
Posts: 258
Joined: 14 Mar 2010, 22:03
BBCodes: 10
Favourite MOD: Radios
Location: France > Bulgaria

Notify by default

Post by Nully » 13 Jul 2012, 19:09

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, 10:36
BBCodes: 101
Favourite BBCode: Dropcap
Favourite MOD: mchat
Location: Melbourne Australia

Notify by default

Post by Blackwolf » 15 Jul 2012, 05:56

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: 27 Jul 2013, 23:59
BBCodes: 12

Notify by default

Post by techman41973 » 12 Aug 2013, 20:09

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: 3502
Joined: 12 May 2008, 21:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark

Notify by default

Post by Stoker » 13 Aug 2013, 04:09

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
Sure, I can install the Mod for you ;)
Like the site? Then buy me a bear