Hi
Daryl! .. sorry about that - I do know some Darrell's ..
This is my lib.php file:
[Quote]
function forum_cron () {
/// Function to be run periodically according to the moodle cron
/// Finds all posts that have yet to be mailed out, and mails them
/// out to all subscribers
global $CFG, $USER, $THEME;
static $strforums = NULL;
if ($strforums === NULL) {
$strforums = get_string('forums', 'forum');
}
if (!empty($USER->id)) { // Remember real USER account if necessary
$realuser = $USER;
}
/// Posts older than 2 days will not be mailed. This is to avoid the problem where /// cron has not been running for a long time, and then suddenly people are flooded /// with mail from the past few weeks or months $timenow = time(); $endtime = $timenow - $CFG->maxeditingtime; $starttime = $endtime - 48 * 3600; /// Two days earlier if ($posts = forum_get_unmailed_posts($starttime, $endtime)) {
[/Quote]
Do I replace the stuff in bold with your edits, or add them (above or below)?
Thanks again for helping such a n00b! :D