15-Dec-2011, 02:30 PM
Hi guys,
Ok first of really nice script. Really easy to use and in depth.
So here is my problem, I added the the ratings/review on the page I want.
But my normal layout of the site bugs:
http://codcircut.uweave.ca/article.php?id=2
Here is the code of my page:
Thank you,
Ara
Ok first of really nice script. Really easy to use and in depth.
So here is my problem, I added the the ratings/review on the page I want.
But my normal layout of the site bugs:
http://codcircut.uweave.ca/article.php?id=2
Here is the code of my page:
Code:
<?php require_once('../includes/initialize.php');
session_start();
ob_start();
?>
<?php
$id = $_GET["id"];
$art = Articles::find_by_id($_GET['id']);
$title = $art->title;
?>
<?php $page_name = $title; ?>
<?php include_layout_template('header.php'); ?>
<div class="post">
<h1 class="title"><?php echo $page_name; ?></h1>
<div class="entry">
<br/>
<?php
$newsSQL = mysql_query("SELECT * FROM tw_articles WHERE `id`='$id'");
while($news = mysql_fetch_array($newsSQL)){
echo "" .$news['article']. "";
echo "<br/><br/>Categorie: " .$news['categorie']. "<br/>" .$news['date']. "</br> By <b>" .$news['author']. "</b>";
}
$page_id = "$id";
$reference = "Page One";
$path_to_comments_folder = "../comments/";
define ('IN_COMMENTICS', 'true'); //no need to edit this line
require $path_to_comments_folder . "includes/commentics.php"; //no need to edit this line
?>
</div>
</div>
<?php include_layout_template('footer.php'); ?>
Thank you,
Ara