Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
v2.0 Email new thread notifications to subscribed users Details »
v2.0 Email new thread notifications to subscribed users
Mod Version: 1.00, by chrispadfield (Member) chrispadfield is offline
Developer Last Online: Oct 2008 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 2.2.x Rating: (0 vote - 0 average) Installs: 7
Released: 30 May 2001 Last Update: Never Downloads: 0
Not Supported  

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:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

below the section //send email to moderators which ends with

}
}
}
}

add two templates:

i) email_newthread


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

and secondly

email_newthreadsubject


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

any you are away

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Subscribed Threads, Subscribed Forums, and Event Reminders calorie vBulletin 3.6 Add-ons 7 30 Aug 2011 14:39

  #16  
Old 16 Oct 2001, 19:55
Stasik Stasik is offline
 
Join Date: Nov 2001
that was linebrake
Reply With Quote
  #17  
Old 16 Oct 2001, 22:11
webhost's Avatar
webhost webhost is offline
 
Join Date: Oct 2001
Tested and works great on my board and 2 others.
__________________
Real Web Host
RWH Forums
Email Us Here
Reply With Quote
  #18  
Old 17 Oct 2001, 01:39
VirtueTech VirtueTech is offline
 
Join Date: Oct 2001
I can't believe I overlooked this.
__________________
PaintballCity.com
VB Board of the Month: October
Reply With Quote
  #19  
Old 17 Oct 2001, 02:09
WizyWyg's Avatar
WizyWyg WizyWyg is offline
 
Join Date: Oct 2001
Hi can someone repost the code in its entirety with all the corrections. looking through the coding and this site is somewhat driving me cross eyed
__________________
http://www.animation-web.com/
Reply With Quote
  #20  
Old 17 Oct 2001, 09:41
chrispadfield's Avatar
chrispadfield chrispadfield is offline
 
Join Date: Oct 2001
Originally posted by WizyWyg
Hi can someone repost the code in its entirety with all the corrections. looking through the coding and this site is somewhat driving me cross eyed
my code in the 1st post still works for me
__________________
Christopher Padfield
[email protected]

http://www.deskpro.com - Manage your customer support
Now Avaliable
Reply With Quote
  #21  
Old 17 Oct 2001, 10:39
Kevin Green
Guest
 
Question My newthread.php doesn't contain the // send email to moderators bit

As stated in the subject I would like to implement this hack but my 2.0.3 vBulletin newthread.php does not contain the line:-

// send email to moderators

here is the listing of my newthread.php (this is the original one I got with my vBulletin package as far as I am aware):-

{htmldoctype}
<html>
<head>
<title>$bbtitle - Post New Thread</title>
$headinclude
<!--<script type="text/javascript" language="javascript" src="$bburl/spellcheck/spch.js"></script>-->
<script language="javascript">
<!--
var postmaxchars = $postmaxchars;
function validate(theform) {
if (theform.message.value=="" || theform.subject.value=="") {
alert("Please complete the subject and message fields.");
return false; }
if (postmaxchars != 0) {
if (theform.message.value.length > $postmaxchars) {
alert("Your message is too long.\n\nReduce your message to $postmaxchars characters.\nIt is currently "+theform.message.value.length+" characters long.");
return false; }
else { return true; }
} else { return true; }
}
function checklength(theform) {
if (postmaxchars != 0) { message = "\nThe maximum permitted length is $postmaxchars characters."; }
else { message = ""; }
alert("Your message is "+theform.message.value.length+" characters long."+message);
}
//-->
</script>
</head>
<body>
$header

<!-- breadcrumb -->
<table cellpadding="2" cellspacing="0" border="0" width="{contenttablewidth}" {tableinvisibleextra} align="center">
<tr>
<td width="100%">$navbar</td>
</tr>
</table>
<!-- /breadcrumb -->

$postpreview

<br>

