Page 84 of 92

Re: Activity Stats MOD

Posted: Mon Jan 11, 2010 3:52 pm
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

Re: Activity Stats MOD

Posted: Mon Jan 11, 2010 4:45 pm
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.

Re: Activity Stats MOD

Posted: Wed Jan 13, 2010 1:12 pm
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?

Re: Activity Stats MOD

Posted: Wed Jan 13, 2010 1:20 pm
by RMcGirr83
Upload a new functions_activity_stats.php file?

Re: Activity Stats MOD

Posted: Wed Jan 13, 2010 1:22 pm
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!)

Re: Activity Stats MOD

Posted: Wed Jan 13, 2010 1:35 pm
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.

Re: Activity Stats MOD

Posted: Wed Jan 13, 2010 1:39 pm
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.

Re: Activity Stats MOD

Posted: Wed Jan 13, 2010 6:51 pm
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

Re: Activity Stats MOD

Posted: Wed Jan 13, 2010 7:04 pm
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 -->

Re: Activity Stats MOD

Posted: Wed Jan 13, 2010 7:33 pm
by weezypops
hmm, it hasn't changed anything...

Re: Activity Stats MOD

Posted: Wed Jan 13, 2010 7:36 pm
by weezypops
aha, refreshed templates and all is good! Thanks

Re: Activity Stats MOD

Posted: Thu Jan 21, 2010 5:41 pm
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 525 times

Re: Activity Stats MOD

Posted: Thu Jan 21, 2010 7:59 pm
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.

Re: Activity Stats MOD

Posted: Fri Jan 22, 2010 4:55 am
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 -->

Re: Activity Stats MOD

Posted: Fri Jan 22, 2010 6:27 am
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.