Code: Select all
Find
Tip: This may be a partial find and not the whole line.
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>
Increment
Tip: This allows you to alter integers. For help on what each operator means, click here.
Code: Select All
%:1 +1
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>
<!-- ELSE -->
Code: Select all
Find
Tip: This may be a partial find and not the whole line.
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>
Increment
Tip: This allows you to alter integers. For help on what each operator means, click here.
Code: Select All
%:1 +1
this will only work if you activate the account within 24 hours you could try this:GurlzLubme wrote:currently, my forum is not open registration and requires an admin approval. An account was registered, but has not been approved, yet the Act. Stats Mod shows that there is 1 new user in the last 24 hours. Is it really supposed to work like that? Can we fix that? To me, a "new user" should be a new user that is approved by admin (if applicable).
what do u think?
Code: Select all
#
#-----[ OPEN ]------------------------------------------
#
includes/functions_activity_stats.php
#
#-----[ FIND ]------------------------------------------
#
// total new users in the last 24 hours, counts inactive users as well
$sql = 'SELECT COUNT(user_id) AS new_users
FROM ' . USERS_TABLE . '
WHERE user_regdate > ' . $interval;
#
#-----[ REPLACE WITH ]------------------------------------------
#
// total new users in the last 24 hours
$sql = 'SELECT COUNT(user_id) AS new_users
FROM ' . USERS_TABLE . '
WHERE user_type = ' . USER_NORMAL . '
AND user_regdate > ' . $interval;
open functions_ativity_stats.phpinayan wrote:Hello all -
Is it okay to change the mod to show information for the last 48 hours (rather than 24) and if so, how can this be done?
Thanks! Really liking this Mod but changing it to 48 would make it perfect for us.
Code: Select all
86400
Code: Select all
86400 * 2
Code: Select all
'USERS_24HOUR_TOTAL' => '%d Users active over the last 24 hours',
Code: Select all
'USERS_24HOUR_TOTAL' => '%d Users active over the last 48 hours',
Code: Select all
'24HOUR_STATS' => 'Activity over the last 24 hours',
Code: Select all
'24HOUR_STATS' => 'Activity over the last 48 hours',