Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4257
Latest: Alex998.
New This Month: 1
New This Week: 0
New Today: 0
Stats
Total Posts: 43295
Total Topics: 7523
Most Online Today: 230
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 207
Total: 207

Author Topic: Total Time Spent Online  (Read 2583 times)

0 Members and 1 Guest are viewing this topic.

Offline jack shappel

  • Member
  • *
  • Posts: 3
    • View Profile
Total Time Spent Online
« on: January 29, 2017, 05:00:19 am »
as you see the subject , my question is about the total time spent online and how the systeme works, I means is there any timeout or anything that lets the time be counted

Also , Please i want a solution how to increase fast that total time spent online

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: Total Time Spent Online
« Reply #1 on: January 29, 2017, 09:07:09 pm »
It is based on every 15 minutes
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline jack shappel

  • Member
  • *
  • Posts: 3
    • View Profile
Re: Total Time Spent Online
« Reply #2 on: January 30, 2017, 12:02:52 am »
It is based on every 15 minutes
Please can you explain me more ?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: Total Time Spent Online
« Reply #3 on: January 30, 2017, 12:12:57 am »
Check out Sources/Subs.php
writelog function
Code: [Select]
// Set their login time, if not already done within the last minute.
if (SMF != 'SSI' && !empty($user_info['last_login']) && $user_info['last_login'] < time() - 60)
{
// Don't count longer than 15 minutes.
if (time() - $_SESSION['timeOnlineUpdated'] > 60 * 15)
$_SESSION['timeOnlineUpdated'] = time();

$user_settings['total_time_logged_in'] += time() - $_SESSION['timeOnlineUpdated'];
updateMemberData($user_info['id'], array('last_login' => time(), 'member_ip' => $user_info['ip'], 'member_ip2' => $_SERVER['BAN_CHECK_IP'], 'total_time_logged_in' => $user_settings['total_time_logged_in']));

Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

 

Related Topics

  Subject / Started by Replies Last post
0 Replies
14894 Views
Last post May 20, 2006, 03:18:11 pm
by SMFHacks
7 Replies
112038 Views
Last post March 24, 2008, 06:27:35 am
by marjinalhakan
1 Replies
4330 Views
Last post February 23, 2011, 09:36:12 am
by SMFHacks
1 Replies
5026 Views
Last post November 23, 2012, 01:53:54 pm
by SMFHacks
11 Replies
9108 Views
Last post March 30, 2013, 07:49:26 pm
by madfiddler

+- Recent Topics

Please Help! by SMFHacks
April 17, 2024, 08:04:55 am

Rate own images by fvlog19
April 11, 2024, 10:56:53 am

Tidy Child Boards on 2.1.4 by SMFHacks
April 04, 2024, 03:54:12 pm

Problems SMF 2.0.19 > 2.1.4 SMF Gallery Pro - Recents Images to overall header by Michel68
March 30, 2024, 12:41:08 pm

Can't DROP 'id_member'; check that column/key exists Datei: by SMFHacks
March 30, 2024, 11:58:20 am

No thumbnails on new uploads by Tonyvic
March 29, 2024, 06:26:18 am

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

Powered by EzPortal