News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Hiding User Active Info

Started by forfun, July 22, 2010, 04:50:50 PM

Previous topic - Next topic

forfun

Hi all!
This soudl be simple, but my little knowledge about PHP has given me hard time

On the main forum page, in the info center, how can I hide, or remove the line that says "Users active in past  minutes:"

I am running SMF 2.0 RC3, Curve theme.

Thanks much in advanced

Mick.

You really want to hide it?   


You could call it something like:


"User Online"   and then change the amount of time in admin like 6 hours or 12 hours.  That way it shows lots of folks online.



If not, let me know and ill guide on how to remove what you asked.

forfun

Thanks much for the quick response.
Actually, I already set the time to 24 hours, but it is even better, if you can show me how to change the verbage from "user active in the past minutes" to "Current active users" , without any time display.
I hope my explanation is so confusing.
Thanks again

Mick.

I know what youre saying as i use the same idea ;)



Give me a sec....

forfun


Mick.

Ive been using this for years :P    It really throws off the naked eye.

Open:
Themes/default/languages/index.english.php


Find:
$txt['users_active'] = 'Users active in past %1$d minutes';

Replace with:
$txt['users_active'] = 'Current active users';



Then go to admin--->maintenance------->empty file cache


You should see the changes.

forfun

Excellent!
Thanks so MUCH.  You are Awesome!

Mick.

Quote from: forfun on July 22, 2010, 05:23:47 PM
Excellent!
Thanks so MUCH.  You are Awesome!

No problem man, have fun ;)

Ill mark this "solved".

dsanchez

Thanks for the trick guys,

I have, however, a question:

I have changed the "user online time threshold" from the feature and options to a number bigger than 15, but it still shows only the users that (I know) are currently log-in now. It does not know the users were online like 1 or 2 hours ago, and I know there were some. Any ideas?

forfun

Admin --> Configuration --> Feature and options --> general
Change the time threshold of user on line to around 1439

I hope I remember this right.  My server is down while I am typing this message, so I can not check the configuration.:)

dsanchez

Thank you forfun. Finally I set it to 720 and it works fine :)

Advertisement: