Hulp nodig bij een modificaties of op zoek naar een MOD? Bekijk ons archief. Support wordt helaas niet meer verleend.
Forumregels
Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.
-
MacMarco
- Berichten: 68
- Lid geworden op: 12 apr 2005, 16:58
Bericht
door MacMarco » 02 okt 2005, 20:43
Ik heb de volgende mod zojuist geinstalleerd:
Code: Selecteer alles
###############################################
## 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
##
## Installation Level: Easy
## Installation Time: 5 minutes
## Files To Edit: 1
## It is recommended that you list the file names here in
## alphabetical order, starting with folders. For example:
##
## includes/functions_post.php
##
## History:
## 1.0: first release (4-10-2005)
##
## Author Notes:
## Please visit www.greatnexus.com for more webmaster resources
##
## Support: http://www.phpbbhacks.com/forums
## Copyright: Copyright © 2005 New Post Email Notification v1.0 - Pinyo Bhulipongsanon
##
###############################################
## 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
In tegenstelling tot wat de naam doet vermoeden, krijg ik geen mailtje bij elk nieuw gepost bericht, maar uitsluitend wanneer er een nieuw topic gestart wordt. Kan iemand me vertellen waar ik de bovenstaande aanvulling precies moet plakken om ervoor te zorgen dat ik bij elk bericht (nieuw of reactie) een mailtje krijg?
Mijn forum wordt niet zo heel druk bezocht, vandaar dat ik graag een mailtje wil bij een nieuw bericht of reactie.
Alvast bedankt!
-
MacMarco
- Berichten: 68
- Lid geworden op: 12 apr 2005, 16:58
Bericht
door MacMarco » 08 okt 2005, 21:52
Is er niemand die me hiermee kan helpen? Of is de vraag niet duidelijk? Of is het gewoon niet mogelijk?
-
Bee
- Berichten: 13403
- Lid geworden op: 29 aug 2004, 10:30
Bericht
door Bee » 08 okt 2005, 22:27
Het is wel mogelijk hoor, in hetzelfde bestand. Ik zal morgen voor je kijken.
... Maar ik modereer (nog) niet.
-
MacMarco
- Berichten: 68
- Lid geworden op: 12 apr 2005, 16:58
Bericht
door MacMarco » 10 okt 2005, 21:58
Weet je al iets meer, Bee? Of iemand anders?
-
-=|Rik|=-
- Berichten: 815
- Lid geworden op: 02 jan 2004, 19:49
- Locatie: Eindhoven
Bericht
door -=|Rik|=- » 11 okt 2005, 10:14
Waarom wordt er niet gewoon gebruik gemaakt van de email functie van phpbb?
-
Bee
- Berichten: 13403
- Lid geworden op: 29 aug 2004, 10:30
Bericht
door Bee » 11 okt 2005, 14:46
-=|Rik|=- schreef:Waarom wordt er niet gewoon gebruik gemaakt van de email functie van phpbb?
Voor die vraag moet je bij de maker van de mod zijn, denk ik

... Maar ik modereer (nog) niet.
-
Bee
- Berichten: 13403
- Lid geworden op: 29 aug 2004, 10:30
Bericht
door Bee » 11 okt 2005, 14:50
Probeer deze aangepaste versie van de mod.
Code: Selecteer alles
###############################################
## 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
##
## Installation Level: Easy
## Installation Time: 5 minutes
## Files To Edit: 1
## It is recommended that you list the file names here in
## alphabetical order, starting with folders. For example:
##
## includes/functions_post.php
##
## History:
## 1.0: first release (4-10-2005)
##
## Author Notes:
## Please visit www.greatnexus.com for more webmaster resources
##
## Support: http://www.phpbbhacks.com/forums
## Copyright: Copyright © 2005 New Post Email Notification v1.0 - Pinyo Bhulipongsanon
##
###############################################
## 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 != 'editpost')
{
$post_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 post:\n\nLink: $forumURL/viewtopic.php?p=$post_id#$post_id";
@mail ( $adminEmail, $subject, $message, $headers);
# email first post - END
#
#-----[ Modify ]------------------------------------------
#
Change the variables to match your site information
#
#-----[ SAVE & CLOSE ALL FILES ]--------------------------
#
#End
... Maar ik modereer (nog) niet.
-
MacMarco
- Berichten: 68
- Lid geworden op: 12 apr 2005, 16:58
Bericht
door MacMarco » 11 okt 2005, 21:20
Super, dat werkt zoals ik het bedoeld had! Nou doet de Mod wat 'ie zou moeten doen volgens de omschrijving
Bedankt Bee :thumb: