Compare commits
2 Commits
hendrik-se
...
marijn-set
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
04df02862f | ||
|
|
e299ef59e8 |
@@ -120,7 +120,7 @@ function masonry(mode) {
|
|||||||
|
|
||||||
$form.append($("<input class=\"newpost\" name=\"title\" placeholder=\"Titel\" type=\"text\">"));
|
$form.append($("<input class=\"newpost\" name=\"title\" placeholder=\"Titel\" type=\"text\">"));
|
||||||
$form.append($("<textarea class=\"newpost\" name=\"content\" placeholder=\"Schrijf een berichtje...\" maxlength='1000'></textarea><span></span>"));
|
$form.append($("<textarea class=\"newpost\" name=\"content\" placeholder=\"Schrijf een berichtje...\" maxlength='1000'></textarea><span></span>"));
|
||||||
$form.append($("<input value=\"Plaats!\" type=\"submit\">"));
|
$form.append($("<button type=\"submit\"><i class='fa fa-sticky-note-o'></i> Plaats!</button>"));
|
||||||
columns[0][1].append($postInput);
|
columns[0][1].append($postInput);
|
||||||
|
|
||||||
columns[0][0] = $postInput.height() + margin;
|
columns[0][0] = $postInput.height() + margin;
|
||||||
|
|||||||
@@ -34,6 +34,4 @@ function deletePost(postID) {
|
|||||||
});
|
});
|
||||||
closeModal();
|
closeModal();
|
||||||
masonry(masonryMode);
|
masonry(masonryMode);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -108,7 +108,7 @@ div.posts .post form input, div.posts .post form textarea {
|
|||||||
width: calc(100% - 15px);
|
width: calc(100% - 15px);
|
||||||
}
|
}
|
||||||
|
|
||||||
div.posts .post form input[type="submit"] {
|
div.posts .post form input[type="submit"], .post button{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,8 @@ function getSettings() {
|
|||||||
`bio`,
|
`bio`,
|
||||||
`profilepicture`,
|
`profilepicture`,
|
||||||
`showBday`,
|
`showBday`,
|
||||||
`showEmail`
|
`showEmail`,
|
||||||
|
`showProfile`
|
||||||
FROM
|
FROM
|
||||||
`user`
|
`user`
|
||||||
WHERE
|
WHERE
|
||||||
@@ -64,7 +65,8 @@ function updateSettings() {
|
|||||||
`birthdate` = :bday,
|
`birthdate` = :bday,
|
||||||
`bio` = :bio,
|
`bio` = :bio,
|
||||||
`showEmail` = :showEmail,
|
`showEmail` = :showEmail,
|
||||||
`showBday` = :showBday
|
`showBday` = :showBday,
|
||||||
|
`showProfile` = :showProfile
|
||||||
WHERE
|
WHERE
|
||||||
`userID` = :userID
|
`userID` = :userID
|
||||||
");
|
");
|
||||||
@@ -79,6 +81,7 @@ function updateSettings() {
|
|||||||
$stmt->bindValue(":bio", test_input($_POST["bio"]));
|
$stmt->bindValue(":bio", test_input($_POST["bio"]));
|
||||||
$stmt->bindValue(":showEmail", (array_key_exists("showEmail", $_POST) ? "1" : "0"));
|
$stmt->bindValue(":showEmail", (array_key_exists("showEmail", $_POST) ? "1" : "0"));
|
||||||
$stmt->bindValue(":showBday", (array_key_exists("showBday", $_POST) ? "1" : "0"));
|
$stmt->bindValue(":showBday", (array_key_exists("showBday", $_POST) ? "1" : "0"));
|
||||||
|
$stmt->bindValue(":showProfile", (array_key_exists("showProfile", $_POST) ? "1" : "0"));
|
||||||
|
|
||||||
$stmt->bindValue(":userID", $_SESSION["userID"]);
|
$stmt->bindValue(":userID", $_SESSION["userID"]);
|
||||||
$stmt->execute();
|
$stmt->execute();
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ $fullname = $post['fname'] . " " . $post['lname'] . " (" . $post['username'] . "
|
|||||||
<form id="newcommentform" onsubmit="return false;">
|
<form id="newcommentform" onsubmit="return false;">
|
||||||
<input type="hidden" id="newcomment-textarea" name="postID" value="<?= $postID ?>">
|
<input type="hidden" id="newcomment-textarea" name="postID" value="<?= $postID ?>">
|
||||||
<textarea id="newcomment" name="newcomment-content" placeholder="Laat een reactie achter..." maxlength="1000"></textarea><span></span> <br>
|
<textarea id="newcomment" name="newcomment-content" placeholder="Laat een reactie achter..." maxlength="1000"></textarea><span></span> <br>
|
||||||
<button onclick="postComment('reaction')" name="button" value="reaction">Reageer!</button>
|
<button onclick="postComment('reaction')" name="button" value="reaction" class="green"><i class="fa fa-comment"></i> Reageer!</button>
|
||||||
<button onclick="postComment('nietslecht')" name="button" value="nietslecht" class="nietslecht">
|
<button onclick="postComment('nietslecht')" name="button" value="nietslecht" class="nietslecht">
|
||||||
<?php
|
<?php
|
||||||
if (checkNietSlecht($postID, $_SESSION["userID"])) {
|
if (checkNietSlecht($postID, $_SESSION["userID"])) {
|
||||||
|
|||||||
@@ -96,6 +96,14 @@ $settings = getSettings();
|
|||||||
<?=($settings["showEmail"] ? "checked" : "")?>
|
<?=($settings["showEmail"] ? "checked" : "")?>
|
||||||
>
|
>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<label for="showProfile">Publiek profiel</label>
|
||||||
|
<input type="checkbox"
|
||||||
|
name="showProfile"
|
||||||
|
id="showProfile"
|
||||||
|
<?=($settings["showProfile"] ? "checked" : "")?>
|
||||||
|
>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<label for="bio">Bio</label>
|
<label for="bio">Bio</label>
|
||||||
<textarea name="bio"
|
<textarea name="bio"
|
||||||
|
|||||||
Reference in New Issue
Block a user