php forum
php mysql forum
php mysql smarty
 
Topic Options
#231639 - 01/03/03 09:41 AM [6.2] Subscriber Emailer 2.0 Hack
Lunatik Offline
User

Registered: 06/18/02
Posts: 28
Mod Name: Subscriber Emailer 2.0 <br /> <br />Description: Sends emails to subscribers when a post is made instead of a daily archive. <br /> <br />Author: Lunatik <br />Date: 01/03/2003 <br />Working Under: UBB.Threads 6.2 <br />Files Modified: addpost.php <br />Databases Modified: None <br /> <br />Version Notes: <br />- Table Prefix Variable added so its no longer hardcoded to w3t_


Attachments
63488-Subscriber-Emailer-2_0.txt (92 downloads)



Edited by Lunatik (01/03/03 09:42 AM)

Top
#231640 - 01/03/03 01:09 PM Re: [6.2] Subscriber Emailer 2.0 Hack [Re: sari]
Lunatik Offline
User

Registered: 06/18/02
Posts: 28
I forgot to add this in the instructions.<br /><br />edit languages/editemail.php <br /><br />and change<br /><br />$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.)";<br /><br />to<br /><br />$ubbt_lang['SUB_STAT'] = "Subscription status for the following forums. (Receive an email on all posts to this forum via your Real email address.)";

Top
#231641 - 11/05/03 01:10 PM Re: [6.2] Subscriber Emailer 2.0 Hack [Re: sari]
slayer60 Offline
Junior Member

Registered: 06/14/03
Posts: 1185
Loc: New Boston, NH
This mod for instant subscriptions works for 6.3

Top
#231642 - 11/05/03 03:05 PM Re: [6.2] Subscriber Emailer 2.0 Hack [Re: BrokenToy]
slayer60 Offline
Junior Member

Registered: 06/14/03
Posts: 1185
Loc: New Boston, NH
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?

Top
#231643 - 03/30/04 03:11 PM Re: [6.2] Subscriber Emailer 2.0 Hack [Re: BrokenToy]
Geoff Offline
Lurker

Registered: 03/25/04
Posts: 5
Whoops, I posted on the wrong thread. Please ignore.


Edited by Geoff (03/30/04 03:13 PM)

Top
#231644 - 09/09/04 01:53 PM Re: [6.2] Subscriber Emailer 2.0 Hack [Re: fossen]
slayer60 Offline
Junior Member

Registered: 06/14/03
Posts: 1185
Loc: New Boston, NH
I tried applying this to 6.4.4. When you submit the post it gives the following error:<br />Fatal error: Call to undefined function: headers() in /home/wwwtsbiu/public_html/iBASE/addpost.php on line 1056<br /><br />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?

Top
#231645 - 09/13/04 11:21 AM Re: [6.2] Subscriber Emailer 2.0 Hack [Re: BrokenToy]
slayer60 Offline
Junior Member

Registered: 06/14/03
Posts: 1185
Loc: New Boston, NH
Could someone please glance at this. I'm sure its a simple fix for someone with real skillz.<br /><br />I'd be ever so gratefull...

Top
#231646 - 09/17/04 03:43 PM Re: [6.2] Subscriber Emailer 2.0 Hack [Re: BrokenToy]
slayer60 Offline
Junior Member

Registered: 06/14/03
Posts: 1185
Loc: New Boston, NH
Okay, by removing this line:<br />
Code:
<br />    $header = $mailer -&gt; headers(); <br />
<br /><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?

Top
#231647 - 12/01/04 06:51 PM Re: [6.2] Subscriber Emailer 2.0 Hack [Re: BrokenToy]
Astaran Offline
Addict

Registered: 12/21/00
Posts: 1545
Loc: Germany
Search in the instructions for:<br />
Code:
<br />$to = $Mailto;<br />    $mailer = new mailer;<br />    $header = $mailer -&gt; 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&amp;Board=$Board&amp;Number=$Mnumber$newline${newline}------Message Below------${newline}Subject: $FormSubject${newline}${newline}Message:$newline$EmailBody";<br /><br />    mail("$to","$subject",$msg,$header);<br />
<br /><br />Replace with:<br />
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&amp;Board=$Board&amp;Number=$Mnumber$newline${newline}------Message Below------${newline}Subject: $FormSubject${newline}${newline}Message:$newline$EmailBody";<br /> $mailer -&gt; send_mail("","",$to,$subject,$msg);<br />
_________________________
Running a community? -> Keep informed and take it to the next level

Top


Top Posters Last 30 Days
AllenAyres 63
Gizmo 27
sirdude 24
Zarzal 12
blaaskaak 10
tackaberry 4
winter 3
Who's Online
1 Registered (AllenAyres), 35 Guests and 8 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
iPhone 3G
by AllenAyres
07/23/08 09:59 PM
[7.x] [Beta] Purge Welcome Messages
by Gizmo
07/23/08 06:58 PM
Team UBBDev Rides Again!
by AllenAyres
07/23/08 03:23 PM
User Authentication Class
by Gizmo
07/21/08 07:07 PM
Auto repair table
by blaaskaak
07/19/08 06:16 PM
[7.3.x] ubb.links
by AllenAyres
07/18/08 05:09 PM
ubb.social
by willing
07/17/08 06:29 PM
New Mods
[7.3+] CustomTag - Photobucket Slideshow
by Gizmo
07/12/08 11:14 AM
[7.3.x] Copy forum permissions
by blaaskaak
07/09/08 02:37 PM
Protect users emails
by Basil Fawlty
06/29/08 08:44 AM
[7.3.x] Scheduled board close for backup
by blaaskaak
06/26/08 04:01 AM
[7.3+] CustomTag - Audo Embedding
by Gizmo
06/24/08 07:52 PM
Newest Members
nixadmin, Stanley, NazzaN, mmem700, Tyler
13310 Registered Users

 

 

 
fusionbb message board php hacks