<form enctype="multipart/form-data" action="newthread.php" method="POST" name="vbform" onSubmit="return validate(this)">
<input type="hidden" name="s" value="$session[sessionhash]">
<input type="hidden" name="forumid" value="$forumid">
<input type="hidden" name="action" value="postthread">

<table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" bgcolor="{tablebordercolor}" {tableouterextra} width="{contenttablewidth}" align="center"><tr><td>
<table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextra} width="100%">
<tr>
<td bgcolor="{tableheadbgcolor}" colspan="2"><normalfont color="{tableheadtextcolor}" class="thtcolor"><b>Post New Thread</b></normalfont></td>
</tr>
$logincode
<tr bgcolor="{secondaltcolor}">
<td bgcolor="{secondaltcolor}"><normalfont><b>Subject:</b></normalfont></td>
<td bgcolor="{secondaltcolor}"><normalfont><input type="text" class="bginput" name="subject" value="$subject" size="40" maxlength="85" tabindex="1"></normalfont></td>
</tr>
$posticons
$vbcode_buttons
<tr>
<td bgcolor="{secondaltcolor}" valign="top" nowrap><normalfont><b>Message:</b></normalfont>
<p><smallfont>
See Forum Rules (below) for<br>
more information about what<br>
codes you are allowed to use<br>
in your posts.
</smallfont></p>
$vbcode_smilies</td>
<td bgcolor="{secondaltcolor}">
<table cellpadding="0" cellspacing="0" border="0">
<tr valign="top">
<td><textarea name="message" rows="20" cols="$textareacols" wrap="virtual" tabindex="2">$message</textarea><br>
<smallfont><a href="javascript:checklength(document.vbform);">[check message length]</a></smallfont></td>
</tr>
</table>
</td>
</tr>
<tr>
<td bgcolor="{firstaltcolor}" valign="top"><normalfont><b>Options:</b></normalfont></td>
<td bgcolor="{firstaltcolor}" valign="top"><smallfont>
<input type="checkbox" name="parseurl" value="yes" $parseurlchecked> <b>Automatically parse URLs:</b> automatically adds and around internet addresses.
<br><input type="checkbox" name="email" value="yes" $emailchecked> <b>Email Notification:</b> emails sent to you whenever someone replies. Only registered users are eligible.
$disablesmiliesoption
<br><input type="checkbox" name="signature" value="yes" $signaturechecked> <b>Show Signature:</b> include your profile signature. Only registered users may have signatures.
</smallfont></td>
</tr>
$attachmentoption
$postpolloption
</table>
</td></tr></table>

<br>

<table cellpadding="2" cellspacing="0" border="0" width="{contenttablewidth}" {tableinvisibleextra} align="center">
<tr>
<td align="center"><normalfont>
<input type="submit" class="bginput" name="submit" value="Submit New Thread" accesskey="s" tabindex="3">
<input type="submit" class="bginput" name="preview" value="Preview Post" accesskey="p" tabindex="4">
<!--<input type="button" class="bginput" value="Spell Check" onclick="var f=document.forms['vbform']; doSpell( '$spellchecklang', f.message, '$bburl/spellcheck/sproxy.php', true);" tabindex="5">-->
</normalfont></td>
</tr>
</table>

</form>

<table cellpadding="2" cellspacing="0" border="0" width="{contenttablewidth}" {tableinvisibleextra} align="center">
<tr>
<td><smallfont><b>Forum Rules:</b><br>$forumrules</smallfont></td>
</tr>
</table>

$footer

</body>
</html>


Reply With Quote
  #22  
Old 17 Oct 2001, 14:48
Fred Manteghian
Guest
 
$$bbtitle issue also

Originally posted by chrispadfield
mail($touser[email],$emailsubject,$emailmsg,"From: \"$bbtitle Mailer\" <$webmasteremail>");

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.

Hi Chris,

this is a wonderful bit of code, thanks so much.

I too have the problem where the template's use of the $bbtitle varialbe works fine, but when my email is received the "from" field is blank.

