Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
Прегледах всичко ако искаш кода да ти дам ?Access каза:нещо не си направил както трябва.
мода си работи идеално и няма проблеми.
прегледай внимателно всичко което си направил и виж къде ти е грешката
if (defined('SHOW_ONLINE'))
{
$user_forum_sql = ( !empty($forum_id) ) ? "AND s.session_page = " . intval($forum_id) : '';
$sql = "SELECT u.username, u.user_id, u.user_allow_viewonline, u.user_level,u.user_regdate,u.user_avatar,u.user_posts, s.session_logged_in, s.session_ip
FROM ".USERS_TABLE." u, ".SESSIONS_TABLE." s
WHERE u.user_id = s.session_user_id
AND s.session_time >= ".( time() - 300 ) . "
$user_forum_sql
ORDER BY u.username ASC, s.session_ip ASC";
if( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not obtain user/online information', '', __LINE__, __FILE__, $sql);
}
$userlist_ary = array();
$userlist_visible = array();
$prev_user_id = 0;
$prev_user_ip = $prev_session_ip = '';
while( $row = $db->sql_fetchrow($result) )
{
//start web-tourist.net mod
$potreb=$row['username'];
$potreb='User: '.$potreb;
$regdate = $row['user_regdate'];
$start_time = date('m.d.y', $regdate);
$topici=' Общо мнения: '.$row['user_posts'];
$start_time="Регистрация: ".$start_time;
$avatarat=$row['user_avatar'];
if($avatarat!='')
{
if(file_exists("images/avatars/$avatarat"))
{
$blah = getimagesize("images/avatars/$avatarat");
$width1 = $blah[0];
$height1 = $blah[1];
$lkons=$height1/$width1;
$height2=40;
$width2=$height2/$lkons;
$avatarat="<center><img height=$height2 width=$width2 src=images/avatars/$avatarat></center>";
}
else
{
$avatarat="";
}
}
$balon='onmouseover="return overlib(\' '.$start_time.'<br/>'.$topici.'<br/>'.$avatarat.'\',CAPTION, \' '.$potreb.'\');" onmouseout="return nd();" ';
//end web-tourist.net mod
$row['username'] = '<b>' . $row['username'] . '</b>';
$style_color = 'style="color:#' . $theme['fontcolor2'] . '"';
}
if ( $row['user_allow_viewonline'] )
{
$user_online_link = ' <a '.$balon.' href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $row['user_id']) . '"' . $style_color .'>' . $row['username'] . '</a>';
$logged_visible_online++;
}
else
{
if ( $row['user_allow_viewonline'] )
{
$user_online_link = ' <a '.$balon.' href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $row['user_id']) . '"' . $style_color .'>' . $row['username'] . '</a>';
$logged_visible_online++;
}
else
{
$user_online_link = '<a '.$balon.' href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $row['user_id']) . '"' . $style_color .'><i>' . $row['username'] . '</i></a>';
$logged_hidden_online++;
}
}
else
{
$user_online_link = '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $row['user_id']) . '"' . $style_color .'><i>' . $row['username'] . '</i></a>';
$logged_hidden_online++;
}