Who is online

Need some custom code changes to the phpBB core simple enough that you feel doesn't require an extension? Then post your request here so that community members can provide some assistance.

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
Post Reply
Thunde
Registered User
Posts: 263
Joined: Fri Aug 28, 2020 2:30 pm

Who is online

Post by Thunde »

How to add + 50 to: There are 10 users online
I found it at guest / user but not there
exemple:
'TOTAL_USERS' => $user->lang('TOTAL_USERS', (int) $config['num_users'] + 20000 ),
Last edited by thecoalman on Sat Jan 29, 2022 1:50 am, edited 1 time in total.
Reason: Moved to custom coding.
User avatar
janus_zonstraal
Registered User
Posts: 6427
Joined: Sat Aug 30, 2014 1:30 pm

Re: Who is online

Post by janus_zonstraal »

Do you really think your members will belief it?
Sorry! My English is bat ;) !!!
Thunde
Registered User
Posts: 263
Joined: Fri Aug 28, 2020 2:30 pm

Re: Who is online

Post by Thunde »

janus_zonstraal wrote: Sat Jan 29, 2022 12:01 am Do you really think your members will belief it?
it's not believable, I want it personally
User avatar
warmweer
Jr. Extension Validator
Posts: 11277
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Bel ... gium
Contact:

Re: Who is online

Post by warmweer »

Thunde wrote: Sat Jan 29, 2022 8:31 am it's not believable, I want it personally
Probably flogging a dead horse, but falsifying board data is not the way to give credibility or thrustworthiness.
Spelling is freeware, which means you can use it for free.
On the other hand, it is not open source, which means you cannot change it or publish it in a modified form.


Time flies like an arrow, but fruit flies like a banana.
Thunde
Registered User
Posts: 263
Joined: Fri Aug 28, 2020 2:30 pm

Re: Who is online

Post by Thunde »

it has nothing to do with trusting anyone
so does anyone help me?
User avatar
TheButcher2
Registered User
Posts: 1030
Joined: Tue May 13, 2014 11:38 pm
Contact:

Re: Who is online

Post by TheButcher2 »

Why 50 go for 5000 :mrgreen:

I seriously think you would be better off trying to grow your member base than adding fake numbers to the stats. At the end of the day you want real people interacting and discussing topics not a fancy number on the index page, but that's just me. I don't even show who is online and user data on my forum , never have in 17 plus years.

All the best.

Peace
Thunde
Registered User
Posts: 263
Joined: Fri Aug 28, 2020 2:30 pm

Re: Who is online

Post by Thunde »

TheButcher2 wrote: Sat Jan 29, 2022 3:19 pm Why 50 go for 5000 :mrgreen:

I seriously think you would be better off trying to grow your member base than adding fake numbers to the stats. At the end of the day you want real people interacting and discussing topics not a fancy number on the index page, but that's just me. I don't even show who is online and user data on my forum , never have in 17 plus years.

All the best.

Peace
I know what you're saying, but that's what I want, I don't think it bothers anyone that I'm asking for a little code
It's my idea, maybe it's bad but I want to try something
I don't think I'm bothering anyone if I asked for something like that, and it's cool that you've been working for 17 years, increase
User avatar
TheButcher2
Registered User
Posts: 1030
Joined: Tue May 13, 2014 11:38 pm
Contact:

Re: Who is online

Post by TheButcher2 »

Fair enough if that is your goal, I can not help you mate I am not great with code. All the best.

Peace
Last edited by Mick on Sat Jan 29, 2022 7:51 pm, edited 1 time in total.
Reason: Removed unnecessary full quotes.
Thunde
Registered User
Posts: 263
Joined: Fri Aug 28, 2020 2:30 pm

Re: Who is online

Post by Thunde »

Someone who can help me?
User avatar
thecoalman
Community Team Member
Community Team Member
Posts: 5885
Joined: Wed Dec 22, 2004 3:52 am
Location: Pennsylvania, U.S.A.
Contact:

Re: Who is online

Post by thecoalman »

Untested but you can open /includes/functions.php

On line 3327 Find:

Code: Select all

	if ($config['load_online_guests'])
	{
		$online_users['guests_online'] = obtain_guest_count($item_id, $item);
	}
Replace with:

Code: Select all

	//Mod - add to total guest count
	if ($config['load_online_guests'])
	{
		$online_users['guests_online'] = obtain_guest_count($item_id, $item) + 50;
	}
“Results! Why, man, I have gotten a lot of results! I have found several thousand things that won’t work.”

Attributed - Thomas Edison
User avatar
david63
Registered User
Posts: 20646
Joined: Thu Dec 19, 2002 8:08 am

Re: Who is online

Post by david63 »

Or for a more interesting result

Code: Select all

	//Mod - add to total guest count
	if ($config['load_online_guests'])
	{
		$online_users['guests_online'] = obtain_guest_count($item_id, $item) + rand(50, 100);
	}
Which will add a random number between 50 and 100
David
Remember: You only know what you know and - you don't know what you don't know!

I now no longer support any of my extensions but they will start to become available here
User avatar
axe70
Registered User
Posts: 752
Joined: Sun Nov 17, 2002 10:55 am
Location: Italy
Name: Alessio
Contact:

Re: Who is online

Post by axe70 »

david63 wrote: Sun Jan 30, 2022 1:49 pm Or for a more interesting result

Code: Select all

	//Mod - add to total guest count
	if ($config['load_online_guests'])
	{
		$online_users['guests_online'] = obtain_guest_count($item_id, $item) + rand(50, 100);
	}
Which will add a random number between 50 and 100
reading this, that's about a way to trick users on believe that there are many users online...
i often see my forum with more than 50 users. 640 one day in the past! I am so happy, until i discover that these users are mainly bots.
My only guess, is to write content and offer things and ideas, so that one day, somebody will come to share something or ask or contribute.
I would not like to have an user that frequent my site, because nothing it contain or offer.
It is only an crazy hope to me. I remember an extension doing this, applied into a site of tv signal hacking (i was onboard :) ) i think it was 20 years ago.
I decided this time, that something like this, never will have to belong to my behavior.
But this is only my point of view.
Do not take me too serious
Anyway i do not like Discourse
Thunde
Registered User
Posts: 263
Joined: Fri Aug 28, 2020 2:30 pm

Re: Who is online

Post by Thunde »

Thanks, and I look forward to hearing from you
Post Reply

Return to “phpBB Custom Coding”