Quantcast
Channel: phpBB.com
Viewing all articles
Browse latest Browse all 2027

[3.3.x] Support Forum • Re: Regarding Announcement Notifications

$
0
0
There are no "threads" in phpBB. It is a flat database. You can subscribe all users (other than Anonymous and Bots) to a Topic with the following SQL: Executing SQL Queries in phpMyAdmin )

Code:

INSERT INTO phpbb_topics_watch (user_id, topic_id, notify_status) SELECT user_id, x, 1 FROM phpbb_users WHERE user_type <> 2; 
x = the topic id. If your table prefix is not phpbb_, change accordingly.

To subscribe all users to a forum, substitute forums_watch for topics_watch and the forum_id for x.

Backup the topics_watch and forums_watch tables before executing these queries.

Statistics: Posted by stevemaury — Sat Jan 13, 2024 11:31 pm



Viewing all articles
Browse latest Browse all 2027

Trending Articles