here we go guys ...
Since no one has done this whole next page thing for the sending out of emails (or i just couldn't find one), here is the solution:
In admincp/email.php
After:
Code:
construct_hidden_code('perpage', $perpage);
Add:
Code:
construct_hidden_code('auto_timer',stripslashes($_POST['auto_timer']));
After:
Code:
construct_hidden_code($varname, $_POST[$varname]);
}
}
Add:
Code:
$auto_timer = $_POST['auto_timer']*1000*60;
$timeremaining = $auto_timer / 1000;
echo <<< TEOL
<script language="javascript">
<!--
countdown = $auto_timer;
actualcountdown = $timeremaining;
function submit_form()
{
document.cpform.submit();
}
function count_down()
{
actualcountdown = actualcountdown-1;
document.cpform.timeremaining.value=actualcountdown+ ' seconds remaining';
setTimeout('count_down()',1000);
}
//-->
setTimeout('submit_form()',$auto_timer);
setTimeout('count_down()',1000);
</script>
<input type=text name=timeremaining value="$timeremaining seconds remaining">
TEOL;
After:
Code:
print_yes_no_row($vbphrase['test_email_only'], 'test', 0);
Add:
Code:
print_input_row($vbphrase['auto_timer'],"auto_timer",1,0,5);
Then, you just need to add "auto_timer" to your phrase table ... something along the lines of "Auto Redirect in X Minutes"