Activity Stats MOD

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in the Customisations Database.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTICE: This forum is only for the announcement of new releases and/or updates of MODs. Any MOD support should be obtained through the Customisations Database in the support area designated for each MOD.

A direct link to support for each MOD is in the first post of the respective topic.
Locked
User avatar
mcdanielnc89
Registered User
Posts: 703
Joined: Tue Feb 06, 2007 10:49 pm
Location: Missouri
Contact:

Re: Activity Stats MOD

Post by mcdanielnc89 »

Highway of life,

I know this ins't a big deal, but I'm one of those people who hate haveing errors and/or warnings in the html. I've almost mastered that except on your mod it's telling me the following:
line 347 column 3 - Warning: <h3> attribute "id" has invalid value "24hour_stats"
What exactly is it meaning, or more so why is it saying the id has an invalid value?

beery
Registered User
Posts: 73
Joined: Sat Oct 05, 2002 7:49 am
Location: Bangkok , Thailand

Re: Activity Stats MOD

Post by beery »

My Status alway show 706 active last 24hours. it not update
how can i fix this?

Image
Last edited by beery on Wed Aug 20, 2008 8:07 am, edited 1 time in total.

momentum
Registered User
Posts: 1505
Joined: Thu Sep 20, 2007 4:07 am
Location: Melbourne, Australia

Re: Activity Stats MOD

Post by momentum »

Just wanted to say thanks for this MOD. Installed it today under both the AcidTech & Getaway styles without problems. The board owner was blown away to find there were so many users in just a 24 hour period.

Craig.
QOTY: phpBB is free, good hosting is not. - robert (Lumpy Burgertushie)

MuleMarine
Registered User
Posts: 113
Joined: Sat Jan 08, 2005 6:36 pm

Re: Activity Stats MOD

Post by MuleMarine »

This is a great mod and really like it. But is there a way to reduce the time from 24hr to 12hrs? I apologize if this has been covered. I looked through about the first 20 pages and didn't see it so got impatient. Thanks.

momentum
Registered User
Posts: 1505
Joined: Thu Sep 20, 2007 4:07 am
Location: Melbourne, Australia

Re: Activity Stats MOD

Post by momentum »

MuleMarine wrote:...is there a way to reduce the time from 24hr to 12hrs?
Check out the first page of the support topic a STG.

Craig.
QOTY: phpBB is free, good hosting is not. - robert (Lumpy Burgertushie)

MuleMarine
Registered User
Posts: 113
Joined: Sat Jan 08, 2005 6:36 pm

Re: Activity Stats MOD

Post by MuleMarine »

Thank you very much.

Paul_kingtiger
Registered User
Posts: 16
Joined: Tue Aug 19, 2008 10:11 am

Re: Activity Stats MOD

Post by Paul_kingtiger »

Hello,
I'm having some problems installing the mod.

I've added the 2 files to the correct locations
Added the code as shown to index_body.html

What I get is a slightly messed up layout and no statistics. I've tried restoring and installing the mod from scratch several times. I'm not a PHP expert although I'm happy enough around SQL and HTML.

Can someone take a look at the site http://www.st-george-squadron.co.uk/board/ and maybe tell me where I'm going wrong.

Here is a copy of index_body.html

Code: Select all

<!-- INCLUDE overall_header.html -->

<!-- IF U_MCP -->
	<div id="pageheader">
		<p class="linkmcp">[ <a href="{U_MCP}">{L_MCP}</a> ]</p>
	</div>

	<br clear="all" /><br />
<!-- ENDIF -->

<!-- INCLUDE forumlist_body.html -->

<span class="gensmall"><!-- IF not S_IS_BOT --><a href="{U_DELETE_COOKIES}">{L_DELETE_COOKIES}</a><!-- ENDIF --> | <a href="{U_TEAM}">{L_THE_TEAM}</a></span><br />

<br clear="all" />

<!-- INCLUDE breadcrumbs.html -->

