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.
Post Reply
User avatar
DavidIQ
Site Admin
Posts: 581
Joined: Thu Sep 07, 2006 4:31 pm
Location: Earth
Contact:

Set users to subscribe to posts on registration

Post by DavidIQ » Fri Nov 14, 2008 8:37 am

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 » Mon Jul 13, 2009 2:42 am

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

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

Re: Set users to subscribe to posts on registration

Post by DavidIQ » Mon Jul 13, 2009 9:59 am

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 » Tue Jul 14, 2009 7:09 am

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?

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

Re: Set users to subscribe to posts on registration

Post by DavidIQ » Tue Jul 14, 2009 8:14 am

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.

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

Re: Set users to subscribe to posts on registration

Post by DavidIQ » Sat Feb 06, 2016 1:12 pm

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest