Hey, JackAss!
Weil die Zeitberechnung des Punktesys laut Rock@Wulf scheiße ist.
Fix:
include/includes/func/pointsys.php
Zeile 141:
function getmedal($nr,$value){
if($nr==1){
$ej=date('Y',$value);
$ej20=date('n',$value);
$ej30=date('j',$value);
$ej3=mktime(0,0,0,$ej20,$ej30,$ej+3);
$ej2=mktime(0,0,0,$ej20,$ej30,$ej+2);
$ej1=mktime(0,0,0,$ej20,$ej30,$ej+1);
$aktime = time();
if($aktime >= $ej3){
$toreturn='<img src="include/images/medals/1s3.gif" alt="Stufe3" border="0">';
}
elseif ($aktime >= $ej2){
$toreturn='<img src="include/images/medals/1s2.gif" alt="Stufe2" border="0">';
}
elseif ($aktime >= $ej1){
$toreturn='<img src="include/images/medals/1s1.gif" alt="Stufe1" border="0">';
} else {
$toreturn='<img src="include/images/medals/1s0.gif" alt="NA" border="0">';
}
} elseif($nr==2){
if($value>='500'){
$toreturn='<img src="include/images/medals/2s3.gif" alt="Stufe3" border="0">';
} elseif ($value>='100'){
$toreturn='<img src="include/images/medals/2s2.gif" alt="Stufe2" border="0">';
} elseif ($value>='50'){
$toreturn='<img src="include/images/medals/2s1.gif" alt="Stufe1" border="0">';
} else {
$toreturn='<img src="include/images/medals/1s0.gif" alt="NA" border="0">';
}
} elseif($nr==3){
if($value>='1000'){
$toreturn='<img src="include/images/medals/3s3.gif" alt="Stufe3" border="0">';
} elseif ($value>='500'){
$toreturn='<img src="include/images/medals/3s2.gif" alt="Stufe2" border="0">';
} elseif ($value>='200'){
$toreturn='<img src="include/images/medals/3s1.gif" alt="Stufe1" border="0">';
} else {
$toreturn='<img src="include/images/medals/1s0.gif" alt="NA" border="0">';
}
} elseif($nr==4){
if ($value==1){
$toreturn='<img src="include/images/medals/4s1.gif" alt="Stufe1" border="0">';
} else {
$toreturn='<img src="include/images/medals/1s0.gif" alt="NA" border="0">';
}
} else {
$toreturn='No Award';
}
return($toreturn);
}
Einfach die Funktion ersetzen und das passt mit 1-3 Jahren.
Mit böhsen Grüßen
BöhserDavid