[ABD] User Online Time

Any abandoned Extensions will be moved to this forum.

WARNING: Extensions in this forum are not currently being supported or maintained by the original Extension author. Proceed at your own risk.
Forum rules
IMPORTANT: Extension Development Forum rules

WARNING: Extensions in this forum are not currently being supported nor updated by the original Extension author. Proceed at your own risk.
User avatar
Wolfsblvt
Registered User
Posts: 634
Joined: Sun Oct 26, 2014 9:12 pm
Location: Solingen, Germany
Contact:

[ABD] User Online Time

Post by Wolfsblvt »

Image

Extension Name: User Online Time
Author: Wolfsblvt

Extension Description: Keeps track of user total and average online time. Adds it to the user profile.
Extension Version: 1.1.1

Requirements:
  • PHP: >= 5.4.0
Features:
Current Features
****************
  • Tracks online time of users (total and per day)
  • Calculates online time from configuration of 'load_online_time' for "who is online?" list
  • Shows it in easy to read format in member profile
  • Online time not visible on invisible users profile, except you can see invisibles
  • Permission to view online time
  • Permission to hide online time (bound to core permission "Can hide online status")
  • UCP option to hide online time
  • Permission to see even hidden online times (bound to core permission "Can view hidden online users")
  • Full subsilver2 support
Planned Features
****************
  • None
Screenshots:
Image

Image

Image

Demo URL: -

Extension Download: wolfsblvt.onlinetime.zip

More Information:
I've seen this feature in another board system, so I wanted to include it to phpBB. First as a very easy extension, nothing big, like you see it now. It keeps track of user online time, but before you ask: It starts counting from the first enable of this extension. There is no chance to get the correct online time for the past.

What I thought it would be cool, it uses the timespan how long you are visible in the "who is online?" list, but with a few exceptions. The online list shows you as online for X minutes until you are gone. This extension just counts the time if you do another action in this time frame.

There are permissions included and used in this extension.

If you have any corrections or improvements for my code, I would be very glad. Extension developing seems to be difficult :P
Bug reports in this thread or on github.
(Oh, and my english is not the best. If you have suggestions for translations or want to add another translation language, just use this thread too, or make a pull request)
Last edited by Wolfsblvt on Wed Dec 31, 2014 1:04 am, edited 2 times in total.
If you have a specific extension request and you are willing to pay for, you can write me a PM.
My extensions (Trending: @Mention SystemAdvanced PollsUser Online Time)

»Du kamst zu uns. Deine Stimme kam. Du zeigtest uns die Sterne. Sie funkelten. Wir konnten sehen.«
User avatar
Wolfsblvt
Registered User
Posts: 634
Joined: Sun Oct 26, 2014 9:12 pm
Location: Solingen, Germany
Contact:

Re: [DEV] User Online Time

Post by Wolfsblvt »

Changelog:
Actual Version
**************

-- Version 1.1.1 --------------
• Included subsilver2 support

###########################################################################
Past Versions
*************

-- Version 1.1.0 --------------
• Removed adding language files twice
• Implemented check for permissions
• Fix: Adding time to the next day if close after midnight
• Fix: Updating online time after display

-- Version 1.0.0 --------------
• First implementation for 3.1
• Included check for requirements
Last edited by Wolfsblvt on Wed Dec 31, 2014 1:07 am, edited 3 times in total.
If you have a specific extension request and you are willing to pay for, you can write me a PM.
My extensions (Trending: @Mention SystemAdvanced PollsUser Online Time)

»Du kamst zu uns. Deine Stimme kam. Du zeigtest uns die Sterne. Sie funkelten. Wir konnten sehen.«
User avatar
Meis2M
Translator
Posts: 1009
Joined: Wed Mar 03, 2010 11:32 am
Location: IR.Damghan
Name: میثم نوبری
Contact:

Re: [DEV] User Online Time

Post by Meis2M »

very lovely thanku
phpBB persian international support
Follow us in Instagram
Free upgrade and install extensions on your forum - drop me PM
Ultimate phpBB SEO Friendly URL extension
Cable Player
Registered User
Posts: 516
Joined: Thu Feb 03, 2011 4:45 pm
Location: Hampshire, England

