Page 1 of 3

[CDB] 24 Hour Activity Stats

Posted: Tue Dec 15, 2015 11:22 am
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

Re: [RC] 24 Hour Activity Stats

Posted: Tue Dec 15, 2015 1:42 pm
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.

Re: [RC] 24 Hour Activity Stats

Posted: Tue Dec 15, 2015 3:31 pm
by k0nsl
Thanks, will test it.
Best wishes,
-k0nsl

Re: [RC] 24 Hour Activity Stats

Posted: Tue Dec 15, 2015 5:12 pm
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.

Re: [RC] 24 Hour Activity Stats

Posted: Tue Dec 15, 2015 5:49 pm
by Pond Life
Thank you Rich, you're a star. :mrgreen:

Re: [RC] 24 Hour Activity Stats

Posted: Tue Dec 15, 2015 10:00 pm
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',
));

Re: [RC] 24 Hour Activity Stats

Posted: Wed Dec 16, 2015 12:23 pm
by RMcGirr83
Extension has been submitted to CDB.

Re: [RC] 24 Hour Activity Stats

Posted: Wed Dec 16, 2015 5:36 pm
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

Re: [RC] 24 Hour Activity Stats

Posted: Wed Dec 16, 2015 7:29 pm
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?

Re: [RC] 24 Hour Activity Stats

Posted: Wed Dec 16, 2015 7:37 pm
by Hartenheer
At the top This is a port of the 3.0 mod

Does it not on 3.1.6 ?

Re: [RC] 24 Hour Activity Stats

Posted: Wed Dec 16, 2015 7:39 pm
by RMcGirr83
Uhmmm, huh?

Re: [RC] 24 Hour Activity Stats

Posted: Wed Dec 16, 2015 8:23 pm
by bennybernaer
I would like to see resolved the following flaw. How do I get this off

Image

Re: [RC] 24 Hour Activity Stats

Posted: Wed Dec 16, 2015 8:28 pm
by RMcGirr83
You changed the event so you should be able to figure it out.

Re: [RC] 24 Hour Activity Stats

Posted: Wed Dec 16, 2015 8:45 pm
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:

Re: [RC] 24 Hour Activity Stats

Posted: Wed Dec 16, 2015 8:50 pm
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.