<!-- IF S_DISPLAY_ONLINE_LIST -->
	<br clear="all" />

	<table class="tablebg" width="100%" cellspacing="1">
	<tr>
		<td class="cat" colspan="2"><!-- IF U_VIEWONLINE --><h4><a href="{U_VIEWONLINE}">{L_WHO_IS_ONLINE}</a></h4><!-- ELSE --><h4>{L_WHO_IS_ONLINE}</h4><!-- ENDIF --></td>
	</tr>
	<tr>
	<!-- IF LEGEND -->
		<td class="row1" rowspan="{%:2}" align="center" valign="middle"><img src="{T_THEME_PATH}/images/whosonline.gif" alt="{L_WHO_IS_ONLINE}" /></td>
	<!-- ELSE -->
		<td class="row1" align="center" valign="middle"><img src="{T_THEME_PATH}/images/whosonline.gif" alt="{L_WHO_IS_ONLINE}" /></td>
	<!-- ENDIF -->
		<td class="row1" width="100%"><span class="genmed">{TOTAL_USERS_ONLINE} ({L_ONLINE_EXPLAIN})<br />{RECORD_USERS}<br /><br />{LOGGED_IN_USER_LIST}</span></td>
	</tr>
		<!-- IF not S_IS_BOT -->
		<tr>
			<td class="row1">{USERS_24HOUR_TOTAL}: <!-- BEGIN lastvisit -->{lastvisit.USERNAME_FULL}<!-- IF not lastvisit.S_LAST_ROW -->, <!-- ENDIF --><!-- END lastvisit --></td>
		</tr>
	<!-- ENDIF -->

	<!-- IF LEGEND -->
		<tr>
			<td class="row1"><b class="gensmall">{L_LEGEND} :: {LEGEND}</b></td>
		</tr>
	<!-- ENDIF -->
	</table>
<!-- ENDIF -->

<!-- IF S_DISPLAY_BIRTHDAY_LIST -->
	<br clear="all" />

	<table class="tablebg" width="100%" cellspacing="1">
	<tr>
		<td class="cat" colspan="2"><h4>{L_BIRTHDAYS}</h4></td>
	</tr>
	<tr>
		<td class="row1" align="center" valign="middle"><img src="{T_THEME_PATH}/images/whosonline.gif" alt="{L_BIRTHDAYS}" /></td>
		<td class="row1" width="100%"><p class="genmed"><!-- IF BIRTHDAY_LIST -->{L_CONGRATULATIONS}: <b>{BIRTHDAY_LIST}</b><!-- ELSE -->{L_NO_BIRTHDAYS}<!-- ENDIF --></p></td>
	</tr>
	</table>
<!-- ENDIF -->

<br clear="all" />

<table class="tablebg" width="100%" cellspacing="1">
<tr>
	<td class="cat" colspan="2"><h4>{L_STATISTICS}</h4></td>
</tr>
<tr>
	<td class="row1"><img src="{T_THEME_PATH}/images/whosonline.gif" alt="{L_STATISTICS}" /></td>
	<td class="row1" width="100%" valign="middle"><p class="genmed">{TOTAL_POSTS} | {TOTAL_TOPICS} | {TOTAL_USERS} | {NEWEST_USER}</p></td>
</tr>
</table>
		<!-- IF not S_IS_BOT -->
	<br clear="all" />
	<table class="tablebg" width="100%" cellspacing="1">
	<tr>
		<td class="cat" colspan="2"><h4>{L_24HOUR_STATS}</h4></td>
	</tr>
	<tr>
		<td class="row1"><img src="{T_THEME_PATH}/images/whosonline.gif" alt="{L_STATISTICS}" /></td>
		<td class="row1" width="100%" valign="middle"><p class="genmed">{24HOUR_POSTS} | {24HOUR_TOPICS} | {24HOUR_USERS}</p></td>
	</tr>
	</table>
<!-- ENDIF -->

<!-- IF not S_USER_LOGGED_IN -->
	<br clear="all" />

	<form method="post" action="{S_LOGIN_ACTION}">
	
	<table class="tablebg" width="100%" cellspacing="1">
	<tr>
		<td class="cat"><h4><a href="{U_LOGIN_LOGOUT}">{L_LOGIN_LOGOUT}</a></h4></td>
	</tr>
	<tr>
		<td class="row1" align="center"><span class="genmed">{L_USERNAME}:</span> <input class="post" type="text" name="username" size="10" />&nbsp; <span class="genmed">{L_PASSWORD}:</span> <input class="post" type="password" name="password" size="10" />&nbsp; <!-- IF S_AUTOLOGIN_ENABLED --> <span class="gensmall">{L_LOG_ME_IN}</span> <input type="checkbox" class="radio" name="autologin" /><!-- ENDIF -->&nbsp; <input type="submit" class="btnmain" name="login" value="{L_LOGIN}" /></td>
	</tr>
	</table>
	{S_FORM_TOKEN}
	</form>
<!-- ENDIF -->

<br clear="all" />

<table class="legend">
<tr>
	<td width="20" align="center">{FORUM_NEW_IMG}</td>
	<td><span class="gensmall">{L_NEW_POSTS}</span></td>
	<td>&nbsp;&nbsp;</td>
	<td width="20" align="center">{FORUM_IMG}</td>
	<td><span class="gensmall">{L_NO_NEW_POSTS}</span></td>
	<td>&nbsp;&nbsp;</td>
	<td width="20" align="center">{FORUM_LOCKED_IMG}</td>
	<td><span class="gensmall">{L_FORUM_LOCKED}</span></td>
</tr>
</table>

<!-- INCLUDE overall_footer.html -->
Thanks for any help,

Paul

momentum
Registered User
Posts: 1505
Joined: Thu Sep 20, 2007 4:07 am
Location: Melbourne, Australia

Re: Activity Stats MOD

Post by momentum »

Paul,

Your style is based on subsilver2 and it seems you haven't quite followed the edits as described. This line...

Code: Select all

	<td class="row1" rowspan="{%:2}" align="center" valign="middle"><img src="{T_THEME_PATH}/images/whosonline.gif" alt="{L_WHO_IS_ONLINE}" /></td>
Needs the "rowspan" incremented to allow space for all the information. It looks to me like you've simply replaced the original with that from the .XML file.

It should be...

Code: Select all

	<td class="row1" rowspan="3" align="center" valign="middle"><img src="{T_THEME_PATH}/images/whosonline.gif" alt="{L_WHO_IS_ONLINE}" /></td>
Craig.
QOTY: phpBB is free, good hosting is not. - robert (Lumpy Burgertushie)

Sigi1991
Registered User
Posts: 15
Joined: Sat Aug 09, 2008 3:22 am

Re: Activity Stats MOD

Post by Sigi1991 »

Can someone say me how I exclude the bots for this mod?

User avatar
Highway of Life
Former Team Member
Posts: 6048
Joined: Wed Feb 02, 2005 5:41 pm
Location: Seattle, WA
Name: David Lewis
Contact:

Re: Activity Stats MOD

Post by Highway of Life »

Sigi1991 wrote:Can someone say me how I exclude the bots for this mod?
Read the Author's MOD post. -- third post in the topic. :)
The phpBB Weekly Podcast - Discussing the developments of phpBB4 and beyond.

New to phpBB3? Want to learn about programing?
Visit phpBB Academy at StarTrekGuide to learn how.

Paul_kingtiger
Registered User
Posts: 16
Joined: Tue Aug 19, 2008 10:11 am

Re: Activity Stats MOD

Post by Paul_kingtiger »

Thanks Craig, that has sorted out the formatting. The XML file I had contained the lines:

Code: Select all

<td class="row1" rowspan="{%:1}" align="center" valign="middle"><img src="{T_THEME_PATH}/images/whosonline.gif" alt="{L_WHO_IS_ONLINE}" /></td>

Code: Select all

%:1 +1
Which is where I got the rowspan 2 from. But I've changed it to 3 and it looks much better.

I'm still not getting any data in the new fields though. I know people have logged on because they've posted, but the Last 24 Hours cell is empty.

Paul

momentum
Registered User
Posts: 1505
Joined: Thu Sep 20, 2007 4:07 am
Location: Melbourne, Australia

Re: Activity Stats MOD

Post by momentum »

Paul,
Paul_kingtiger wrote:I'm still not getting any data in the new fields though. I know people have logged on because they've posted, but the Last 24 Hours cell is empty.
Looks like you haven't uploaded the two supplied files that are in the /root directory inside the MOD package. For one, your board doesn't know the language variable "24HOUR_STATS" and secondly it's not reading users online. Those two things are generated by the supplied files.

You also have an extra table row at the bottom of your index_body.html file that shouldn't be there....

Code: Select all

	<tr>
		<td class="cat" colspan="2"><h4>{L_24HOUR_STATS}</h4></td>
	</tr>
Remove that. The MOD will never fill it out. :shock:

Craig.
QOTY: phpBB is free, good hosting is not. - robert (Lumpy Burgertushie)

Paul_kingtiger
Registered User
Posts: 16
Joined: Tue Aug 19, 2008 10:11 am

Re: Activity Stats MOD

Post by Paul_kingtiger »

Ok, I've removed that table row and checked the two files. Both have been uploaded to the correct location, but I'm still not getting updates.

Are there any file permissions or further settings I should be looking at?

momentum
Registered User
Posts: 1505
Joined: Thu Sep 20, 2007 4:07 am
Location: Melbourne, Australia

Re: Activity Stats MOD

Post by momentum »

I know I'm probably asking the obvious, but have you purged the board's cache?

Craig.
QOTY: phpBB is free, good hosting is not. - robert (Lumpy Burgertushie)

User avatar
DeathValley
Registered User
Posts: 16
Joined: Mon Aug 04, 2008 8:23 pm
Location: Pais de Llavallol

Re: Activity Stats MOD

Post by DeathValley »

Thanks!

Locked

Return to “[3.0.x] MOD Database Releases”