
07-12-2010, 06:33 PM
|
 |
Senior Member
|
|
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by AScherff
i like this Mod, because it helps manage the unactivated users.
The days are calculated as float, so you will not get the exact days after registering, that causes the "bug" posts before...
I modified the php sources to calculate the days other way - and the mod now is working very well also on 3.8.2
My hack lookes like this:
PHP Code:
$tag=date('Ymd',$user[joindate]); $heute=date("Ymd"); $j=(int)substr($tag,0,4); $m=(int)substr($tag,4,2); $t=(int)substr($tag,6,2);
$datum3=date('Ymd',mktime(0,0,0,$m,$t+3,$j)); $datum5=date('Ymd',mktime(0,0,0,$m,$t+5,$j)); $datum8=date('Ymd',mktime(0,0,0,$m,$t+8,$j)); $datum10=date('Ymd',mktime(0,0,0,$m,$t+10,$j)); ... if ($heute == $datum3) // Email users who have not activated after 3 days. ...
|
Does anyone know where to make these changes?
Edit- I've read the php code and see no reason why there would be a 'bug' that causes the emails to be resent day after day... the code clearly sends it once (if $day > 2 AND $day < 4) for exampe... maybe it should be changed to if ($day > 2.999 AND $day < 4) then?
|