Version: , by chrispadfield
Developer Last Online: Oct 2008
Version: 2.2.x
Rating:
Released: 05-29-2001
Last Update: Never
Installs: 7
No support by the author.
A few have requested this, me especially so i made it.
What it does: Emails all those who have subscribed to a forum an email telling them about a new thread.
Extra queries: 1 upon every new thread. Extra time processing new threads as emails must be sent.
code changes, 1 in newthread.php and 2 new templates.
CODE CHANGE:
Add:
PHP Code:
// This emails a new thread notification to those subscribed to the forum
if ($enableemail) {
// do emails
$useremails=$DB_site->query("SELECT user.*
FROM subscribeforum,user
WHERE subscribeforum.forumid='$forumid'
AND subscribeforum.userid=user.userid
AND user.userid<>'$bbuserinfo[userid]'
");
$bbuserinfo['username']=unhtmlspecialchars($bbuserinfo['username']);
while ($touser=$DB_site->fetch_array($useremails)) {
$touser['username']=unhtmlspecialchars($touser['username']);
below the section //send email to moderators which ends with
}
}
}
}
add two templates:
i) email_newthread
Code:
Hello $touser[username],
$bbuserinfo[username] has just started a new thread: in $foruminfo[title]
This is a forum you have subscribed to at $bbtitle
The thread title is: $threadinfo[title]
This thread is located at:
$bburl/showthread.php?threadid=$threadid&goto=newpost
Yours,
$bbtitle team
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Unsubscription information:
You are receiving these "new thread" notifications because
you are subscribed to the $foruminfo[title] forum.
To unsubscribe, please visit:
$bburl/usercp.php
and secondly
email_newthreadsubject
Code:
New Thread in $foruminfo[title]
any you are away
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
please note if you are testing this you need two users because it will NOT send an email to the person who started the thread. Either remove the last line of the query
i am not sure what you mean. Why would you want to send them every hour when they can be done instantly? by the sounds of it you want something more like the community bulletin thing made by Kier/tubedog
is the line that generates that and it is copied straight from the newreply.php code (which is where most of this code came from). I can't see how it can work in one place and not the other. sorry, not a clue.
Very interested in this thread for user support purposes.
Will it email users subscribed to the Forum when there are additions to any of the existing threads
Will it email users if there are additions to the thread it has already notified them of?
I ask because I am interested in having users emailed if there is a new thread or if there are any additions to existing threads regardless of whether they have been previously notified but perhaps failed to check the Forum.