show user age in profile
8 posts · 872 views
Posts
Azhar-Ali
incfiles and str
in /str/ is a file anketa.php and in incfiles is also a file func.php , so what i do now?
Azhar-Ali
Koenig
Supervisor
Edited
Azhar-Ali
# Koenig (20.12.2015 / 07:25)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
Возраст юзера add function age, and use in profile file
incfiles and str
in /str/ is a file anketa.php and in incfiles is also a file func.php , so what i do now?
# Koenig (20.12.2015 / 10:11)I do'nt understand to it. Please you copy and paste here age code, i am new in johncms but you a good developer.
Azhar-Ali, this mod for 3.x.x , need only function, and modify your profile.php call function
(\/)____o_O____(\/)
Azhar-Ali, /users/includes/profile/info.php
line 34
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>' .# Koenig (20.12.2015 / 23:52)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.
screen test
Sign in to answer in the topic.
Log In