[ABD] Forum Statistics 0.3.0

Any abandoned MODs will be moved to this forum.

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

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
User avatar
TheUniqueTiger
Registered User
Posts: 303
Joined: Wed Sep 05, 2007 7:57 pm
Location: India

Re: [DEV] Forum Statistics

Post by TheUniqueTiger »

I've already got the idea of calculating the time offset...
Its like you calculate the lower-limit of the time by making a date thats 00:00:00 and then add 3600 for each hour...
Depending on the time period you want, you can then manipulate the retrieved array and arrange according to the post_time.

To all, in the first version, I'm going to make it a database query for each of the periodic stats and later manipulation of the array in php, but later I plan to make minor changes for updates to a stats table in the database which will decrease the load on the database for statistics and will be faster and feasible on larger forums.
You have only One Life... So before you are History, make sure you make it to the History books! - TheUniqueTiger
User avatar
TheUniqueTiger
Registered User
Posts: 303
Joined: Wed Sep 05, 2007 7:57 pm
Location: India

Re: [DEV] Forum Statistics

Post by TheUniqueTiger »

The first post has been updated accordingly with the features added till now in the under-dev version.
You have only One Life... So before you are History, make sure you make it to the History books! - TheUniqueTiger
saaiberke
Registered User
Posts: 1126
Joined: Wed Jul 20, 2005 8:13 am
Location: Gent/Belgium

Re: [DEV] Forum Statistics

Post by saaiberke »

Whoehoeeeee :) I just can't wait ;) It already looks great!

Nic
User avatar
TheUniqueTiger
Registered User
Posts: 303
Joined: Wed Sep 05, 2007 7:57 pm
Location: India

Re: [DEV] Forum Statistics

Post by TheUniqueTiger »

Well, the periodic stats (daily, monthly, hourly) have also been completed... The first post has been updated.

In this, you can select the particular month (for daily, hourly), particular year (for monthly), particular day (for hourly) and overall (for monthly, hourly) as I found appropriate with these different statistics.
You have only One Life... So before you are History, make sure you make it to the History books! - TheUniqueTiger
User avatar
TheUniqueTiger
Registered User
Posts: 303
Joined: Wed Sep 05, 2007 7:57 pm
Location: India

Re: [DEV] Forum Statistics

Post by TheUniqueTiger »

The final list of the features (statistics) for the first release is done and has been updated in the first post. I'm currently preparing the install file.
Please note the lines I've written about the User location statistics in the first post...

Also if any of your favorite statistics have been missed please let me know so that I may include them before the release...
You have only One Life... So before you are History, make sure you make it to the History books! - TheUniqueTiger
.:: Chico ::.
Registered User
Posts: 463
Joined: Fri Aug 03, 2007 6:35 am
Location: Rio de Janeiro

Re: [DEV] Forum Statistics

Post by .:: Chico ::. »

TheUniqueTiger wrote: I'm currently preparing the install file.
Are you preparing install file already :?:
Is this means that you finished the firts release :?:
If yes, pretty fast.

The first release feature list is really big, great mod.

Thanks TUT.

Ps.: waiting for THAT last topics mod... :? haha
User avatar
TheUniqueTiger
Registered User
Posts: 303
Joined: Wed Sep 05, 2007 7:57 pm
Location: India

Re: [DEV] Forum Statistics

Post by TheUniqueTiger »

.:: Chico ::. wrote: Is this means that you finished the firts release :?:
If yes, pretty fast.

The first release feature list is really big, great mod.

Thanks TUT.
Well, thanks... I like to finish things off quickly...
.:: Chico ::. wrote: Ps.: waiting for THAT last topics mod... :? haha
haha.. after this surely. :D

To all,
This MOD will have only the prosilver style mod (no subsilver2)...
You have only One Life... So before you are History, make sure you make it to the History books! - TheUniqueTiger
User avatar
TheUniqueTiger
Registered User
Posts: 303
Joined: Wed Sep 05, 2007 7:57 pm
Location: India

Re: [BETA] Forum Statistics

Post by TheUniqueTiger »

The first release has been posted... 0.1.0 (beta 1). The first post has been updated accordingly.

Just in the nick of time, I managed to sneak in another statistic and an addon... the count of members according to the ranks (non-special post-count-based). (updated the first post with all the features in this first release.) Plus there is also an addon for gender-related statistics based on the Genders MOD by eviL<3.

