[RC2] Statistics Mod 4.2.9

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
dantman
Registered User
Posts: 2
Joined: Thu Jun 07, 2007 12:21 am

Re: [BETA] Statistics Mod 4.x.x

Post by dantman »

Last edited by dantman on Thu Jul 05, 2007 5:42 am, edited 1 time in total.
tribalismo
Registered User
Posts: 34
Joined: Sun Mar 25, 2007 5:36 pm

Re: [BETA] Statistics Mod 4.x.x

Post by tribalismo »

Can i request a few more modules please?

I would love to add the following statistics:

- Total members
- In total XXXX users have visited this board today
- In total XXXX registered users have visited this board today
- Most users ever online in one day was XXXX on DD MM YYYY
- XXXX unique hits in last 24 hours
User avatar
Wicher
Registered User
Posts: 1806
Joined: Wed May 07, 2003 10:33 pm
Location: Netherlands or Holland, your choice..
Contact:

Re: [BETA] Statistics Mod 4.x.x

Post by Wicher »

With the "Administrative Statistics" module you already come a long way with those
User avatar
Wicher
Registered User
Posts: 1806
Joined: Wed May 07, 2003 10:33 pm
Location: Netherlands or Holland, your choice..
Contact:

Re: [BETA] Statistics Mod 4.x.x

Post by Wicher »

Updated to 4.2.6

## 2007-07-07 - Version 4.2.6
## - fixed a number of issues that would cause phpbb not to approve this mod.
## - Submitted to phpbb.com for approval again
User avatar
Wicher
Registered User
Posts: 1806
Joined: Wed May 07, 2003 10:33 pm
Location: Netherlands or Holland, your choice..
Contact:

Re: [RC2] Statistics Mod 4.x.x

Post by Wicher »

Updated to 4.2.7

## 2007-07-08 - Version 4.2.7
## - fixed a few issues with the lang CP.
User avatar
bum63
Registered User
Posts: 262
Joined: Tue Oct 10, 2006 8:36 pm

Re: [RC2] Statistics Mod 4.x.x

Post by bum63 »

Hey Wicher you have to update version in your database, in admin's CP says latest version is 4.2.5
Thanks...
User avatar
Wicher
Registered User
Posts: 1806
Joined: Wed May 07, 2003 10:33 pm
Location: Netherlands or Holland, your choice..
Contact:

Re: [RC2] Statistics Mod 4.x.x

Post by Wicher »

Updated to 4.2.8

## 2007-07-09 - Version 4.2.8
## - Downloadlink for updates for modules on module manage page..
User avatar
Wicher
Registered User
Posts: 1806
Joined: Wed May 07, 2003 10:33 pm
Location: Netherlands or Holland, your choice..
Contact:

Re: [RC2] Statistics Mod 4.x.x

Post by Wicher »

bum63 wrote:Hey Wicher you have to update version in your database, in admin's CP says latest version is 4.2.5
Thanks...
Fixed that with latest update 4.2.8
User avatar
M.O.B.
Registered User
Posts: 944
Joined: Tue Jan 04, 2005 1:07 am
Location: San Diego CA USA
Contact:

Re: [RC2] Statistics Mod 4.x.x

Post by M.O.B. »

Hi, I am running phpBB 2.0.22. I have installed dozens of hacks/mods, so I am pretty sure I am doing everything correct... BUT, when I run the mod_uninst.php, I get a message that tells me that I cannot connect to the database.

I am trying to update from 2.1.5 to latest version. I have already edited the constant.php file and restored it back to it's default value. Plus deleted all it's included files. Right now ready to uninstall the hack from the database.. but stuck here at the moment.

Is there a way to just write the query here so I can do it directly in the mySQL page? Thanks in advance.
Image
User avatar
Wicher
Registered User
Posts: 1806
Joined: Wed May 07, 2003 10:33 pm
Location: Netherlands or Holland, your choice..
Contact:

Re: [RC2] Statistics Mod 4.x.x

Post by Wicher »

Code: Select all

DROP TABLE `phpbb_stats_config`, `phpbb_stats_modules`;
Thats all to uninstall 215 from your database.
User avatar
Acorn
Registered User
Posts: 402
Joined: Tue Sep 26, 2006 8:11 am
Location: UK
Contact:

Re: [RC2] Statistics Mod 4.x.x

Post by Acorn »

Great mod - but is there a way to set it up so that the statistics are only available to admins?

[Edited to add that I have set the individual permissions, but I would like the statistics link on the index page not to be visible to non-Admins.]
Getting braver all the time. :D
User avatar
Wicher
Registered User
Posts: 1806
Joined: Wed May 07, 2003 10:33 pm
Location: Netherlands or Holland, your choice..
Contact:

Re: [RC2] Statistics Mod 4.x.x

Post by Wicher »

Code: Select all

#
# OPEN
#
includes/page_header.php
#
# FIND
#
	$template->assign_block_vars('switch_user_logged_in', array());
#
# AFTER, ADD
# only if its not present yet
    if ( $userdata['user_level'] == ADMIN ) 
    { 
       $template->assign_block_vars('switch_admin_logged_in', array()); 
    }  
#
# OPEN
#
overall_header.tpl
#
# FIND
#
						<!-- BEGIN switch_user_logged_in -->
						&nbsp;<a href="{U_STAT_HEADERLINK}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_statistics.png" width="12" height="13" border="0" alt="Statistics" hspace="3" />{L_STAT_HEADERLINK}</a>&nbsp;
						<!-- END switch_user_logged_in -->
#
# REPLACE WITH
#
						<!-- BEGIN switch_admin_logged_in -->
						&nbsp;<a href="{U_STAT_HEADERLINK}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_statistics.png" width="12" height="13" border="0" alt="Statistics" hspace="3" />{L_STAT_HEADERLINK}</a>&nbsp;
						<!-- END switch_admin_logged_in -->
#
# EoM
#
User avatar
Acorn
Registered User
Posts: 402
Joined: Tue Sep 26, 2006 8:11 am
Location: UK
Contact:

Re: [RC2] Statistics Mod 4.x.x

Post by Acorn »

Thank you very much! :D That works beautifully.
Getting braver all the time. :D
jeroen13,7
Registered User
Posts: 10
Joined: Sun Jul 22, 2007 12:26 pm

Re: [RC2] Statistics Mod 4.x.x

Post by jeroen13,7 »

Hi there,

I have a little problem with this mod. I have installed Version 4.2.8, and everything went well. Now i've tried to install a module, but it gives a wrong message.

He says "Unable to write temp file". Do i have to chmod an another map then the module and pakfiles map? Or is it an another problem?

Greets Jeroen13,7
User avatar
Wicher
Registered User
Posts: 1806
Joined: Wed May 07, 2003 10:33 pm
Location: Netherlands or Holland, your choice..
Contact:

Re: [RC2] Statistics Mod 4.x.x

Post by Wicher »

You can read in the first post of this topic what needs to be chmodded.
Post Reply

Return to “[2.0.x] MODs in Development”