Advertisement:

members statistics on board main page

Aloittaja dursunali, tammikuu 31, 2012, 07:11:26 IP

« edellinen - seuraava »

dursunali

I want to see members statistics on  board main page especially 'Total Time Spent Online'
System Network Database
Support Engineer
http://www.artibilisim.com
http://www.logoservisi.org

dursunali

System Network Database
Support Engineer
http://www.artibilisim.com
http://www.logoservisi.org

Illori

not if you are that impatient to even wait more then 30 minutes for a reply. remember we are all volunteers and especially when wanting a mod it can take several days for someone to find the request and decide if they want to work on it.

also i have removed your other topic on this, dont make multiple topics on the same thing.

dursunali

maybe this is importanf for you , I have send twice because another person may be deal to me ! and also after you are warn to me then send a reply for me .
System Network Database
Support Engineer
http://www.artibilisim.com
http://www.logoservisi.org

dursunali

System Network Database
Support Engineer
http://www.artibilisim.com
http://www.logoservisi.org

hcfwesker

#5
I'm confused kind of.  Do you just want the current member viewing the page, their stat showing for themself?  Or do you want the whole stat page showing of all members ?

For Total Time Logged in on every page.  This was made on the SMF Default theme, may be different on other themes.


index.template.php

Find
<li><a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '</a></li>';

add After
// Show the total time logged in?
if (!empty($context['user']['total_time_logged_in']))
{
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'], '</li><br />';
}

dursunali

I want to this function on the user profile ,when someone acccess to form he can see follow the statistics ,

Default Statistics
Show unread posts since last visit.
Show new replies to your posts
03 Şubat, 2012, 19:00:20
-----------------------------------------
Show unread posts since last visit.
Show new replies to your posts
03 Şubat, 2012, 19:00:20
'Total Time Spent Online'




System Network Database
Support Engineer
http://www.artibilisim.com
http://www.logoservisi.org

hcfwesker

The edit I provided will make it appear above today's date.  You can move the code under the code for the date in the file if you wish.

dursunali

you are exactly more than great :) thanx in advice and co-operation .
System Network Database
Support Engineer
http://www.artibilisim.com
http://www.logoservisi.org

hcfwesker

You're welcome.  glad it worked as you wanted. :)

dursunali

definetly  it was worked exactly  like I wanna .
System Network Database
Support Engineer
http://www.artibilisim.com
http://www.logoservisi.org

Advertisement: