
04-30-2002, 01:30 PM
|
|
|
Join Date: Mar 2002
Location: New York State
Posts: 576
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally posted by 212rikanmofo
you said this hack is for vb 2.2.5?
in your instructions it stated to find this line in my members.php
Code:
// Set birthday fields right here!
if ($userinfo[birthday] == '0000-00-00') {
$birthday = "N/A";
} else {
$bday = explode("-",$userinfo[birthday]);
if (date("Y")>$bday[0] and $bday[0]>1901 && $bday[0]!='0000') {
$birthday = @date($calformat1,mktime(0,0,0,$bday[1],$bday[2],$bday[0]));
} else {
// lets send a valid year as some PHP3 don't like year to be 0
// $calformat2 should not contania year identifier so the year doesn't matter
$birthday = @date($calformat2,mktime(0,0,0,$bday[1],$bday[2],1993));
}
if ($birthday=="") {
$birthday="$bday[1]-$bday[2]-$bday[0]";
}
}
eval("\$birthday = \"".gettemplate("getinfo_birthday")."\";");
}
but in mine members.php its:
Code:
// Set birthday fields right here!
if ($bbuserinfo[birthday] == '0000-00-00') {
$daydefaultselected = "selected";
$monthdefaultselected = "selected";
} else {
$birthday = explode("-",$bbuserinfo[birthday]);
$dayname = "day".$birthday[2]."selected";
$$dayname = "selected";
$monthname = "month".$birthday[1]."selected";
$$monthname = "selected";
if (date("Y")>$birthday[0] && $birthday[0]!='0000')
$year = $birthday[0];
}
eval("\$birthday = \"".gettemplate("register_birthday")."\";");
} else {
$birthday = '';
}
so what exactly do i change? im afraid to change it, since it's like almost different... and i have vb 2.2.5
|
ahhh...i made it on 2.2.3, any ways, i added the instructions below in the text for you to add it also i updated the zip file in the first post
|