I'm new to PHP3 and scripts (groan...i'll let ya ), but I see identical code in Newreply.php3 and that seems to work fine?

Thanks again.
Reply With Quote
  #23  
Old 17 Oct 2001, 15:27
webhost's Avatar
webhost webhost is offline
 
Join Date: Oct 2001
Fred Manteghian

install Chris's code then make the change in Stasik post and then delete this template


email_newthreadsubject
__________________
Real Web Host
RWH Forums
Email Us Here
Reply With Quote
  #24  
Old 22 Oct 2001, 20:29
webhost's Avatar
webhost webhost is offline
 
Join Date: Oct 2001
Seen a couple of people asking about this, so I figured I would bump it up again.
__________________
Real Web Host
RWH Forums
Email Us Here
Reply With Quote
  #25  
Old 22 Oct 2001, 22:12
chrispadfield's Avatar
chrispadfield chrispadfield is offline
 
Join Date: Oct 2001
p.s. a word of warning with this hack, if you have very busy forums don't install it This is because if, say you had 500 people subscribed to a forum then ever new thread they are going to get an email, this will slow down newticket creation quite a lot.

Eventually, i am going to be working on a proper system that sends emails after a delayed period so your users do not notice it.
__________________
Christopher Padfield
[email protected]

http://www.deskpro.com - Manage your customer support
Now Avaliable
Reply With Quote
  #26  
Old 23 Oct 2001, 08:44
claytonp claytonp is offline
 
Join Date: Nov 2001
Hello Chris,

Many thanks for the advice concerning the large number of users on the forum, I finally got the hack to work.
Just to give you a little bit of background: We have set up a forum for Urgent problems - so rather than worry about my email distribution list, all I have to do now is post a message on the forum and those people who have registered will now receive the email - great.
However, if I then want to post a "followup" message to say that everything is OK, I would then POST REPLY which would contain the appropriate message, but this is NOT emailed to the registered users.

Is there a hack around this - is it the file newreply.php ?

Please help, because we need to get this up and running as soon as possible.

Your help is greatly appreciated.
__________________
Best Regards

Clayton
Reply With Quote
  #27  
Old 23 Oct 2001, 09:49
chrispadfield's Avatar
chrispadfield chrispadfield is offline
 
Join Date: Oct 2001
you mean you want everyone to get ever reply or just your replies? it requries some hacking of reply.php but I don't think it exists of yet.
__________________
Christopher Padfield
[email protected]

http://www.deskpro.com - Manage your customer support
Now Avaliable
Reply With Quote
  #28  
Old 23 Oct 2001, 11:01
claytonp claytonp is offline
 
Join Date: Nov 2001
Hello Chris,

Many thanks for your reply. In this case I would want the following:

For ALL post replies in the forum, EVERYBODY (who has subscribed to that forum) would be notified via email.

As I said, this forum is for Urgent issues and we need to keep customers informed of every development.


Hope this helps.
__________________
Best Regards

Clayton
Reply With Quote
  #29  
Old 14 Nov 2001, 02:50
WizyWyg's Avatar
WizyWyg WizyWyg is offline
 
Join Date: Oct 2001
Could someone show me a working example cause I haven't been able to get this to work or pass along their modified php files to get this to work?

I get no emails whatsoever on anything being posted to any forum Im subscribed to.

Can you also repost the code in its entirety correctly with all "corrections' included along with any new templates?

Does this work for 2.2.0 as well?
Reply With Quote
  #30  
Old 15 Nov 2001, 10:08
chrispadfield's Avatar
chrispadfield chrispadfield is offline
 
Join Date: Oct 2001
- I have not tested it on 2.2
- Remember when testing it that it will not send you notifications if you are the one that started the thread, you need to test with 2 people.
- You can not distribute it as a hacked file if you got it to work.


When i do the almighty upgrade to 2.2 I will revisit the hack.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 18:16.

Layout Options | Width: Wide Color: