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

   [6.2] Subscriber Emailer 2.0 Hack to Del.icio.us Add to del.icio.us
  Digg [6.2] Subscriber Emailer 2.0 Hack Digg it
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 (95 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 12
Gizmo 10
S7ARBVCK 2
Cambridge 1
Murphdog 1
MattUK 1
Kevin H 1
Who's Online
0 Registered (), 29 Guests and 6 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
BeyondCompare v3.00
by blaaskaak
Yesterday at 02:46 PM
Noob - need help, or a reality check!
by Gizmo
09/04/08 03:21 AM
Here I am! Rock me like a Hurricane!
by AllenAyres
09/02/08 03:05 PM
[7.x] Generic Page Outside of forum directory
by Gizmo
08/30/08 05:43 PM
Team UBBDev Rides Again!
by Gizmo
08/28/08 11:45 PM
Multiple Identity Detector
by MattUK
08/28/08 04:10 PM
[7.3.x] ubb.links
by AllenAyres
08/26/08 09:57 AM
New Mods
Installing FlashChat with 7.3
by Paug
08/23/08 12:14 AM
[7.3.x] ubb.links
by AllenAyres
06/20/08 11:50 PM
[7.2.1] - Naked shoutbox
by sirdude
08/17/07 10:36 PM
[7.x] Generic Page Outside of forum directory
by
01/14/07 10:58 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
Newest Members
veedubb8, twentyseven, Claus1, welcomeback1, Paug
13327 Registered Users

 

 

 
fusionbb message board php hacks