Increase the number of guests shown in stats?

This is an archive of the phpBB 2.0.x support forum. Support for phpBB2 has now ended.
Forum rules
Following phpBB2's EoL, this forum is now archived for reference purposes only.
Please see the following announcement for more information: viewtopic.php?f=14&t=1385785
Locked
TMagnum
Registered User
Posts: 107
Joined: Mon Aug 01, 2005 8:27 am

Increase the number of guests shown in stats?

Post by TMagnum »

Is there any way to mod it so it shows more guests? I don't want people to come and see only 1 guest. I would like it to show 5 + true number of guests.
User avatar
Marshalrusty
Project Manager
Project Manager
Posts: 29295
Joined: Mon Nov 22, 2004 10:45 pm
Location: New York City
Name: Yuriy Rusko
Contact:

Post by Marshalrusty »

Open includes/page_header.php
Find:

Code: Select all

		else
		{
			// Skip multiple sessions for one user
			if ( $row['session_ip'] != $prev_session_ip )
			{
				$guests_online++;
			}
		}
After, add:

Code: Select all

		$guests_online = $guests_online + 5;
That will take the number of actual gusts and add 5 to it.
Have comments/praise/complaints/suggestions? Please feel free to PM me.

Need private help? Hire me for all your phpBB and web development needs
TMagnum
Registered User
Posts: 107
Joined: Mon Aug 01, 2005 8:27 am

Post by TMagnum »

Thanks Marshal. :D
TMagnum
Registered User
Posts: 107
Joined: Mon Aug 01, 2005 8:27 am

Post by TMagnum »

Marshalrusty wrote: Open includes/page_header.php
Find:

Code: Select all

		else
		{
			// Skip multiple sessions for one user
			if ( $row['session_ip'] != $prev_session_ip )
			{
				$guests_online++;
			}
		}
After, add:

Code: Select all

		$guests_online = $guests_online + 5;
That will take the number of actual gusts and add 5 to it.


I tried this and I got 5 members for each guest. So if I had 3 true guests, it said 18 instead of 8.
User avatar
Marshalrusty
Project Manager
Project Manager
Posts: 29295
Joined: Mon Nov 22, 2004 10:45 pm
Location: New York City
Name: Yuriy Rusko
Contact:

Post by Marshalrusty »

Ah yes, I told you to add it a bit early. Place it after:

Code: Select all

		else
		{
			// Skip multiple sessions for one user
			if ( $row['session_ip'] != $prev_session_ip )
			{
				$guests_online++;
			}
		}

		$prev_session_ip = $row['session_ip'];
	}
Sorry about that.
Have comments/praise/complaints/suggestions? Please feel free to PM me.

Need private help? Hire me for all your phpBB and web development needs
Locked

Return to “2.0.x Support Forum”