Page 1 of 1

Layout repeats itself!

Posted: Wed Jun 22, 2005 1:36 pm
by MentalMonkey
Evening all,

I've just started coding a page in php but, if you point to my site http://mentalmonkey.co.uk you'll see something odd. The layout duplicates itself vertically and i have no idea why! I've viewed the source of the page and it's clearly written twice. But, and here's the mystery, on the source of the same page on my hard drive it's only written once. Surely it can't have changed during the ftp upload?

I don't know what to do!
Any help would be greatly appreciated.
MJ

Posted: Wed Jun 22, 2005 2:07 pm
by shiznatix
post your code. sounds like there is a loop somewhere that is running twice.

Posted: Thu Jun 23, 2005 11:35 am
by MentalMonkey
Here is the code to index.php located on my hard drive. As you can see, it's very different from the one you see on the web.

Code: Select all

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>MentalMonkey v3.0</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="style.css" rel="stylesheet" type="text/css">
</head>

<body>
<div id="container">

<div id="top"></div>

<div id="left">

<!-- Sidebar content begin -->

<h1>Navigation</h1><br>
<a href=http://mentalmonkey.co.uk/?id=home>Home</a><br>
<a href=http://mentalmonkey.co.uk/?id=friends>Friends (tv)</a><br>
<a href=http://mentalmonkey.co.uk/?id=music>Music</a><br>
<a href=http://mentalmonkey.co.uk/?id=film>Film</a><br>
<a href=http://mentalmonkey.co.uk/?id=downloads>Downloads</a><br>
<a href=http://mentalmonkey.co.uk/?id=affiliates>Affiliates</a><br><br>




<h1>Shoutbox</h1>


<!-- Sidebar content end -->

<h1>Stats</h1>


</div>


  <div id="right">
  
  	<!-- Main content begin -->
	
		  <h1>News</h1>
<?PHP
 include("cutenews/show_news.php");
?> 

		  <!-- Main content end -->

  </div>

</div>

</body>
</html>
d11wtq | Please use

Code: Select all

tags when posting PHP code[/color]

Posted: Thu Jun 23, 2005 2:35 pm
by wwwapu
What do you have in the included file?

Code: Select all

<?PHP 
include("cutenews/show_news.php"); 
?>
Page sure seems quite strange.

Posted: Thu Jun 23, 2005 5:02 pm
by Atomiku
Hmm... Looks like the configuration for cutenews has gone wrong... Umm..
Log into cutenews, Goto options then templates then click "Active news"

Make sure it hasnt got something in there that could make the layout "Duplicate"

Posted: Thu Jun 23, 2005 10:34 pm
by dethron

Posted: Fri Jun 24, 2005 12:18 pm
by MentalMonkey
I'm stumped. I've looked at everything cutenews has to offer but i still can't find any solution. It now only repeats itself twice, and not three times like it did before. I thought maybe it was poor coding, but i've gone over it and i can't see anything wrong

Posted: Fri Jun 24, 2005 12:26 pm
by dethron
post all code,