[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!
Scam Warning
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
RMcGirr83
Recognised Extension Developer
Posts: 21034
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr
Contact:

[CDB] 24 Hour Activity Stats

Post by RMcGirr83 »

Extension Name: 24 Hour Activity Stats
Author: RMcGirr83

Description: Extension lists all registered users and guests who have visited the board in the last 24 hours as well as lists stats on the number of new posts, new topics and new users within the last 24 hours. This is a port of the 3.0 mod

Version: 1.0.0

Download: https://github.com/RMcGirr83/phpBB-3.1- ... master.zip
Installation:
  1. Copy the entire contents of the repository to ext/rmcgirr83/activity24hours
  2. Navigate in the ACP to Customise -> Extension Management -> Extensions.
  3. Find `24 hour activity stats` and Click Enable.
Github Repository: https://github.com/RMcGirr83/phpBB-3.1-activity24hours

Image Image

Image

Issues with the extension should be posted here

If you like this extension and want to show some appreciation, then feel free to Image
Last edited by RMcGirr83 on Sat Jan 16, 2016 10:12 am, edited 3 times in total.
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

Pond Life
Registered User
Posts: 388
Joined: Sat Jan 20, 2007 1:55 am

Re: [RC] 24 Hour Activity Stats

Post by Pond Life »

Hi Rich, would it be possible to show the time of last visit when hovering over the username please? That would make this extension a perfect single replacement for two others that I'm currently trying out.
Never argue with idiots, they will drag you down to their level and beat you with experience.

User avatar
k0nsl
Registered User
Posts: 90
Joined: Mon Mar 25, 2013 11:17 pm
Location: Scandinavia
Name: Eduard Drehner
Contact:

Re: [RC] 24 Hour Activity Stats

Post by k0nsl »

Thanks, will test it.
Best wishes,
-k0nsl
I'm a programmer, server administrator, designer, spokesman and factotum of a wide-variety of web pages.

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 »

Pond Life wrote:Hi Rich, would it be possible to show the time of last visit when hovering over the username please? That would make this extension a perfect single replacement for two others that I'm currently trying out.
Github updated. You will need to clear the cache.
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

Pond Life
Registered User
Posts: 388
Joined: Sat Jan 20, 2007 1:55 am

Re: [RC] 24 Hour Activity Stats

Post by Pond Life »

Thank you Rich, you're a star. :mrgreen:
Never argue with idiots, they will drag you down to their level and beat you with experience.

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 »

For the style subway, I have changed the event to:

Code: Select all

index_body_block_stats_append.html
This is looks better for this style.

Dutch transalate:

Code: Select all

<?php

/**
*
*
* @package - Activity 24 hours
* @copyright (c) 2015 RMcGirr83
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/

if (!defined('IN_PHPBB'))
{
	exit;
}

if (empty($lang) || !is_array($lang))
{
	$lang = array();
}

// DEVELOPERS PLEASE NOTE
//
// All language files should use UTF-8 as their encoding and the files must not contain a BOM.
//
// Placeholders can now contain order information, e.g. instead of
// 'Page %s of %s' you can (and should) write 'Page %1$s of %2$s', this allows
// translators to re-order the output of data while ensuring it remains correct
//
// You do not need this where single placeholders are used, e.g. 'Message %d' is fine
// equally where a string contains only two placeholders which are used to wrap text
// in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine
// Some characters you may want to copy&paste:
// ’ » “ ” …

$lang = array_merge($lang, array(
	'USERS_24HOUR_TOTAL'	=> array(
		1 => '%d gebruiker',
		2 => '%d gebruikers',
	),
	'GUEST_ONLINE_24'		=> array(
		1 => ' and %d gast',
		2 => ' and %d gasten',
	),
	'LAST_24_HOURS'	=> ' actief in de afgelopen 24 uur',
	'24HOUR_TOPICS'			=> 'Nieuwe onderwerpen %d',
	'24HOUR_POSTS'			=> 'Nieuwe berichten %d',
	'24HOUR_USERS'			=> 'Nieuwe gebruikers %d',

	'TWENTYFOURHOUR_STATS'			=> 'Activiteit in de laatste 24 uur',
));

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 »

Extension has been submitted to CDB.
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

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 »

I get duplicate entry when your extension is installed on my test site
no other extensions installed except upload extensions
Activity over the last 24 hours

New posts 0 • New topics 0 • New users 0
2 Users active over the last 24 hours and 0 guests active over the last 24 hours: Gen Stranger, test, Gen Stranger, test

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 »

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?
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

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 »

At the top This is a port of the 3.0 mod

Does it not on 3.1.6 ?
Sorry English is not my native language :oops:
regards: Willem

https://bierfijnproevers.nl/bierforum

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 »

Uhmmm, huh?
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

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 »

I would like to see resolved the following flaw. How do I get this off

Image

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 »

You changed the event so you should be able to figure it out.
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

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:You changed the event so you should be able to figure it out.
I have been all day long been seeking. But I do not know where to look ... :oops:

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 »

:roll:

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

People shouldn't play with things that they don't know about.
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

Locked

Return to “Extensions in Development”

cron