Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Jun 2002
Posts: 27
User
User
Offline
Joined: Jun 2002
Posts: 27
Mod Name: Subscriber Emailer 2.0

Description: Sends emails to subscribers when a post is made instead of a daily archive.

Author: Lunatik
Date: 01/03/2003
Working Under: UBB.Threads 6.2
Files Modified: addpost.php
Databases Modified: None

Version Notes:
- Table Prefix Variable added so its no longer hardcoded to w3t_
Attachments
63488-Subscriber-Emailer-2_0.txt (0 Bytes, 167 downloads)

Last edited by Lunatik; 01/03/2003 10:42 AM.
Sponsored Links
Joined: Jun 2002
Posts: 27
User
User
Offline
Joined: Jun 2002
Posts: 27
I forgot to add this in the instructions.

edit languages/editemail.php

and change

$ubbt_lang['SUB_STAT'] = "Subscription status for the following forums. (Receive a daily archive of all posts to this forum via your Real email address.)";

to

$ubbt_lang['SUB_STAT'] = "Subscription status for the following forums. (Receive an email on all posts to this forum via your Real email address.)";

Joined: Jun 2003
Posts: 1,025
Junior Member
Junior Member
Offline
Joined: Jun 2003
Posts: 1,025
This mod for instant subscriptions works for 6.3

Joined: Jun 2003
Posts: 1,025
Junior Member
Junior Member
Offline
Joined: Jun 2003
Posts: 1,025
When this hack sends a copy of the post it just sends the text of the post. What would I need to do to get it to include a file attachment if the post contains an attachment?

Joined: Mar 2004
Posts: 5
Lurker
Lurker
Offline
Joined: Mar 2004
Posts: 5
Whoops, I posted on the wrong thread. Please ignore.

Last edited by Geoff; 03/30/2004 4:13 PM.
Sponsored Links
Joined: Jun 2003
Posts: 1,025
Junior Member
Junior Member
Offline
Joined: Jun 2003
Posts: 1,025
I tried applying this to 6.4.4. When you submit the post it gives the following error:
Fatal error: Call to undefined function: headers() in /home/wwwtsbiu/public_html/iBASE/addpost.php on line 1056

It does enter the post, but it doesn't send the email and it just sits on the white screen with the error. Anyone know what needs to be updated for 6.4?

Joined: Jun 2003
Posts: 1,025
Junior Member
Junior Member
Offline
Joined: Jun 2003
Posts: 1,025
Could someone please glance at this. I'm sure its a simple fix for someone with real skillz.

I'd be ever so gratefull...

Joined: Jun 2003
Posts: 1,025
Junior Member
Junior Member
Offline
Joined: Jun 2003
Posts: 1,025
Okay, by removing this line:
Code
<br />    $header = $mailer -> headers(); <br />


It allows the script to finish and send out the email. The only problem with it now is that its from is "Nobody" and the email address that its from is []nobody@myserver.[/] Could someone please tell me how to adjust this so that it is coming from my admin email address again?

Joined: Dec 2000
Posts: 1,471
Addict
Addict
Offline
Joined: Dec 2000
Posts: 1,471
Search in the instructions for:
Code
<br />$to = $Mailto;<br />    $mailer = new mailer;<br />    $header = $mailer -> headers(); <br />    $subject = "New Post To $Title from $postername";<br />    $msg = "$postername has posted a message to $Title: $newline{$config['phpurl']}/showthreaded.php?Cat=$Cat&Board=$Board&Number=$Mnumber$newline${newline}------Message Below------${newline}Subject: $FormSubject${newline}${newline}Message:$newline$EmailBody";<br /><br />    mail("$to","$subject",$msg,$header);<br />


Replace with:
Code
<br /> $to = $Mailto;<br /> $mailer = new mailer;<br /> $subject = "New Post To $Title from $postername";<br /> $msg = "$postername has posted a message to $Title: $newline{$config['phpurl']}/showthreaded.php?Cat=$Cat&Board=$Board&Number=$Mnumber$newline${newline}------Message Below------${newline}Subject: $FormSubject${newline}${newline}Message:$newline$EmailBody";<br /> $mailer -> send_mail("","",$to,$subject,$msg);<br />


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Posts: 70
Joined: January 2007
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)