Please note the point I've mentioned about the User location statistic in the first post.

Please report any bugs found or any typos in install instructions. Since you'll be creating the modules yourself be careful about the names of the modules and their individual settings.
Please note that some statistics are not shown if there is no such statistic to be shown. For example if there are no attachments in the forum, then many of the attachment statistics won't be shown. Before reporting any bug please check if such statistic exists to be shown.

If there are any testers with a moderately big forum (>100 posts, > 20 topics, > 10-20 users) with this MOD installed and working properly, can you please post the link here with your permission so I can post the link in the first post. I've mentioned the reason in the first post. Screenshots will also help.

I also welcome any of the testers (or anyone else) who is willing to make language translations for the language/en/fs.php file and the modified lines in the other language files to be modified in this MOD.

This is just my second MOD for phpBB, but quite a complex one!
Awaiting your feedback... :P
You have only One Life... So before you are History, make sure you make it to the History books! - TheUniqueTiger
.:: Chico ::.
Registered User
Posts: 463
Joined: Fri Aug 03, 2007 6:35 am
Location: Rio de Janeiro

Re: [BETA] Forum Statistics

Post by .:: Chico ::. »

TheUniqueTiger wrote:
Please report any bugs found or any typos in install instructions. Since you'll be creating the modules yourself be careful about the names of the modules and their individual settings.
Please note that some statistics are not shown if there is no such statistic to be shown. For example if there are no attachments in the forum, then many of the attachment statistics won't be shown. Before reporting any bug please check if such statistic exists to be shown.

If there are any testers with a moderately big forum (>100 posts, > 20 topics, > 10-20 users) with this MOD installed and working properly, can you please post the link here with your permission so I can post the link in the first post. I've mentioned the reason in the first post. Screenshots will also help.

I also welcome any of the testers (or anyone else) who is willing to make language translations for the language/en/fs.php file and the modified lines in the other language files to be modified in this MOD.

This is just my second MOD for phpBB, but quite a complex one!
Awaiting your feedback... :P
Ok, i'm gonna, FIRST, test it in localhost.

If everything works fine, i'm gonna install it in a free server (a good one) testboard with my official/liveboard database. (Total posts: 15813 • Total Topics: 1466 • Members: 48)

In my liveboard, i'll wait a little while.

Congratulations, TUT.
Last edited by .:: Chico ::. on Tue Dec 04, 2007 10:42 pm, edited 1 time in total.
User avatar
TheUniqueTiger
Registered User
Posts: 303
Joined: Wed Sep 05, 2007 7:57 pm
Location: India

Re: [BETA] Forum Statistics

Post by TheUniqueTiger »

Thanks... Awaiting your feedback after installation... :)
You have only One Life... So before you are History, make sure you make it to the History books! - TheUniqueTiger
.:: Chico ::.
Registered User
Posts: 463
Joined: Fri Aug 03, 2007 6:35 am
Location: Rio de Janeiro

Re: [BETA] Forum Statistics

Post by .:: Chico ::. »

TheUniqueTiger wrote:Thanks... Awaiting your feedback after installation... :)
Just an installation error instructions

:arrow: Original

Open: index.php
Find:

Code: Select all

	'U_MCP'				=> ($auth->acl_get('m_') || $auth->acl_getf_global('m_')) ? append_sid("{$phpbb_root_path}mcp.$phpEx", 'i=main&mode=front', true, $user->session_id) : ''
Add After:

Code: Select all

	 //MOD Forum Statistics
	 , 'U_STATISTICS'		=> "<a href=\"{$phpbb_root_path}fs.$phpEx\">" . $user->lang['STATISTICS'] . '</a>'
	 //END MOD
At the end of "find" line, there is a

Code: Select all

)
and this have to go after

Code: Select all

	 , 'U_STATISTICS'		=> "<a href=\"{$phpbb_root_path}fs.$phpEx\">" . $user->lang['STATISTICS'] . '</a>'
but with:

Code: Select all

	 //END MOD

This did not happen and give us a syntax error


so, we should have this:

Code: Select all

	'U_MCP'				=> ($auth->acl_get('m_') || $auth->acl_getf_global('m_')) ? append_sid("{$phpbb_root_path}mcp.$phpEx", 'i=main&mode=front', true, $user->session_id) : ''
	 //MOD Forum Statistics
	 , 'U_STATISTICS'		=> "<a href=\"{$phpbb_root_path}fs.$phpEx\">" . $user->lang['STATISTICS'] . '</a>' )
	 //END MOD
);
;)

