Hi...
i want to know how to add "time logged in" into the post profile.. i.e. in the post below the author image...
plz help me...
hello...
open display.template.php
find:
// Show how many posts they have made.
add before:
echo '<li>
', $txt['totalTimeLogged1'];
// If days is just zero, don't bother to show it.
if ($context['user']['total_time_logged_in']['days'] > 0)
echo $context['user']['total_time_logged_in']['days'] . $txt['totalTimeLogged2'];
// Same with hours - only show it if it's above zero.
if ($context['user']['total_time_logged_in']['hours'] > 0)
echo $context['user']['total_time_logged_in']['hours'] . $txt['totalTimeLogged3'];
// But, let's always show minutes - Time wasted here: 0 minutes ;).
echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
echo '</li>';
ok.. thanks... but in code where i hv to change to make "total time logged in" to only "total time"
help me...
it is in default/languages/index.english.php
$txt['totalTimeLogged1'] = 'Total time logged in: ';
replace
$txt['totalTimeLogged1'] = 'Total time: ';
Really very big big thanks to you....
God bless you....
1 problem... admin's total time is comes on all the members profile and as a guest it shows 0 for all...
whats the problem....???
guests don't see total time...
its ok.. But the admins total time is come for all the members post profile.. The same total time is come.. Why this happen? Plz help me..
please any1 help me........
gumboy please do not bump within 24 hours we are all volunteers and reply if and when we know the answer
sorry...