This is the community forum. For a developer response use the Client Area.
Follow us on Facebook, Twitter and YouTube!

My site layout bugs
#1

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:
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
Reply
#2

Also,

The captcha doesnt work.
Reply
#3

Hi,

The layout bugs are because the stylesheet isn't being loaded. You will need to change the line below so that it points to it correctly. If necessary enter the full absolute URL.
Code:
<link rel="stylesheet" type="text/css" href="../comments/css/stylesheet.css"/>

There are some known issues with using Commentics on a subdomain. These include the image captcha not working and the ajax features not working (like/dislike, flag etc).

Have you completed the interview?
Reply
#4

Well that fixed the background for the comments.

But look at the difference:
http://codcircut.uweave.ca/index.php

http://codcircut.uweave.ca/article.php?id=2

half of my page doesnt load...
Reply
#5

Can you check your server error log.

Have you completed the interview?
Reply
#6

There is no errors.. that's weird.

It's as if the comment code just cut's of from my original template...

and if you are wondering, this is the code of my sidebar:
Code:
                <li>
                    <h2>Top teams</h2>
                        <center><?php
                            $request = new Request("Teams");
                            $request->order("points")
                                    ->limit(5);

                            View::render_table($request, array(
                                'shownumber' => '#',
                                'squad_name:linkID@team.php' => "Squad",
                                'gp' => "GP",
                                'id:getWinPct' => "Win %",
                                'recent_games:getStreak' => "Streak",    
                                'points' => "<b>Pts</b>"
                                ), array('footer' => false, 'width' => 275)
                            );
                        ?></center>
                </li>
                <li>
                    <br/><h2>Top players</h2>
                        <center><?php
                            $request = new Request("Player");
                            $request->order("top_performances")
                                    ->limit(5);

                            View::render_table($request, array(
                                'shownumber' => '#',
                                'player:linkID@player.php' => "Player",
                                'gp' => "GP",
                                'total_kills'=> "Kills",
                                'id:getKDR' => "K/D R",
                                'top_performances' => "<b>TP</b>"    
                                ), array('footer' => false, 'width' => 275)
                            );
                        ?></center>
                </li>
Reply
#7

I think it might be because I got thse functions of pagination already set up:
private $pagination = false;
public $pagination_max = null;
/* PAGINATION */
public function set_pagination($value, $max = null) {
$this->pagination = $value;
$this->pagination_max = $max;
return $this;
}

public function get_pagination_max() {
if(is_numeric($this->pagination)) {
return $this->pagination;
} else {
return 40;
}
}

public function is_pagination() {
if($this->pagination == false) {
return $this->pagination;
} else {
return true;
}
}
Reply
#8

Sooooo is there a work around?
Reply
#9

Sorry I don't know why it's affecting parts of your page. You may get more success with help from a freelancer who can look into it properly.

Have you completed the interview?
Reply
#10

I'm having the same problem, it cuts off half of my page Sad . Any help would be greatly appreciated.
Reply


Possibly Related Threads…
Thread / Author Replies Views Last Post
Last Post by besric
27-Dec-2018, 12:46 PM
Last Post by ededi
31-Oct-2012, 09:28 PM
Last Post by Steven
12-Jun-2012, 04:23 PM
Last Post by Static
25-Aug-2010, 04:51 PM

Forum Jump:


Users browsing this thread: 4 Guest(s)