Hi,

This is my First phpBB MOD.

------------------

MOD Title: New POSTS By Mail

MOD Version: 1.0

MOD Description: This MOD will send Every new POSTS in your Forum to email address specified by you. This will HELP you to go through every new POSTS and moderate them with out visiting each POSTS.


Download:
http://domainstobuy.com/zip/new_post...il_mod_1.0.zip

Regards,

Yujin



MOD Header:

Code:
##############################################################
## MOD Title: New Post By Mail
## MOD Author: Yujin Boby < [email protected] > (Yujin Boby) http://www.domainstobuy.com/
## MOD Description: This simple MOD send new posts to admins by email.
## MOD Version: 1.0
##
## Installation Level:	Easy
## Installation Time:	1 Minute
## Files To Edit: includes/functions_post.php
##
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/
##############################################################
## Author Notes:
##
## This MOD is especially useful for forums that is moderated by admin or have only few Moderators.
##
##############################################################
## MOD History:
##
##   2004-09-18 - Version 1.0
##	  - Initial version
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################

#
#-----[ OPEN ]---------------------------------------------
#
includes/functions_post.php

#
#-----[ FIND ]---------------------------------------------
#

$sql = ($mode != 'editpost') ? "INSERT INTO " . POSTS_TEXT_TABLE . " (post_id, post_subject, bbcode_uid, post_text) VALUES ($post_id, '$post_subject', '$bbcode_uid', '$post_message')" : "UPDATE " . POSTS_TEXT_TABLE . " SET post_text = '$post_message',  bbcode_uid = '$bbcode_uid', post_subject = '$post_subject' WHERE post_id = $post_id";

#
#-----[ AFTER, ADD ]---------------------------------------------
#

$msg_for_me = "
$post_message
_____________
http://YOURFORUM.COM/viewtopic.php?p=$post_id
";

mail("[email protected]","New Post - $post_subject","$msg_for_me","From: Your Forum <[email protected]>");

#
#-----[ NOTE ]---------------------------------------------
#

In the above code, you have to replace

[email protected] == Your Email id, to which new POST notifications will be send

YOURFORUM.COM == URL of your forum


#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM