Hendrik post #126

Merged
11342374 merged 53 commits from hendrik-post into master 2017-01-25 16:20:49 +01:00
3 changed files with 16 additions and 12 deletions
Showing only changes of commit 3de4e1387f - Show all commits

View File

@@ -20,8 +20,6 @@ if(empty($_GET["username"])) {
$userID = getUserID($_GET["username"]); $userID = getUserID($_GET["username"]);
} }
echo "User ID: $userID";
$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);

View File

@@ -108,7 +108,13 @@ function selectAllUserPosts($userID) {
`postID`, `postID`,
`author`, `author`,
`title`, `title`,
`content`, CASE LENGTH(`content`) >= 150
WHEN TRUE THEN
CONCAT(LEFT(`content`, 150), '...')
WHEN FALSE THEN
`content`
END
AS `content`,
`creationdate` `creationdate`
FROM FROM
`post` `post`

View File

@@ -60,7 +60,7 @@
<div class="post platform"> <div class="post platform">
<form> <form>
<input type="text" class="newpost" placeholder="Titel"> <input type="text" class="newpost" placeholder="Titel">
<textarea class="newpost">Schrijf een berichtje...</textarea> <textarea class="newpost" placeholder="Schrijf een berichtje..."></textarea>
<input type="submit" value="Plaats!"> <input type="submit" value="Plaats!">
</form> </form>
</div> </div>