Re: [DEV] User Online Time

Post by Cable Player »

Edit:
Sorry, I didn't read the whole post, have now downloaded the core files too :)

Hi there, I've downloaded this extension from the OP, version 1.0.0 and when I go to enable it it says in a red box:

"The selected extension cannot be enabled, please verify the extension’s requirements."

I've not had this before, so not sure what to do. I uploaded it using the Upload Extensions Extension and have checked everything's in the right place.

Thanks
User avatar
Wolfsblvt
Registered User
Posts: 634
Joined: Sun Oct 26, 2014 9:12 pm
Location: Solingen, Germany
Contact:

Re: [DEV] User Online Time

Post by Wolfsblvt »

You have to install and enable my core extension first.
(An extension where I gather my libraries, often used functions, etc)
Wolfsblvt wrote:And last, I know not everyone will be pleased with my decision to outsource much of my code to my core extensions. Yeah, you have to install two extensions. But that's not a big deal, isn't it? :P
It makes life easier for me.
So, don't forget to install and enable wolfsblvt\core first!
Just download and enable it first, this extension does nothing more than adding the libraries to the code.

EDIT:// Ah, you've seen that already, good :D
If you have a specific extension request and you are willing to pay for, you can write me a PM.
My extensions (Trending: @Mention SystemAdvanced PollsUser Online Time)

»Du kamst zu uns. Deine Stimme kam. Du zeigtest uns die Sterne. Sie funkelten. Wir konnten sehen.«
Cable Player
Registered User
Posts: 516
Joined: Thu Feb 03, 2011 4:45 pm
Location: Hampshire, England

Re: [DEV] User Online Time

Post by Cable Player »

Yeah, thanks for the speedy response ;)

It's not displaying correctly in the profile at the moment but I think this is due to the phpBB 3.1 Friendslist Enhance 1.0.1.0076 extension I have installed (as it's displaying in the friendslist on the profile page). I'm using the PBTech style, does User Online Time 1.0.0 support custom styles?
User avatar
Wolfsblvt
Registered User
Posts: 634
Joined: Sun Oct 26, 2014 9:12 pm
Location: Solingen, Germany
Contact:

Re: [DEV] User Online Time

Post by Wolfsblvt »

User Online Time uses the memberlist_view_user_statistics_after event to add the template.
This is perfectly fine in prosilver, and as the name says, it should add content after the other statistics, also in custom styles :P

Can you check where this event is placed in your style?
If it is placed right but formatted wrong, you have to do the following:
- Go in onlinetime\styles and duplicate the "prosilver" folder. Rename it to your style.
- Go inside the style folder and template\event. Open the html file and change the html code the way you want it to look.
If you have a specific extension request and you are willing to pay for, you can write me a PM.
My extensions (Trending: @Mention SystemAdvanced PollsUser Online Time)

»Du kamst zu uns. Deine Stimme kam. Du zeigtest uns die Sterne. Sie funkelten. Wir konnten sehen.«
Cable Player
Registered User
Posts: 516
Joined: Thu Feb 03, 2011 4:45 pm
Location: Hampshire, England

Re: [DEV] User Online Time

Post by Cable Player »

Ok, thanks for the info. I've not yet looked at the coding for the styles in 3.1 but was confident making changes with 3.0.x, so what I'll do is play around with the events to make it how I'd like.

Thanks for your help, if I have any questions I'll come back here :)
Tuqe
Registered User
Posts: 63
Joined: Mon Nov 10, 2014 9:18 am
Location: Turkey

Re: [DEV] User Online Time

Post by Tuqe »

ERROR wrote:Selected plug-ins can not be enabled, please verify the requirements of the plugin.
:oops:
User avatar
Wolfsblvt
Registered User
Posts: 634
Joined: Sun Oct 26, 2014 9:12 pm
Location: Solingen, Germany
Contact:

Re: [DEV] User Online Time

Post by Wolfsblvt »

