Page 1 of 4

Posts per day

Posted: Sun Sep 28, 2008 6:07 pm
by Extensions Robot
Modification name: Posts per day
Author: MartectX
Modification description: Adds a little extra info to the statistic box on the index page: Average posts per day since the board came into existence.
Modification version: 1.0.0
Tested on phpBB version: 3.0.2

Download file: posts_per_day_1.0.0.zip
File size: 55.82 KiB

Modification overview page: View

The phpBB Team is not responsible nor required to provide support for this modification. By installing this MOD, you acknowledge that the phpBB Support Team or phpBB Extensions Team may not be able to provide support.

-->Modification support<--

Posts per day

Posted: Sun Sep 28, 2008 6:07 pm
by Paul
Modification validated/released

Notes:

Posts per day

Posted: Sun Sep 28, 2008 6:07 pm
by MartectX
w00t! Thank you for validating! :D

Image

Re: Posts per day

Posted: Sun Sep 28, 2008 6:37 pm
by JasonWade
Just added this, very nice and simple to add, BUT 1 question though, how come the statistic in the admin panel is a little different (less than 1 post) than the one in the index page?

Re: Posts per day

Posted: Sun Sep 28, 2008 6:44 pm
by JeRicHoOL
Thanks for this mod. It works perfectly without any problems.

EDIT: Yea, for me it shows 1,07 on the index and 1,08 in the administration panel. Not a big deal for me but it would be nice if it could be fixed.

Re: Posts per day

Posted: Sun Sep 28, 2008 10:45 pm
by MartectX
The mod rounds the number of days to full days, the admin panel does not. Example:

10 posts and 1 days, 12 hours passed :arrow: Index: 5.0 ppd, Admin: 6,67 ppd

In the long run there won't be a noticeable / no difference (as shows your mere difference of 0,01).

Re: Posts per day

Posted: Sun Sep 28, 2008 11:32 pm
by RMcGirr83
Congrats Martectx!!

As you know I already have this mod installed and it works fine. ;)

For those that wish the ACP stats to match those with this mod, do the following

OPEN

includes/acp/acp_main.php

FIND

Code: Select all

$boarddays = (time() - $config['board_startdate']) / 86400;
REPLACE WITH

Code: Select all

$boarddays = ceil((time() - $config['board_startdate']) / 86400);
then they will be inline with each other.

Re: Posts per day

Posted: Mon Sep 29, 2008 3:31 am
by Sunka
Congratulations for validation of MOD...I will install it

Re: Posts per day

Posted: Wed Oct 01, 2008 12:52 pm
by alienbabeltech
is this mod compatible with a subsilver2 based theme ?

I'm trying to install it on my site here

http://alienbabeltech.com/abt/index.php

Re: Posts per day

Posted: Wed Oct 01, 2008 3:02 pm
by JasonWade
wolf2009 wrote:is this mod compatible with a subsilver2 based theme ?

I'm trying to install it on my site here

http://alienbabeltech.com/abt/index.php
I only have subsilver2 themes, works fine. Just don't forget the edit in the subsilver2 xml file and everything should work fine

Re: Posts per day

Posted: Wed Oct 01, 2008 3:33 pm
by alienbabeltech
I'm concerned about this instruction while installing the mod

Open: styles/prosilver/template/index_body.html
Find
Tip: This may be a partial find and not the whole line.
<p>{TOTAL_POSTS} &bull; {TOTAL_TOPICS} &bull; {TOTAL_USERS} &bull; {NEWEST_USER}</p>

In-line Find
Tip: This is a partial match of a line for in-line operations.
{TOTAL_POSTS}

In-line Add before

{POSTS_PER_DAY} &bull;

since the aerogreen works on subsilver2 , should i edit subsilver2's index_body.html ?

or aerogreen's index_body.html ?

Re: Posts per day

Posted: Wed Oct 01, 2008 3:47 pm
by MartectX
Just search for

Code: Select all

{TOTAL_POSTS}
and In-line Add before

Code: Select all

{POSTS_PER_DAY}
Depending on your style insert

Code: Select all

 &bull; 
or

Code: Select all

 | 
between the two.

Re: Posts per day

Posted: Wed Oct 01, 2008 3:55 pm
by alienbabeltech
MartectX wrote:Just search for

Code: Select all

{TOTAL_POSTS}
and In-line Add before

Code: Select all

{POSTS_PER_DAY}
Depending on your style insert

Code: Select all

 &bull; 
or

Code: Select all

 | 
between the two.
i got the first part to add {POSTS_PER_DAY} before {TOTAL_POSTS} in that line.

What I didn't get is the style part.

I am completely new to phpBB modding, this is my first mod.

I'm using Aerogreen theme which is based on subsilver2.

SO i would need to edit Subsilver2's file with this code ?
I can't find this line in Aerogreen's index_body.html file .

Re: Posts per day

Posted: Wed Oct 01, 2008 4:00 pm
by MartectX
wolf2009 wrote:What I didn't get is the style part.
If you made the edits I posted you are done.

Re: Posts per day

Posted: Wed Oct 01, 2008 4:07 pm
by alienbabeltech
MartectX wrote:
wolf2009 wrote:What I didn't get is the style part.
If you made the edits I posted you are done.

the edit goes in index_body.html file of the subsilver2 folder on the ftp , right , and it will automatically work in aerogreen since it is base on subsilver2

thats my question