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
satandream
Registered User
Posts: 383
Joined: Thu Mar 06, 2008 12:47 pm

Re: Activity Stats MOD

Post by satandream »

There must be a problem as i saw a member in the last 24 hours and when i loked at the member it shows lat visited 5.january
iftitaj
Registered User
Posts: 638
Joined: Tue Jan 15, 2008 6:21 am
Location: Karachi, Pakistan

Re: Activity Stats MOD

Post by iftitaj »

satandream wrote:There must be a problem as i saw a member in the last 24 hours and when i loked at the member it shows lat visited 5.january
The answer to your problem is given many times in this topic ......... try to search yourself.
Also you can try to purge your cache.
weezypops
Registered User
Posts: 76
Joined: Sat May 23, 2009 1:57 pm

Re: Activity Stats MOD

Post by weezypops »

I just tried installing this to my forum and I think I've completely screwed it up as I'm now just getting this message when I try to get onto the forum:

Fatal error: Cannot redeclare activity_mod() (previously declared in /home/essex18/public_html/forum/includes/functions_activity_stats.php:27) in /home/essex18/public_html/forum/includes/functions_activity_stats.php on line 25

what can I do?
User avatar
RMcGirr83
Former Team Member
Posts: 21676
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: Activity Stats MOD

Post by RMcGirr83 »

Upload a new functions_activity_stats.php file?
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then buy me a beerImage
weezypops
Registered User
Posts: 76
Joined: Sat May 23, 2009 1:57 pm

Re: Activity Stats MOD

Post by weezypops »

RMcGirr83 wrote:Upload a new functions_activity_stats.php file?
A blank one?

(Please remember you are dealing with an absolute novice here as shown by my inability to do this simple mod!)
User avatar
RMcGirr83
Former Team Member
Posts: 21676
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: Activity Stats MOD

Post by RMcGirr83 »

Download the mod again from the first post in this topic made by the "MOD Robot". Upload the file found in the includes folder/directory into your forum's includes folder/directory.
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then buy me a beerImage
weezypops
Registered User
Posts: 76
Joined: Sat May 23, 2009 1:57 pm

Re: Activity Stats MOD

Post by weezypops »

RMcGirr83 wrote:Download the mod again from the first post in this topic made by the "MOD Robot". Upload the file found in the includes folder/directory into your forum's includes folder/directory.
Thanks, it's fixed now. Heart attack over.
weezypops
Registered User
Posts: 76
Joined: Sat May 23, 2009 1:57 pm

Re: Activity Stats MOD

Post by weezypops »

I have a new problem, I think caused by all the mucking about but I don't know how to get rid of it. the mod is working fine, but I'm not actually that keen on it. I've uninstalled it but it still appears five or so times at the bottom of the page and I'm not sure what to edit to get rid of it:

http://www.essexmums.org/forum/index.php
User avatar
RMcGirr83
Former Team Member
Posts: 21676
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: Activity Stats MOD

Post by RMcGirr83 »

open your styles/prosilver/template/index_body.html file and find all this

Code: Select all

<!-- IF S_DISPLAY_ONLINE_LIST -->
	<!-- IF U_VIEWONLINE --><h3><a href="{U_VIEWONLINE}">{L_WHO_IS_ONLINE}</a></h3><!-- ELSE --><h3>{L_WHO_IS_ONLINE}</h3><!-- ENDIF -->
	<p>{TOTAL_USERS_ONLINE} ({L_ONLINE_EXPLAIN})<br />{RECORD_USERS}<br /> <br />{LOGGED_IN_USER_LIST}

	<!-- IF not S_IS_BOT --><br /><br />

	{USERS_24HOUR_TOTAL}: <!-- BEGIN lastvisit -->{lastvisit.USERNAME_FULL}<!-- IF not lastvisit.S_LAST_ROW -->, <!-- ENDIF --><!-- END lastvisit -->
	<!-- ENDIF -->

	<!-- IF not S_IS_BOT --><br /><br />
	{USERS_24HOUR_TOTAL}: <!-- BEGIN lastvisit -->{lastvisit.USERNAME_FULL}<!-- IF not lastvisit.S_LAST_ROW -->, <!-- ENDIF --><!-- END lastvisit -->
	<!-- ENDIF -->

	<!-- IF not S_IS_BOT --><br /><br />
	{USERS_24HOUR_TOTAL}: <!-- BEGIN lastvisit -->{lastvisit.USERNAME_FULL}<!-- IF not lastvisit.S_LAST_ROW -->, <!-- ENDIF --><!-- END lastvisit -->
	<!-- ENDIF -->

	<!-- IF not S_IS_BOT --><br /><br />
	{USERS_24HOUR_TOTAL}: <!-- BEGIN lastvisit -->{lastvisit.USERNAME_FULL}<!-- IF not lastvisit.S_LAST_ROW -->, <!-- ENDIF --><!-- END lastvisit -->

	<!-- ENDIF -->

	<!-- IF not S_IS_BOT --><br /><br />
	{USERS_24HOUR_TOTAL}: <!-- BEGIN lastvisit -->{lastvisit.USERNAME_FULL}<!-- IF not lastvisit.S_LAST_ROW -->, <!-- ENDIF --><!-- END lastvisit -->
	<!-- ENDIF -->

	<!-- IF not S_IS_BOT --><br /><br />
	{USERS_24HOUR_TOTAL}: <!-- BEGIN lastvisit -->{lastvisit.USERNAME_FULL}<!-- IF not lastvisit.S_LAST_ROW -->, <!-- ENDIF --><!-- END lastvisit -->

	<!-- ENDIF -->

	<!-- IF not S_IS_BOT --><br /><br />
	{USERS_24HOUR_TOTAL}: <!-- BEGIN lastvisit -->{lastvisit.USERNAME_FULL}<!-- IF not lastvisit.S_LAST_ROW -->, <!-- ENDIF --><!-- END lastvisit -->
	<!-- ENDIF -->
	<!-- IF LEGEND --><br /><em>{L_LEGEND}: {LEGEND}</em><!-- ENDIF --></p>
<!-- ENDIF -->

<!-- IF S_DISPLAY_BIRTHDAY_LIST and BIRTHDAY_LIST -->
	<h3>{L_BIRTHDAYS}</h3>
	<p><!-- IF BIRTHDAY_LIST -->{L_CONGRATULATIONS}: <strong>{BIRTHDAY_LIST}</strong><!-- ELSE -->{L_NO_BIRTHDAYS}<!-- ENDIF --></p>
<!-- ENDIF -->

<!-- IF NEWEST_USER -->
	<h3>{L_STATISTICS}</h3>
	<p>{TOTAL_POSTS} &bull; {TOTAL_TOPICS} &bull; {TOTAL_USERS} &bull; {NEWEST_USER}</p>

	<!-- IF not S_IS_BOT -->
	<h3 id="24hour_stats">{L_24HOUR_STATS}</h3>
	<p>{24HOUR_POSTS} &bull; {24HOUR_TOPICS} &bull; {24HOUR_USERS}</p>
	<!-- ENDIF -->
	<!-- IF not S_IS_BOT -->
	<h3 id="24hour_stats">{L_24HOUR_STATS}</h3>

	<p>{24HOUR_POSTS} &bull; {24HOUR_TOPICS} &bull; {24HOUR_USERS}</p>
	<!-- ENDIF -->
	<!-- IF not S_IS_BOT -->
	<h3 id="24hour_stats">{L_24HOUR_STATS}</h3>
	<p>{24HOUR_POSTS} &bull; {24HOUR_TOPICS} &bull; {24HOUR_USERS}</p>

	<!-- ENDIF -->
	<!-- IF not S_IS_BOT -->
	<h3 id="24hour_stats">{L_24HOUR_STATS}</h3>
	<p>{24HOUR_POSTS} &bull; {24HOUR_TOPICS} &bull; {24HOUR_USERS}</p>
	<!-- ENDIF -->
	<!-- IF not S_IS_BOT -->

	<h3 id="24hour_stats">{L_24HOUR_STATS}</h3>
	<p>{24HOUR_POSTS} &bull; {24HOUR_TOPICS} &bull; {24HOUR_USERS}</p>
	<!-- ENDIF -->
	<!-- IF not S_IS_BOT -->
	<h3 id="24hour_stats">{L_24HOUR_STATS}</h3>

	<p>{24HOUR_POSTS} &bull; {24HOUR_TOPICS} &bull; {24HOUR_USERS}</p>
	<!-- ENDIF -->
	<!-- IF not S_IS_BOT -->
	<h3 id="24hour_stats">{L_24HOUR_STATS}</h3>
	<p>{24HOUR_POSTS} &bull; {24HOUR_TOPICS} &bull; {24HOUR_USERS}</p>

	<!-- ENDIF -->
<!-- ENDIF -->
and replace it with this

Code: Select all

<!-- IF S_DISPLAY_ONLINE_LIST -->
	<!-- IF U_VIEWONLINE --><h3><a href="{U_VIEWONLINE}">{L_WHO_IS_ONLINE}</a></h3><!-- ELSE --><h3>{L_WHO_IS_ONLINE}</h3><!-- ENDIF -->
	<p>{TOTAL_USERS_ONLINE} ({L_ONLINE_EXPLAIN})<br />{RECORD_USERS}<br /> <br />{LOGGED_IN_USER_LIST}

	<!-- IF LEGEND --><br /><em>{L_LEGEND}: {LEGEND}</em><!-- ENDIF --></p>
<!-- ENDIF -->

<!-- IF S_DISPLAY_BIRTHDAY_LIST and BIRTHDAY_LIST -->
	<h3>{L_BIRTHDAYS}</h3>
	<p><!-- IF BIRTHDAY_LIST -->{L_CONGRATULATIONS}: <strong>{BIRTHDAY_LIST}</strong><!-- ELSE -->{L_NO_BIRTHDAYS}<!-- ENDIF --></p>
