Welcome, Guest. Please Login or Register.
May 10, 2025, 08:52:59 PM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  email sent twice « previous next »
Pages: [1] Reply Ignore Print
Author Topic: email sent twice  (Read 422 times)
raffael3d
Jr. Member
**
Posts: 79


I'm a llama!

email sent twice
« on: March 16, 2003, 09:09:05 PM »
Reply with quote

I'm working on the board level email notification mod.
What is working so far:

- people can subscribe to a board
-  people get emails when a new message is posted

problem:
if a person subscribes to a board AND to a thread in the board the email is sent twice, what can I do to prevent that?

   
# Notify any members who have notification turned on for this board.
NotifyboardUsers();

   # Notify any members who have notification turned on for this thread.
   NotifyUsers();

   // turn notification on
   if ($notify != '')
   {
      include_once("$sourcedir/Notify.php");
      Notify2();
      notifyboard2 ();
   }


the notifyboard function is almost idential to Notify, so any tips what I can to do that the boardlevel function makes that no email is sent again if the person also subscribed to a thread? thanks.
Logged
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:email sent twice
« Reply #1 on: March 17, 2003, 04:00:40 AM »
Reply with quote

Search for notificationSent. (or soemthing similar...)  Just make a flag.

-[Unknown]
Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  email sent twice « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.104 seconds with 21 queries.