____________________________________________________________________________________________

Now about the mod

i've got two little problem make just a overview in mod options.

This happened in two tabs.

:arrow: At Activity tab in topic statistics, i've got this:

Code: Select all

[phpBB Debug] PHP Notice: in file /includes/fs/fs_activity.php on line 193: Division by zero
[phpBB Debug] PHP Notice: in file /includes/fs/fs_activity.php on line 194: Division by zero
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3390: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2921)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3392: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2921)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3393: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2921)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3394: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2921)
:arrow: At Contribuitons Tag in poll statistics, i've got this:

Code: Select all

[phpBB Debug] PHP Notice: in file /includes/fs/fs_contributions.php on line 201: Division by zero
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3390: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2921)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3392: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2921)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3393: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2921)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3394: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2921)
As i said, i just look for a while, tomorrow i'm gonna REALLY test it, and after use my DB statistic info.

The rest worked fine, a pretty mod, i really like it, congratulations!
and thank you a lot, of course!

:arrow: For those who want to test it
Login: test_user
Pass: test_user
(i saw that do not need a login to see this mods working)

Ops, forgot the link: http://www.emd-forum.com/testboard

Bye

Ps.: RC8 Version
Last edited by .:: Chico ::. on Wed Dec 05, 2007 3:58 am, edited 2 times in total.
RedTrinity
Registered User
Posts: 1327
Joined: Sat May 06, 2006 3:32 am

Re: [BETA] Forum Statistics

Post by RedTrinity »

I have found a small error during ACP Module installation:

The instructions have the following...
First we have to create categories... Create them as follows:
For each of the categories, select
'Module type' : Category,
'Parent' : No parent,
'Module enabled' : Yes
But the Modules under the Statistics Category should have the following:
'Module type' : Category,
'Parent' : Forum Statistics,
'Module enabled' : Yes
Otherwise they just end up as modules listed in the root menu, instead of within the Statistics Category where they should be :)

Still in the process of installing so will be back soon with my comments on it :)
RedTrinity
Registered User
Posts: 1327
Joined: Sat May 06, 2006 3:32 am

Re: [BETA] Forum Statistics

Post by RedTrinity »

Ok am getting a bit lost with this module installation....

For example:
The following are the individual modules to be created
1. 'Module language name' : FS_BASIC_BASIC
'Parent' : 'Basic statistics'
'Choose module' : 'Basic statistics [fs_basic]'
'Choose module mode' : 'Basic'
But when I try to find the [fs_basic] module in the 'choose module' dropdown list, its not there? And the others aren't either :S
.:: Chico ::.
Registered User
Posts: 463
Joined: Fri Aug 03, 2007 6:35 am
Location: Rio de Janeiro

Re: [BETA] Forum Statistics

Post by .:: Chico ::. »

Redtrinity,
ignore his ACP module instructions for a moment

all you need is go at
ACP -> SYSTEM -> MODULE MANAGEMENT -> FORUM STATISTICS
Press "CREATE NEW MODULE" and create 5 (FIVE) modules with anyname, but if you press beside at list of "add module", you'll see the names, they are these:
FORUM ACTIVITY
BASIC STATISTICS
FORUM CONTRIBUITIONS
PERIODIC STATISTICS
SETTING STATISTICS

after creating this modules, enter in each one and press "CREATE NEW MODULE" choosing all modules for each category name

very easy! ;)

but, TUT can create a autoinstalltion script to active all modules like in nickverssen and HOL mods.
RedTrinity
Registered User
Posts: 1327
Joined: Sat May 06, 2006 3:32 am

Re: [BETA] Forum Statistics

Post by RedTrinity »

.:: Chico ::. wrote: Press "CREATE NEW MODULE" and create 5 (FIVE) modules with anyname, but if you press beside at list of "add module", you'll see the names, they are these:
FORUM ACTIVITY
BASIC STATISTICS
FORUM CONTRIBUITIONS
PERIODIC STATISTICS
SETTING STATISTICS
The list is the dropdown one, yeah? Titled "Choose Module"? I am not getting any statistic related modules coming up in that list :(

Return to “[3.0.x] Abandoned MODs”