<!-- ENDIF -->

<!-- IF NEWEST_USER -->
	<h3>{L_STATISTICS}</h3>
	<p>{TOTAL_POSTS} &bull; {TOTAL_TOPICS} &bull; {TOTAL_USERS} &bull; {NEWEST_USER}</p>

<!-- ENDIF -->
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then buy me a beerImage
weezypops
Registered User
Posts: 76
Joined: Sat May 23, 2009 1:57 pm

Re: Activity Stats MOD

Post by weezypops »

hmm, it hasn't changed anything...
weezypops
Registered User
Posts: 76
Joined: Sat May 23, 2009 1:57 pm

Re: Activity Stats MOD

Post by weezypops »

aha, refreshed templates and all is good! Thanks
Thor89
Registered User
Posts: 36
Joined: Thu Oct 18, 2007 4:43 pm

Re: Activity Stats MOD

Post by Thor89 »

Hello. Could someone helt me implementing this into the style Melankolia. All my tries ends up with an black box where there should be some text.

Link to style: http://demo.phpbb3styles.net/Melankolia

My result:
image.PNG
image.PNG (50.38 KiB) Viewed 515 times
User avatar
HGN
Former Team Member
Posts: 4706
Joined: Wed Dec 03, 2008 1:53 pm
Location: The Netherlands
Name: Alfred
Contact:

Re: Activity Stats MOD

Post by HGN »

In styles/Melankolia/template/index_body.html:

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>
{%:1} in this line means you have to increase the value that was there with 1. So let's suppose the value was 2, than you have to make it 3.
Thor89
Registered User
Posts: 36
Joined: Thu Oct 18, 2007 4:43 pm

Re: Activity Stats MOD

Post by Thor89 »

"{%:1}" are not to be found in index_body.html.


The clean file looks like this:

Code: Select all

<!-- INCLUDE overall_header.html -->
<!-- INCLUDE forumlist_body.html -->

<br clear="all" />

<!-- INCLUDE breadcrumbs.html -->
<br clear="all" />
<table class="tablebg" width="100%" cellspacing="1">
<!-- IF S_DISPLAY_ONLINE_LIST -->
	<tr>
		<td class="cat" colspan="2"><h4><a class="kat" href="{U_VIEWONLINE}">{L_WHO_IS_ONLINE}</a></h4></td>
	</tr>
	<tr>
	<!-- IF LEGEND -->
		<td class="row1" rowspan="3" align="center" valign="middle"><img src="{T_THEME_PATH}/images/whosonline.gif" alt="{L_WHO_IS_ONLINE}" /></td>
	<!-- ELSE -->
		<td class="row1" rowspan="2" 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}</span></td>
	</tr>
	<tr>
		<td class="row1" width="100%"><span class="genmed">{LOGGED_IN_USER_LIST}<br /><br />{L_ONLINE_EXPLAIN}</span></td>
	</tr>
	<!-- IF LEGEND -->
		<tr>
			<td class="row1"><b class="gensmall">{L_LEGEND} :: {LEGEND}</b></td>
		</tr>
	<!-- ENDIF -->
<!-- ENDIF -->

<!-- IF S_DISPLAY_BIRTHDAY_LIST -->
	<tr>
		<td class="cat" colspan="2"><h4 style="color: #1DA9D8;">&nbsp;{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>
<!-- ENDIF -->
<tr>
	<td class="cat" colspan="2"><h4 style="color: #1DA9D8;">&nbsp;{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}<br />{RECORD_USERS}</p></td>
</tr>
	<tr>
		<td class="tablefooter" colspan="5"></td>
	</tr>
</table>
<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 -->
iftitaj
Registered User
Posts: 638
Joined: Tue Jan 15, 2008 6:21 am
Location: Karachi, Pakistan

Re: Activity Stats MOD

Post by iftitaj »

Thor89 wrote:"{%:1}" are not to be found in index_body.html.


The clean file looks like this:

Code: Select all

	<!-- IF LEGEND -->
		<td class="row1" rowspan="3" align="center" valign="middle"><img src="{T_THEME_PATH}/images/whosonline.gif" alt="{L_WHO_IS_ONLINE}" /></td>
	<!-- ELSE -->
		<td class="row1" rowspan="2" align="center" valign="middle"><img src="{T_THEME_PATH}/images/whosonline.gif" alt="{L_WHO_IS_ONLINE}" /></td>
	<!-- ENDIF -->
First of all the above quoted code part is relevant.

Now what you have to do is:

Make backup of your file first. Then...

Find:

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}" />
Replace with:

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}" />
See I only increased rowspan from 2 to 3.

I'm still confused with why there is IF ELSE ENDIF :?

If this doesn't work, increase rowspan of first part from 3 to 4 also. That may solve your problem.
Locked

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