Sida 1 av 1
New Post E-Mail Notification
Postat: 2007-03-05 17:54
av fara
Hej,
Jag har använt denna Hack New Post E-Mail Notification men den har slutat att fungera trots ominstallation. Vet ni varför och hur jag lösa det? Eller en annan som har samma funktion.
Tack på förhand.
Postat: 2007-03-05 22:11
av Marcus
Det var inte mycket att gå på där... så nej, jag har ingen aning.
Försöker säga, ge oss mer detaljer.
/marcus
Postat: 2007-03-06 13:12
av fara
Hej,
Tack för hjälpen. Här kommer mera detaljer:
Jag brukade få ett meddelande när någon skriver ett nytt inlägg men detta sker inte längre, trots att jag har ominstallation av hack.
Kod: Markera allt
###############################################
## Hack Title: New Post Email Notification
## Hack Version: 1.0
## Author: Pinyo Bhulipongsanon
## Description: Your forum send you an email whenever a new post is made.
## Compatibility: 2.0.0 - 2.0.13
###############################################
## You downloaded this hack from phpBBHacks.com, the #1 source for phpBB related downloads.
## Please visit http://www.phpbbhacks.com/forums for support.
###############################################
##
###############################################
## This hack is released under the GPL License.
## This hack can be freely used, but not distributed, without permission.
## Intellectual Property is retained by the hack author(s) listed above.
###############################################
#
#-----[ Open ]------------------------------------------
#
includes/functions_post.php
#
#-----[ Find ]------------------------------------------
#
if ($mode == 'newtopic')
{
$topic_id = $db->sql_nextid();
#
#-----[ Add After ]------------------------------------------
#
# email first post - BEGIN
$forumURL = "http://www.yourdomain.com/forums";
$adminEmail = "admin@yourdomain.com";
$subject = "New Post Notification";
$headers = "From: Yourdomain.com Forums Admin <contact01@yourdomain.com>\r\n";
$message = "A new post was made to your forum, click on the link below to view the topic:\n\nLink: $forumURL/viewtopic.php?t=$topic_id";
@mail ( $adminEmail, $subject, $message, $headers);
# email first post - END
#
#-----[ Modify ]------------------------------------------
#
Change the variables to match your site information
#
#-----[ SAVE & CLOSE ALL FILES ]--------------------------
#
#End
Postat: 2007-03-06 14:00
av Marcus
Kan bero på ditt webbhotell, om de stängt av din möjlighet att använda kommandot "mail" i PHP.
Det är nog det enda jag kan komma på... om det inte är ett spamfilter som tar död på ditt mail.
/marcus