Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4255
Latest: andreios
New This Month: 3
New This Week: 1
New Today: 0
Stats
Total Posts: 43259
Total Topics: 7518
Most Online Today: 201
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 184
Total: 184

Author Topic: Total Time Spent Online  (Read 2561 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: 16436
    • 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: 16436
    • 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
14883 Views
Last post May 20, 2006, 03:18:11 pm
by SMFHacks
7 Replies
111950 Views
Last post March 24, 2008, 06:27:35 am
by marjinalhakan
1 Replies
4290 Views
Last post February 23, 2011, 09:36:12 am
by SMFHacks
1 Replies
4995 Views
Last post November 23, 2012, 01:53:54 pm
by SMFHacks
11 Replies
9069 Views
Last post March 30, 2013, 07:49:26 pm
by madfiddler

+- Recent Topics

No thumbnails on new uploads by SMFHacks
March 27, 2024, 02:10:41 pm

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

an idea for new mod (( content type with different display )) by SMFHacks
February 27, 2024, 01:36:27 pm

[Mod] RSS Feed Poster by SMFHacks
February 27, 2024, 11:57:18 am

find duplicate pictures by fvlog19
February 14, 2024, 02:22:40 pm

Error uploading video. by SMFHacks
February 08, 2024, 02:04:16 pm

Gallery icon as last added image by fvlog19
February 01, 2024, 01:04:56 pm

Powered by EzPortal