Layout repeats itself!

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
MentalMonkey
Forum Newbie
Posts: 3
Joined: Wed Jun 22, 2005 1:27 pm
Location: England, United Kingdom

Layout repeats itself!

Post 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
User avatar
shiznatix
DevNet Master
Posts: 2745
Joined: Tue Dec 28, 2004 5:57 pm
Location: Tallinn, Estonia
Contact:

Post by shiznatix »

post your code. sounds like there is a loop somewhere that is running twice.
MentalMonkey
Forum Newbie
Posts: 3
Joined: Wed Jun 22, 2005 1:27 pm
Location: England, United Kingdom

Post 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]
User avatar
wwwapu
Forum Contributor
Posts: 197
Joined: Wed Apr 07, 2004 11:57 am
Location: Turku, Finland

Post by wwwapu »

What do you have in the included file?

Code: Select all

<?PHP 
include("cutenews/show_news.php"); 
?>
Page sure seems quite strange.
Atomiku
Forum Newbie
Posts: 3
Joined: Thu Jun 23, 2005 4:48 pm

Post 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"
User avatar
dethron
Forum Contributor
Posts: 370
Joined: Sat Apr 27, 2002 11:39 am
Location: Istanbul

Post by dethron »

Last edited by dethron on Fri Jun 24, 2005 12:26 pm, edited 1 time in total.
MentalMonkey
Forum Newbie
Posts: 3
Joined: Wed Jun 22, 2005 1:27 pm
Location: England, United Kingdom

Post 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
User avatar
dethron
Forum Contributor
Posts: 370
Joined: Sat Apr 27, 2002 11:39 am
Location: Istanbul

Post by dethron »

post all code,
Post Reply