show user age in profile

310
.
Any wapmaster know to it how show to user age with user date of birth ? Like if your date of birth is 01-01-2000 then age shown 15years in user profile. If you have any idea or code please share with me.
.
(\/)____o_O____(\/)
Возраст юзера add function age, and use in profile file
.
# Koenig (20.12.2015 / 07:25)
Возраст юзера add function age, and use in profile file
Great, i am downloading to calcage_v2.zip and after uploading in /public_html/users/includes/profile and unzip to it here, after unziped shown to me 2,folders
incfiles and str
in /str/ is a file anketa.php and in incfiles is also a file func.php , so what i do now?
.
(\/)____o_O____(\/)
Azhar-Ali, this mod for 3.x.x , need only function, and modify your profile.php call function
.
# Koenig (20.12.2015 / 10:11)
Azhar-Ali, this mod for 3.x.x , need only function, and modify your profile.php call function
I do'nt understand to it. Please you copy and paste here age code, i am new in johncms but you a good developer.
.
Koenig
(\/)____o_O____(\/)
Azhar-Ali, /users/includes/profile/info.php
line 34
'<li><span class="gray">' . $lng_profile['birt'] . ':</span> ' . (empty($user['dayb']) ? '' : sprintf("%02d", $user['dayb']) . '.' . sprintf("%02d", $user['monthb']) . '.' . $user['yearofbirth']) . ' (' . (int)((time() - mktime(0, 0, 0, $user['monthb'], $user['dayb'], $user['yearofbirth'])) / (60 * 60 * 24 * 365.25)) . ')</li>' .
.
(\/)____o_O____(\/)
screen test
Прикрепленные файлы:
.
# Koenig (20.12.2015 / 23:52)
screen test
Oh Thank you so mach, its Code 100% working for me. You realy a very nice developer in the all of johncms, Very good job.
Всего: 8