Set users to subscribe to posts on registration

Any and all modifications I have created for phpBB3 will be listed here and support will be provided.
Locked
DavidIQ
Site Admin
Posts: 603
Joined: Thu Sep 07, 2006 4:31 pm
Location: Earth
Contact:

Set users to subscribe to posts on registration

Post by DavidIQ »

I've been asked for this and it's something that's in place here. It's a one line code change so here it is:

Open includes/functions_user.php

Find:

Code: Select all

      'user_notify'         => 0,
Replace with:

Code: Select all

      'user_notify'         => 1,
Then you'll want to update all users to have it on by default so run the following query through phpMyAdmin or whatever other DBMS tool you're using:

Code: Select all

UPDATE phpbb_users SET user_notify = 1 WHERE user_type <> 2
You're all set now :geek:

comkid
Posts: 3
Joined: Mon Jul 13, 2009 2:34 am
Location: Somewhere in the Milky Way

Re: Set users to subscribe to posts on registration

Post by comkid »

What do you mean? I don't get this?

DavidIQ
Site Admin
Posts: 603
Joined: Thu Sep 07, 2006 4:31 pm
Location: Earth
Contact:

Re: Set users to subscribe to posts on registration

Post by DavidIQ »

What don't you get?

comkid
Posts: 3
Joined: Mon Jul 13, 2009 2:34 am
Location: Somewhere in the Milky Way

Re: Set users to subscribe to posts on registration

Post by comkid »

What it does, do you mean, It allows users to search over the forum so that they can subscribe to posts on their registration? Or how does it work?

DavidIQ
Site Admin
Posts: 603
Joined: Thu Sep 07, 2006 4:31 pm
Location: Earth
Contact:

Re: Set users to subscribe to posts on registration

Post by DavidIQ »

No. When a user registers the setting on their account for subscribing to topics they reply to or that they create is automatically set to "No". The small change above will set this to "Yes" instead. The query will set it to "Yes" for all existing users as well.

DavidIQ
Site Admin
Posts: 603
Joined: Thu Sep 07, 2006 4:31 pm
Location: Earth
Contact:

Re: Set users to subscribe to posts on registration

Post by DavidIQ »

Depends on how many users you have. Not sure the user type part applies in 3.1 so you can drop anything after the where in the query.

Locked