Fixed online status
This commit is contained in:
@@ -33,7 +33,7 @@ foreach($friends as $i => $friend) {
|
||||
}
|
||||
?>'>
|
||||
<div class='friend'>
|
||||
<img alt='PF' class='profile-picture' src='<?= $friend->profilepicture ?>'/>
|
||||
<img alt='PF' class='profile-picture <?= $friend->onlinestatus ?>' src='<?= $friend->profilepicture ?>'/>
|
||||
<div class='friend-name'>
|
||||
<?= $friend->fullname ?><br/>
|
||||
<span style='color: #666'><?php
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
<body>
|
||||
<?php
|
||||
|
||||
include("../queries/group_page.php");
|
||||
include_once("../queries/group_page.php");
|
||||
|
||||
$group = selectGroupByName($_GET["groupname"]);
|
||||
$members = selectGroupMembers(2);
|
||||
|
||||
@@ -13,10 +13,10 @@
|
||||
</head>
|
||||
<body>
|
||||
<?php
|
||||
include("../queries/user.php");
|
||||
include("../queries/friendship.php");
|
||||
include("../queries/nicetime.php");
|
||||
include("../queries/post.php");
|
||||
include_once("../queries/user.php");
|
||||
include_once("../queries/friendship.php");
|
||||
include_once("../queries/nicetime.php");
|
||||
include_once("../queries/post.php");
|
||||
|
||||
if(empty($_GET["username"])) {
|
||||
$userID = $_SESSION["userID"];
|
||||
|
||||
@@ -92,6 +92,14 @@ p {
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.online {
|
||||
border: #4CAF50 solid 3px;
|
||||
}
|
||||
|
||||
.offline {
|
||||
border: #666666 solid 3px;
|
||||
}
|
||||
|
||||
.group-picture {
|
||||
border-radius: 5px;
|
||||
}
|
||||
@@ -184,7 +192,7 @@ button.green {
|
||||
}
|
||||
|
||||
button.gray{
|
||||
background-color: #FFF;
|
||||
background-color: inherit;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
|
||||
.main-picture {
|
||||
position: relative;
|
||||
border: #4CAF50 solid 5px;
|
||||
border-width: 5px;
|
||||
|
||||
display: inline-block;
|
||||
width: 150px;
|
||||
|
||||
Reference in New Issue
Block a user