Fixed posts on profile page.
This commit is contained in:
@@ -27,7 +27,6 @@ if(empty($_GET["username"])) {
|
|||||||
$user = selectUser($_SESSION["userID"], $userID);
|
$user = selectUser($_SESSION["userID"], $userID);
|
||||||
$profile_friends = selectAllFriends($userID);
|
$profile_friends = selectAllFriends($userID);
|
||||||
$profile_groups = selectAllUserGroups($userID);
|
$profile_groups = selectAllUserGroups($userID);
|
||||||
$posts = selectAllUserPosts($userID);
|
|
||||||
|
|
||||||
|
|
||||||
if ($userID == $_SESSION["userID"]) {
|
if ($userID == $_SESSION["userID"]) {
|
||||||
@@ -54,23 +53,12 @@ include("../views/footer.php");
|
|||||||
<script src="js/friendButtons.js"></script>
|
<script src="js/friendButtons.js"></script>
|
||||||
<script src="js/masonry.js"></script>
|
<script src="js/masonry.js"></script>
|
||||||
<script>
|
<script>
|
||||||
var posts;
|
|
||||||
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
userID = <?= $userID ?>;
|
userID = <?= $userID ?>;
|
||||||
|
groupID = 0;
|
||||||
placeFriendButtons();
|
placeFriendButtons();
|
||||||
|
|
||||||
masonry(<?= $masonry_mode ?>);
|
masonry(<?= $masonry_mode ?>);
|
||||||
// alert("blap");
|
|
||||||
// $.post("API/getPosts.php", { usr : userID }, "json")
|
|
||||||
// .done(function(data) {
|
|
||||||
// posts = JSON.parse(data);
|
|
||||||
// alert(posts[0]["content"]);
|
|
||||||
// }).fail(function() {
|
|
||||||
// alert("failure...");
|
|
||||||
// });
|
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
Reference in New Issue
Block a user