New Post E-Mail Notification

Frågor kring MODdar (modifikationer) för phpBB 2.0.x.

Moderatorer: Moderatorgrupp, Supportgrupp

fara
Gammal medlem
Gammal medlem
Inlägg: 90
Blev medlem: 2005-08-21 17:37
Svar: 0

New Post E-Mail Notification

Inlägg 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.
Bild
Användarens profilbild
Marcus
Hedersmedlem
Hedersmedlem
Inlägg: 4321
Blev medlem: 2004-01-07 22:12
Svar: 0

Inlägg 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
Marcus Farrington - Administratör på phpBB Sverige
OBS! På förekommen anledning ges ingen support via PM.

Webb- & Drupalutvecklare på Webbyrå Grebban.
fara
Gammal medlem
Gammal medlem
Inlägg: 90
Blev medlem: 2005-08-21 17:37
Svar: 0

Inlägg 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
Bild
Användarens profilbild
Marcus
Hedersmedlem
Hedersmedlem
Inlägg: 4321
Blev medlem: 2004-01-07 22:12
Svar: 0

Inlägg 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
Marcus Farrington - Administratör på phpBB Sverige
OBS! På förekommen anledning ges ingen support via PM.

Webb- & Drupalutvecklare på Webbyrå Grebban.
Skriv svar

Vilka är online

Användare som besöker denna kategori: 8 och 0 gäster