Posts: 48
Threads: 11
Joined: Dec 2013
I installed everything seems good. I can get into the admin panel
I put step 1,2 and 3 into my file which I renamed .php instead of .html but nothing is showing.
Here is the page
http://childchat.org/doublestroller.php - doublestroller.php leads you to doublestroller_body.php
All the code is in doublestroller_body.php
When you look at the source you don't see the 2 php parts
Nothing shows on the page
Posts: 48
Threads: 11
Joined: Dec 2013
I'm adding some of the code to help
the file is doublestroller_body.php
The very top is
Quote:<?php
session_start();
ob_start();
?>
<!-- INCLUDE doublestroller_header.php -->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-45809470-1', 'childchat.org');
ga('send', 'pageview');
</script>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<link rel="stylesheet" type="text/css" href="comments/css/stylesheet.css"/>
<h2>DOUBLE STROLLERS</h2>
</head>
The end is
Quote:</div>
<p class="seeallsales"><a href="http://amzn.to/1bJWge6"target="_blank">Click Here To See All Top Rated Double Strollers</a>
<?php
$cmtx_identifier = '1';
$cmtx_reference = 'Page One';
$cmtx_path = 'comments/';
define('IN_COMMENTICS', 'true'); //no need to edit this line
require $cmtx_path . 'includes/commentics.php'; //no need to edit this line
?>
</body>
<!-- INCLUDE overall_footer.html -->
Nothing shows for comments
Posts: 2,894
Threads: 59
Joined: Jun 2010
Hi,
If I understand what you're trying to do, you are including the file doublestroller_body.php into the file doublestroller.php.
However you are treating doublestroller_body.php as an independent file when in reality it's just a part of doublestroller.php.
So start by removing the following from doublestroller_body.php and add it to the very top of doublestroller.php.
PHP Code:
<?php
session_start();
ob_start();
?>
Then remove the whole <head> element from doublestroller_body.php. The UTF-8 line and the stylesheet line are already in doublestroller.php so you're repeating it twice.
There are many other things but essentially the way that you're building the page is invalid.
Once that's done, check your server's error log if the comments are not showing. If there are no errors then ask your host how to view them properly because there should be some there. It may be that fixing the session_start(); code above was the problem.
Have
you completed
the interview?