AI Search
Classic Search
 Search Phrase:
 Search Type:
Advanced search options
 Search in Forums:
 Search in date period:

 Sort Search Results by:

AI Assistant
Notifications
Clear all

[Solved] Online time

3 Posts
2 Users
1 Reactions
1,448 Views
Posts: 2
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@jrios)
New Member
Joined: 6 years ago
[#14498]

Hello everyone. I'm new in this community. We have a wordpress site with this plugin and it's works very well =). i'd like ask to you the follow question:

is it possible get the total online time for everyuser? I checked the table wpforo_profiles in the database, and appears a field with name "online_time" but, it's seems that this field save a int that can be formated with from_unixtime but it's seem that i'm formatting badly.
can you explian me how to format this int field?

i want to get amount of minutes for example.

i apologize if this topic was posted in wrong forum.

Thank you.


2 Replies
Alvina
Posts: 1857
Moderator
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@alvina)
Member
Joined: 7 years ago

Hi @jrios,

First of all please note the "online_time" show thw user last activity.

can you explian me how to format this int field?

You can format INT field via this code:

FROM_UNIXTIME(1551824768)

Please note the red marked value should be the INT field.

Also the wpForo has the Online Members widget, that shows the online users, you can check it as well. Just navigate to the Dashboard > Appearance > Widgets admin page.  To activate a widget drag it to a sidebar or click on it. 


1 Reply
(@jrios)
Joined: 6 years ago

New Member
Posts: 2
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

@alvina

I thought that online_time was the accumulation of time that a user had been in the forum. 😆 
Thank you very much

Share: