mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-12 06:18:52 +00:00
Replaced previously removed anon and non-logged-in user templating info
git-svn-id: file:///svn/phpbb/trunk@188 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
40640febbf
commit
4c05450291
1 changed files with 26 additions and 5 deletions
|
@ -91,17 +91,29 @@ if($online_count)
|
||||||
$row_color = "#DDDDDD";
|
$row_color = "#DDDDDD";
|
||||||
}
|
}
|
||||||
|
|
||||||
if($onlinerow[$i]['user_id'] != ANONYMOUS && $onlinerow[$i]['user_id'] != DELETED && $onlinerow[$i]['session_logged_in'])
|
if($onlinerow[$i]['user_id'] != ANONYMOUS && $onlinerow[$i]['user_id'] != DELETED)
|
||||||
|
{
|
||||||
|
if($onlinerow[$i]['session_logged_in'])
|
||||||
{
|
{
|
||||||
$username = $onlinerow[$i]['username'];
|
$username = $onlinerow[$i]['username'];
|
||||||
|
$logged_on = TRUE;
|
||||||
$active_users++;
|
$active_users++;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
$username = $onlinerow[$i]['username'];
|
||||||
|
$logged_on = FALSE;
|
||||||
|
$guest_users++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$username = $l_anonymous;
|
||||||
|
$logged_on = FALSE;
|
||||||
$guest_users++;
|
$guest_users++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if($onlinerow[$i]['forum_name'] == "" && $onlinerow[$i]['session_logged_in'])
|
if($onlinerow[$i]['forum_name'] == "")
|
||||||
{
|
{
|
||||||
switch($onlinerow[$i]['session_page'])
|
switch($onlinerow[$i]['session_page'])
|
||||||
{
|
{
|
||||||
|
@ -152,12 +164,21 @@ if($online_count)
|
||||||
$location = $onlinerow[$i]['forum_name'];
|
$location = $onlinerow[$i]['forum_name'];
|
||||||
}
|
}
|
||||||
|
|
||||||
if($onlinerow[$i]['session_logged_in'])
|
//
|
||||||
|
// What would be nice here is to let
|
||||||
|
// the template designer decide whether
|
||||||
|
// to display all users, registered users
|
||||||
|
// or just logged in users ... but we need
|
||||||
|
// if... constructs in the templating system
|
||||||
|
// for that ...
|
||||||
|
//
|
||||||
|
if($logged_on)
|
||||||
{
|
{
|
||||||
$template->assign_block_vars("userrow",
|
$template->assign_block_vars("userrow",
|
||||||
array("ROW_COLOR" => $row_color,
|
array("ROW_COLOR" => $row_color,
|
||||||
"USER_ID" => $onlinerow[$i]['user_id'],
|
"USER_ID" => $onlinerow[$i]['user_id'],
|
||||||
"USERNAME" => $username,
|
"USERNAME" => $username,
|
||||||
|
"LOGGED_ON" => $logged_on,
|
||||||
"LASTUPDATE" => create_date($date_format, $onlinerow[$i]['session_time'], $sys_timezone),
|
"LASTUPDATE" => create_date($date_format, $onlinerow[$i]['session_time'], $sys_timezone),
|
||||||
"LOCATION" => $location,
|
"LOCATION" => $location,
|
||||||
"LOCATION_URL" => $location_url
|
"LOCATION_URL" => $location_url
|
||||||
|
|
Loading…
Add table
Reference in a new issue