[CDB] 24 Hour Activity Stats

A place for Extension Authors to post and receive feedback on Extensions still in development. No Extensions within this forum should be used within a live environment!
Ideas Centre
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: Extensions Development rules

IMPORTANT FOR NEEDED EVENTS!!!
If you need an event for your extension please read this for the steps to follow to request the event(s)
User avatar
Hartenheer
Registered User
Posts: 780
Joined: Fri Jan 23, 2015 12:23 pm
Location: The Netherlands
Name: Willem Hartman
Contact:

Re: [RC] 24 Hour Activity Stats

Post by Hartenheer »

I Adapted language and It Looks Very good
Sorry English is not my native language :oops:
regards: Willem

https://bierfijnproevers.nl/bierforum

User avatar
wkuzma
Registered User
Posts: 390
Joined: Sun Sep 02, 2007 10:18 pm
Contact:

Re: [RC] 24 Hour Activity Stats

Post by wkuzma »

RMcGirr83 wrote:
wkuzma wrote:2 Users active over the last 24 hours and 0 guests active over the last 24 hours:
That isn't how the language is set to work.

https://github.com/RMcGirr83/phpBB-3.1- ... hp#L37-L45

and

https://github.com/RMcGirr83/phpBB-3.1- ... er.html#L7

so how is it possible that you have something different than from the repo?
I found out why.. I used to use the mod you ported this from and still had some edits left over from that
On a clean install it works as it should.

User avatar
bennybernaer
Registered User
Posts: 125
Joined: Tue Mar 22, 2011 9:53 pm
Contact:

Re: [RC] 24 Hour Activity Stats

Post by bennybernaer »

RMcGirr83 wrote::roll:

https://github.com/RMcGirr83/phpBB-3.1- ... er.html#L3

People shouldn't play with things that they don't know about.
Fixed!

Code: Select all

<!-- IF not S_IS_BOT -->

   <h3 id="twentyfourhour_stats">{L_TWENTYFOURHOUR_STATS}</h3>

   <p>{HOUR_POSTS} &bull; {HOUR_TOPICS} &bull; {HOUR_USERS}<br>

   {USERS_24HOUR_TOTAL} {GUEST_ONLINE_24} {L_LAST_24_HOURS}{L_COLON} <!-- IF not USERS_ACTIVE -->{L_NO_ONLINE_USERS}<!-- ELSE --><!-- BEGIN lastvisit -->{lastvisit.USERNAME_FULL}<!-- IF not lastvisit.S_LAST_ROW -->{L_COMMA_SEPARATOR} <!-- ENDIF --><!-- END lastvisit --><!-- ENDIF -->

   </p>
</div>

<!-- ENDIF -->

TWEagle
Registered User
Posts: 287
Joined: Sat Dec 10, 2005 2:50 pm
Contact:

Re: [RC] 24 Hour Activity Stats

Post by TWEagle »

bennybernaer wrote:
RMcGirr83 wrote::roll:

https://github.com/RMcGirr83/phpBB-3.1- ... er.html#L3

People shouldn't play with things that they don't know about.
Fixed!

Code: Select all

<!-- IF not S_IS_BOT -->

<div class="stat-block 24stats">
   <h3 id="twentyfourhour_stats">{L_TWENTYFOURHOUR_STATS}</h3>

   <p>{HOUR_POSTS} &bull; {HOUR_TOPICS} &bull; {HOUR_USERS}<br>

   {USERS_24HOUR_TOTAL} {GUEST_ONLINE_24} {L_LAST_24_HOURS}{L_COLON} <!-- IF not USERS_ACTIVE -->{L_NO_ONLINE_USERS}<!-- ELSE --><!-- BEGIN lastvisit -->{lastvisit.USERNAME_FULL}<!-- IF not lastvisit.S_LAST_ROW -->{L_COMMA_SEPARATOR} <!-- ENDIF --><!-- END lastvisit --><!-- ENDIF -->

   </p>
</div>

<!-- ENDIF -->
that is the correct thingie
Image

