Quote:
Originally posted by Sukij
Hi..
Got problem !!! The Age behind the name is shift down.. Normally, Benjapa(26), Duengpon(34).... etc.
Please help..
|
Birthday Fix:
Find This:
PHP Code:
if ($user[birthday] != $lastbirthday) {
if ($datebits[0] != "0000") {
$currentdate = date($calformat2, mktime(0,0,0,$datebits[1],$datebits[2],0));
$birthdayspreview .=" <tr>\n";
$birthdayspreview .=" <td><font size=\"2\">$currentdate: <a href=\"$bburl/member.php?action=getinfo&userid=$user[userid]\">$user[username]$age</a></font></td>\n";
$birthdayspreview .=" </tr>\n";
// text mail option start
$text_birthdayspreview .= "\n$currentdate:\n";
// text mail option end
$age = " (".($thisyear - $datebits[0]).")";
} else {
$currentdate = date($calformat2, mktime(0,0,0,$datebits[1],$datebits[2],0));
$birthdayspreview .= " <tr>\n";
$birthdayspreview .=" <td><font size=\"2\">$currentdate: <a href=\"$bburl/member.php?action=getinfo&userid=$user[userid]\">$user[username]$age</a></font></td>\n";
$birthdayspreview .=" </tr>\n";
// text mail option start
$text_birthdayspreview .= "\n$currentdate:\n";
// text mail option end
$age = "";
}
}
Replace With This
PHP Code:
if ($user[birthday] != $lastbirthday) {
if ($datebits[0] != "0000") {
$currentdate = date($calformat2, mktime(0,0,0,$datebits[1],$datebits[2],0));
$age = " (".($thisyear - $datebits[0]).")";
$birthdayspreview .=" <tr>\n";
$birthdayspreview .=" <td><font size=\"2\">$currentdate: <a href=\"$bburl/member.php?action=getinfo&userid=$user[userid]\">$user[username]$age</a></font></td>\n";
$birthdayspreview .=" </tr>\n";
// text mail option start
$text_birthdayspreview .= "\n$currentdate:\n";
// text mail option end
} else {
$currentdate = date($calformat2, mktime(0,0,0,$datebits[1],$datebits[2],0));
$age = "";
$birthdayspreview .= " <tr>\n";
$birthdayspreview .=" <td><font size=\"2\">$currentdate: <a href=\"$bburl/member.php?action=getinfo&userid=$user[userid]\">$user[username]$age</a></font></td>\n";
$birthdayspreview .=" </tr>\n";
// text mail option start
$text_birthdayspreview .= "\n$currentdate:\n";
// text mail option end
}
}