Tuqe wrote:
ERROR wrote:Selected plug-ins can not be enabled, please verify the requirements of the plugin.
:oops:
Currently you have to install my core extension. (Read the start post for it)

But it will change soon, so that there are no dependencies.
If you have a specific extension request and you are willing to pay for, you can write me a PM.
My extensions (Trending: @Mention SystemAdvanced PollsUser Online Time)

»Du kamst zu uns. Deine Stimme kam. Du zeigtest uns die Sterne. Sie funkelten. Wir konnten sehen.«
User avatar
wkuzma
Registered User
Posts: 392
Joined: Sun Sep 02, 2007 10:18 pm
Contact:

Re: [DEV] User Online Time

Post by wkuzma »

Hi
When I enable your core I get this error
Parse error: syntax error, unexpected '[' in /public_html/new3/ext/wolfsblvt/core/core/requirements_helper.php on line 125
User avatar
Allen142
Registered User
Posts: 64
Joined: Sat Aug 02, 2014 2:13 am
Location: Sugar Land, TX, USA
Name: Allen Nguyen

Re: [DEV] User Online Time

Post by Allen142 »

How would you install that extension on your forum directory? But I need an extension that gives the forum time statistics which is this one:
Forum started on 22 Nov 2014, 23:04 and in existence for # years # months # days # hours # minutes # seconds
No sign of a forum I owned.

Thank you,
Allen
User avatar
Niknovel
Registered User
Posts: 23
Joined: Mon Dec 08, 2014 8:16 am
Location: Moscow
Name: Николай
Contact:

Re: [DEV] User Online Time

Post by Niknovel »

When the expansion of the error:

Parse error: syntax error, unexpected '[' in /home/u29186/electro-sila.ru/www/forum/ext/wolfsblvt/onlinetime/ext.php on line 64
Error 4: syntax error, unexpected '[' at file /home/u29186/electro-sila.ru/www/forum/ext/wolfsblvt/onlinetime/ext.php line 64
Installed Expansion PhpBB3 version: 3.1.3
Installed Mods PhpBB3 version: 3.0.13-PL1
User avatar
Wolfsblvt
Registered User
Posts: 634
Joined: Sun Oct 26, 2014 9:12 pm
Location: Solingen, Germany
Contact:

Re: [DEV] User Online Time

Post by Wolfsblvt »

wkuzma wrote:Parse error: syntax error, unexpected '[' in /public_html/new3/ext/wolfsblvt/core/core/requirements_helper.php on line 125
Niknovel wrote:Parse error: syntax error, unexpected '[' in /home/u29186/electro-sila.ru/www/forum/ext/wolfsblvt/onlinetime/ext.php on line 64
You need PHP: >= 5.4.0 for this extension, as said in the requirements of the first post. So you can't get it to run, sadly, or you need to update your php version of your server.
Allen142 wrote:How would you install that extension on your forum directory? But I need an extension that gives the forum time statistics which is this one:
Forum started on 22 Nov 2014, 23:04 and in existence for # years # months # days # hours # minutes # seconds
This is not what this extension does, and it is not planned, sorry.
If you have a specific extension request and you are willing to pay for, you can write me a PM.
My extensions (Trending: @Mention SystemAdvanced PollsUser Online Time)

»Du kamst zu uns. Deine Stimme kam. Du zeigtest uns die Sterne. Sie funkelten. Wir konnten sehen.«
User avatar
wkuzma
Registered User
Posts: 392
Joined: Sun Sep 02, 2007 10:18 pm
Contact:

Re: [DEV] User Online Time

Post by wkuzma »

You need PHP: >= 5.4.0 for this extension, as said in the requirements of the first post. So you can't get it to run, sadly, or you need to update your php version of your server.
now I have PHP Version 5.4.35 just did an update on php

but I get this error
Information
The selected extension cannot be enabled, please verify the extension’s requirements.
phpbb version 3.1.2
Last edited by wkuzma on Tue Dec 09, 2014 6:01 pm, edited 1 time in total.
Locked

Return to “Abandoned Extensions”