witvisser
Registered User
Posts: 62
Joined: Wed Nov 25, 2009 9:08 am

Re: [RC] 24 Hour Activity Stats

Post by witvisser »

I found a little bug in this extension.
If zero registered users visit the forum the last 24 hours, you get this warning on top of the forum:

Code: Select all

[phpBB Debug] PHP Warning: in file [ROOT]/ext/rmcgirr83/activity24hours/event/listener.php on line 87: Invalid argument supplied for foreach()
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5231: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3895)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5231: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3895)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5231: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3895)

travel
Registered User
Posts: 131
Joined: Sun Jan 11, 2015 7:21 pm

Re: [RC] 24 Hour Activity Stats

Post by travel »

Very nice extension. Thank you!
One question:
Where to change group permissions?
I would like to enable this extensions only for administrators. :?:

User avatar
RMcGirr83
Recognised Extension Developer
Posts: 21034
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr
Contact:

Re: [RC] 24 Hour Activity Stats

Post by RMcGirr83 »

witvisser wrote:I found a little bug in this extension.
If zero registered users visit the forum the last 24 hours, you get this warning on top of the forum:

Code: Select all

[phpBB Debug] PHP Warning: in file [ROOT]/ext/rmcgirr83/activity24hours/event/listener.php on line 87: Invalid argument supplied for foreach()
Are you using the latest from github?
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored

witvisser
Registered User
Posts: 62
Joined: Wed Nov 25, 2009 9:08 am

Re: [RC] 24 Hour Activity Stats

Post by witvisser »

Now, because it is changed about 28 minutes ago :)
I will upload the new files, and test it again.
I let you know if the error has gone or not ;)

User avatar
irdem
Registered User
Posts: 172
Joined: Sat Oct 13, 2007 10:31 pm
Contact:

Re: [RC] 24 Hour Activity Stats

Post by irdem »

Very nice extension, thank you. The hidden users are hidden? i think they are not hidden when logout.

User avatar
Smithyy1987
Registered User
Posts: 19
Joined: Wed Apr 15, 2015 8:26 am
Location: England , UK
Name: Aaron Smith

Re: [RC] 24 Hour Activity Stats

Post by Smithyy1987 »

I love the extension and works a treat! Thank you for your hard work on this. ;)

User avatar
RMcGirr83
Recognised Extension Developer
Posts: 21034
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr
Contact:

Re: [RC] 24 Hour Activity Stats

Post by RMcGirr83 »

irdem wrote:Very nice extension, thank you. The hidden users are hidden? i think they are not hidden when logout.
No they aren't hidden
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored

travel
Registered User
Posts: 131
Joined: Sun Jan 11, 2015 7:21 pm

Re: [RC] 24 Hour Activity Stats

Post by travel »

travel wrote:One question:
Where to change group permissions?
I would like to enable this extensions only for administrators. :?:
RMcGirr83,
no possible?

User avatar
RMcGirr83
Recognised Extension Developer
Posts: 21034
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr
Contact:

Re: [RC] 24 Hour Activity Stats

Post by RMcGirr83 »

Open the index_body_stats_block_after.html file, find this line

<!-- IF not S_IS_BOT -->

and change it to this

<!-- IF U_ACP -->

You will need to purge the cache after making that change.
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored

travel
Registered User
Posts: 131
Joined: Sun Jan 11, 2015 7:21 pm

Re: [RC] 24 Hour Activity Stats

Post by travel »

RMcGirr83 wrote:Open the index_body_stats_block_after.html file, find this line

<!-- IF not S_IS_BOT -->

and change it to this

<!-- IF U_ACP -->
Yes!
Thank You.
One beer for you. ;)

witvisser
Registered User
Posts: 62
Joined: Wed Nov 25, 2009 9:08 am

Re: [RC] 24 Hour Activity Stats

Post by witvisser »

witvisser wrote:Now, because it is changed about 28 minutes ago :)
I will upload the new files, and test it again.
I let you know if the error has gone or not ;)
Tested again with the new files and now the error has gone :)
Thnx ;)

Locked

Return to “Extensions in Development”