Re: Reply notification on posts
Posted by Necromancer on
Sun Aug 17th 2008 at 2:39am
392 posts
1499 snarkmarks
Registered:
May 5th 2008
I mark the "Notify me when a reply is posted" but I don't get notified on replies.
Why does it not work?
Thanks.
Re: Reply notification on posts
Posted by G4MER on
Sun Aug 17th 2008 at 12:57pm
Posted
2008-08-17 12:57pm
G4MER
floaty snark rage
member
2460 posts
360 snarkmarks
Registered:
Sep 6th 2003
Location: USA
Have not tried it.. I will have too now though.
Re: Reply notification on posts
Posted by Necromancer on
Mon Aug 18th 2008 at 10:04pm
Posted
2008-08-18 10:04pm
392 posts
1499 snarkmarks
Registered:
May 5th 2008
I just wanted to let you know that the reply notification now works for me.
Re: Reply notification on posts
Posted by larchy on
Tue Aug 19th 2008 at 3:50pm
larchy
fluffy teim
super admin
496 posts
87 snarkmarks
Registered:
Jan 14th 2008
Occupation: kitten fluffer
Location: UK
Its worked ok for me so I'm not really sure... someone complained about always getting mailed on the beta site regardless of what they chose, but noone else had the issue, I couldn't find how it was happening and they never replied to any further posts regarding the issue so I don't know whether there really was a problem or not.
There is a fair bit going on, so there could well be issues but tracking them down might be tricky.
Every time you make a post an entry is made in the database, and that post records whether you want to receive an email on reply - its just a simple 1 for yes, 0 for no depending on whether you tick the box or not.
The script then runs through all the posts for this topic and finds the posts for ppl who have made a reply and whose reply option is set to 1. It then sends them an email and sets the option to a value of 2 so more emails are not sent if there are further replies.
When you revisit the topic to read the reply your value gets changed back to 1.
If you tick or untick the box when editing a reply or posting a new reply the recorded preference will be set to 0 or 1 accordingly.
If ppl are having problems then there is one of three things wrong that I can think of:
1)An error in the flow of actions above
2)An error in my code which implements the above
Either of those will be consistently reproducible if I can narrow down the situation where any problem occurs.
3)The emails aren't being sent 100% of the time, which would be down to the server.
I've tested as much as I reasonably can every bit of the above both locally and on the beta site, checking that the database is getting updated properly at each stage, and haven't been able to see anything not working as it should.
All that said I still need to add a default preference to the profile page, and maybe a "never send me an email on pain of death" option would be a good idea for those who just plain don't want to use the feature.