Code: Select all
'ORDER_BY' => 'u.username',
Code: Select all
'ORDER_BY' => 'u.username_clean',
Code: Select all
'WHERE' => 'u.user_lastvisit > ' . (time() - 86400) . ' OR s.session_user_id <> ' . ANONYMOUS,
Code: Select all
'WHERE' => 'u.user_type <> ' . USER_IGNORE . ' AND (u.user_lastvisit > ' . (time() - 86400) . ' OR s.session_user_id <> ' . ANONYMOUS . ')',
Code: Select all
global $template, $user;
Code: Select all
global $template, $user, $auth;
Code: Select all
foreach ($active_users as $row)
{
$template->assign_block_vars('lastvisit', array(
'USERNAME_FULL' => get_username_string((($row['user_type'] == USER_IGNORE) ? 'no_profile' : 'full'), $row['user_id'], $row['username'], $row['user_colour']),
));
}
Code: Select all
$users_online = 0;
foreach ($active_users as $row)
{
if (!$row['user_viewonline'] && !$auth->acl_get('u_viewonline'))
{
// user does not have permission to view hidden users.
continue;
}
$users_online++;
$username_string = get_username_string((($row['user_type'] == USER_IGNORE) ? 'no_profile' : 'full'), $row['user_id'], $row['username'], $row['user_colour']);
$username_string = (!$row['user_viewonline']) ? '<em>' . $username_string . '</em>' : $username_string;
$template->assign_block_vars('lastvisit', array(
'USERNAME_FULL' => $username_string,
));
}
Code: Select all
'USERS_24HOUR_TOTAL' => sprintf($user->lang['USERS_24HOUR_TOTAL'], sizeof($active_users)),
Code: Select all
'USERS_24HOUR_TOTAL' => sprintf($user->lang['USERS_24HOUR_TOTAL'], $users_online),
Code: Select all
'SELECT' => 'u.user_id, u.user_colour, u.username, u.user_type',
Code: Select all
'SELECT' => 'u.user_id, u.user_colour, u.username, u.user_type, u.user_allow_viewonline, s.session_viewonline',
Code: Select all
$active_users[$row['user_id']] = array(
Code: Select all
'user_viewonline' => ($row['session_viewonline']) ? $row['session_viewonline'] : $row['user_allow_viewonline'],
Code: Select all
$cache->put('_active_users', $active_users, 3600);
Code: Select all
$cache->put('_active_users', $active_users, 300);
Code: Select all
$cache->put('_activity_mod', $activity, 3600);
Code: Select all
$cache->put('_activity_mod', $activity, 300);
Keldek wrote:Integration instructions for eTech style
editing styles/etech/template/index_body.html
Find:Replace With:Code: Select all
<td class="row1 nobold"><b class="gensmall">{L_LEGEND} :: {LEGEND}</b></td>
Code: Select all
<td class="row1 nobold"><b class="gensmall"> <!-- IF not S_IS_BOT --><p> {USERS_24HOUR_TOTAL}: <!-- BEGIN lastvisit -->{lastvisit.USERNAME_FULL}<!-- IF not lastvisit.S_LAST_ROW -->, <!-- ENDIF --> <!-- END lastvisit --> </p><!-- ENDIF --> <p><b>{L_LEGEND} :: {LEGEND}</b></p></td>
Find:Add After:Code: Select all
<p class="genmed">{TOTAL_POSTS} | {TOTAL_TOPICS} | {TOTAL_USERS} | {NEWEST_USER}</p>
Code: Select all
<!-- IF not S_IS_BOT --> <br /><h3 id="24hour_stats">{L_24HOUR_STATS}</h3> <p>{24HOUR_POSTS} | {24HOUR_TOPICS} | {24HOUR_USERS}</p> <!-- ENDIF -->
Code: Select all
Capt U-96 AKA Mike , Google [Bot] , Jeffo , Kim , MSN [Bot] , etc
It’s cached for 1 hour, see FAQ on the third post.JasonWade wrote:Is this the same as the last RC or is it updated after? Cause I got the last RC version and it has a slight "error":
when in the last 24 hours 2 new people register and in the 24 hours after I delete someone and no new members register it still says 2 new people registered, how can I fix this?
See the second screenshot for New topics in the last 24 hours (count)EY wrote:On the demo board prosilver, where does it show the topics?
I know the one hour thing but like I typed in the last 24 hours (more even) 0 new members registered but it still said 2 so I figure that's because I deleted a member in those 24 hours, that's what the problem isHighway of Life wrote:It’s cached for 1 hour, see FAQ on the third post.JasonWade wrote:Is this the same as the last RC or is it updated after? Cause I got the last RC version and it has a slight "error":
when in the last 24 hours 2 new people register and in the 24 hours after I delete someone and no new members register it still says 2 new people registered, how can I fix this?
The only things that changed were the install instructions to increment instead of replace-with, though you won’t see any difference either way you go.
Also added the missing <edit></edit> tags to make it work properly with Blinky. Other than that, there are no other changes.