Page 1 of 1
Set users to subscribe to posts on registration
Posted: Fri Nov 14, 2008 8:37 am
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:
Replace with:
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
Re: Set users to subscribe to posts on registration
Posted: Mon Jul 13, 2009 2:42 am
by comkid
What do you mean? I don't get this?
Re: Set users to subscribe to posts on registration
Posted: Mon Jul 13, 2009 9:59 am
by DavidIQ
What don't you get?
Re: Set users to subscribe to posts on registration
Posted: Tue Jul 14, 2009 7:09 am
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?
Re: Set users to subscribe to posts on registration
Posted: Tue Jul 14, 2009 8:14 am
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.
Re: Set users to subscribe to posts on registration
Posted: Sat Feb 06, 2016 1:12 pm
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.