Welcome to PhpBB3 BBCodes. Click here to register
Feed

Notify by default

Notify by default

Postby Stoker » 04 Mar 2010, 19:57

Notify by default

Author: Stoker
Description: 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
Attached file: None
Demo: None



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
Image
User avatar
Stoker

Site Admin
 
 
Status: Offline
Age: 37
Posts: 966
Topics: 80
Joined: 03 Mar 2010, 18:56
Last Visit: Yesterday, 21:05
Location: Denmark
PhpBB Version: 3.0.7-PL1
cannotify, default, phpbb3

Donate to skip ads


Re: Notify by default

Postby Bullseye » 26 Apr 2010, 15:57

Thanks :)
User avatar
Bullseye

BBCoder III
 
 
Status: Offline
Posts: 149
Topics: 31
Joined: 02 Apr 2010, 18:49
Last Visit: 07 Sep 2010, 21:18
Location: England

Re: Notify by default

Postby cisco007 » 26 Apr 2010, 16:35

and the sql query to update this to already registered user, go to either you phpmyadmin page or use the STK!

Code: Select all
UPDATE `phpbb_users` SET `user_notify` = 1 WHERE `user_type` <> 2
Chatbox is NOT!! for support, nor PM's
Don't know how to do something check this FORUM out!
Image
Image
User avatar
cisco007

Supporter
 
 
Status: Offline
Posts: 1013
Topics: 10
Joined: 16 Mar 2010, 16:14
Last Visit: Today, 03:50
Location: Don't really know!
PhpBB Version: 3.0.7-PL1

Re: Notify by default

Postby Steve© » 26 Apr 2010, 16:39

Thanks for that cisc007 was wondering why this didnt work on my site.
Image
help me stay online :handshake: , sorry :D
User avatar
Steve©

Supporter
 
 
Status: Offline
Age: 30
Posts: 705
Topics: 47
Joined: 04 Mar 2010, 23:10
Last Visit: Yesterday, 20:05
Location: Up north!
PhpBB Version: 3.0.7-PL1

Re: Notify by default

Postby cisco007 » 26 Apr 2010, 16:44

i do this everytime I upgrade a site just to be sure, i know i probably don't have to but i do it anyways! :thumb:
Chatbox is NOT!! for support, nor PM's
Don't know how to do something check this FORUM out!
Image
Image
User avatar
cisco007

Supporter
 
 
Status: Offline
Posts: 1013
Topics: 10
Joined: 16 Mar 2010, 16:14
Last Visit: Today, 03:50
Location: Don't really know!
PhpBB Version: 3.0.7-PL1

Re: Notify by default

Postby Bullseye » 26 Apr 2010, 17:04

cisco007 » 26 Apr 2010, 18:35 wrote:and the sql query to update this to already registered user, go to either you phpmyadmin page or use the STK!

Code: Select all
UPDATE `phpbb_users` SET `user_notify` = 1 WHERE `user_type` <> 2


Sorry to be a pain, but I'm not really sure how to do this, do I need to modify a file, if so which one?

I've done the other one for new users, is there a way to do it for current users by altering a file?
User avatar
Bullseye

BBCoder III
 
 
Status: Offline
Posts: 149
Topics: 31
Joined: 02 Apr 2010, 18:49
Last Visit: 07 Sep 2010, 21:18
Location: England

Re: Notify by default

Postby Steve© » 26 Apr 2010, 21:19

viewtopic.php?f=10&t=53 < read down and look at the part "Doing SQL changes"
Image
help me stay online :handshake: , sorry :D
User avatar
Steve©

Supporter
 
 
Status: Offline
Age: 30
Posts: 705
Topics: 47
Joined: 04 Mar 2010, 23:10
Last Visit: Yesterday, 20:05
Location: Up north!
PhpBB Version: 3.0.7-PL1

Re: Notify by default

Postby Bullseye » 26 Apr 2010, 21:29

Which database do I need to modify?
User avatar
Bullseye

BBCoder III
 
 
Status: Offline
Posts: 149
Topics: 31
Joined: 02 Apr 2010, 18:49
Last Visit: 07 Sep 2010, 21:18
Location: England

Re: Notify by default

Postby Steve© » 26 Apr 2010, 21:34

Yours.
Image
help me stay online :handshake: , sorry :D
User avatar
Steve©

Supporter
 
 
Status: Offline
Age: 30
Posts: 705
Topics: 47
Joined: 04 Mar 2010, 23:10
Last Visit: Yesterday, 20:05
Location: Up north!
PhpBB Version: 3.0.7-PL1

Re: Notify by default

Postby Bullseye » 26 Apr 2010, 21:42

the forum one?

Installed put it in that one and got this message:

#1146 - Table 'bullseye_forum.phpbb_users' doesn't exist


How ever underneath that message, it says 'edit' and 'create PHP code'
User avatar
Bullseye

BBCoder III
 
 
Status: Offline
Posts: 149
Topics: 31
Joined: 02 Apr 2010, 18:49
Last Visit: 07 Sep 2010, 21:18
Location: England

Donate to skip ads


Next

Return to Snippets



  • Similar topics
    Replies
    Views
    Last Post

Who is online

Users browsing this forum: No registered users and 0 guests