commit c1d8984a2bc8b6de9c5ab4fad60a4cae58df9368
parent 35915c31c6b5eb6c7a411daf64d3faf8ff2898cf
Author: MTRNord <mtrnord1@gmail.com>
Date: Sun, 23 Nov 2014 10:31:03 +0100
try to make it able to view single posts
Diffstat:
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/core/backend/blog/posts.php b/core/backend/blog/posts.php
@@ -18,6 +18,7 @@
if ($resultat = $connection->query('SELECT * FROM posts')) {
//Put database data in variables
while($daten = $resultat->fetch_object() ){
+ $post_id = $daten->id;
$post_title = $daten->title;
$post_text = $daten->text;
$post_author = $daten->author;
diff --git a/themes/jumbotron/index.php b/themes/jumbotron/index.php
@@ -49,7 +49,7 @@
?>
</div>
<div id="navbar" class="navbar-collapse collapse">
- <form class="navbar-form navbar-right" role="form" action="../../core/admin/user/login_check.php" method="post">
+ <form class="navbar-form navbar-right" role="form" action="../../core/backend/admin/user/login_check.php" method="post">
<div class="form-group">
<input type="email" placeholder="Email" class="form-control" name="username" required="required" title="Please insert a valid Email (example@email.com)" x-moz-errormessage="Please insert a valid Email (example@email.com)">
</div>
@@ -67,7 +67,7 @@
<div class="container">
<h1>
<?php
- echo "<a href='#' rel='bookmark'> $post_title </a>";
+ echo "<a href='#?id=$post_id rel='bookmark'> $post_title </a>";
?>
</h1>
<div>