Jump to content


Php Includes


5 replies to this topic

#1 Fernando

    Young Padawan

  • Members
  • Pip
  • 14 posts

Posted 27 June 2006 - 05:20 PM

I'm having some problems with the code I'm using on my website. I decided to make a table based website using the includes code below:

<?php
$number = "5";
switch($id) { 
default: 
include('news/show_news.php');
break; case "media":
include('media.php');
break; case "aboutme": 
include('aboutme.php'); 
break; case "pictures": 
include('pictures/index.php'); 
break; case "contactme": 
include('contactme.php');
} 
?>

I'm using CuteNews as a posting script, if you go to my website Fernando-Music.com the news displays fine, but when you click on Comments to add a comment you will see that it throws my layout out of proportion, every other page works fine. I noticed up at the address bar what could be the problem but I don't know how to explain it, can anyone please help me fix this? Thanks.

#2 Matthew.

    Official Spammer .Matt

  • Members
  • PipPipPipPip
  • 2,749 posts
  • Gender:Male
  • Location:England

Posted 27 June 2006 - 05:27 PM

Your talking about this right? http://fernando-music.com/index.php?subact...&ucat=&

That isnt a php problem.
I suspect its something to do with the cutenews templating (poor system that it is ;))

I think cutenews has a template edit option? (i used it once like 3 yrs ago lol) so try searching for anything out of place, like a percentage etc.

EDIT:!:!!

Ok, the problem i think is this..

<div style="width:420px; margin-bottom:15px;">

See the width is set to 420px where as your tables set it as 255 from memory. Change that, you should have your problem fixed :)

EDIT!!!: nice fish!

Edited by .Matt, 27 June 2006 - 05:27 PM.


#3 Fernando

    Young Padawan

  • Members
  • Pip
  • 14 posts

Posted 27 June 2006 - 05:29 PM

View Post.Matt, on Jun 27 2006, 10:27 PM, said:

Your talking about this right? http://fernando-music.com/index.php?subact...&ucat=&

That isnt a php problem.
I suspect its something to do with the cutenews templating (poor system that it is ;))

I think cutenews has a template edit option? (i used it once like 3 yrs ago lol) so try searching for anything out of place, like a percentage etc.

EDIT:!:!!

Ok, the problem i think is this..

<div style="width:420px; margin-bottom:15px;">

See the width is set to 420px where as your tables set it as 255 from memory. Change that, you should have your problem fixed :)

EDIT!!!: nice fish!

Haha, thanks a lot man, let me try that.

#4 Fernando

    Young Padawan

  • Members
  • Pip
  • 14 posts

Posted 27 June 2006 - 05:32 PM

Hm.. that did not fix it ;). I don't know why it's doing that, and I had removed the comments thing but now I find it that I would like to have use of that feature.

#5 Matthew.

    Official Spammer .Matt

  • Members
  • PipPipPipPip
  • 2,749 posts
  • Gender:Male
  • Location:England

Posted 27 June 2006 - 05:40 PM

Hm, well, im going to bed lol.

So i cant help anymore, but i know im on the right lines, check out some of the other widths etc, its definataly in the html of the comments page. keep going throw the html to find something hat looks like it could be the culprit.

#6 Fernando

    Young Padawan

  • Members
  • Pip
  • 14 posts

Posted 27 June 2006 - 05:41 PM

View Post.Matt, on Jun 27 2006, 10:39 PM, said:

Hm, well, im going to bed lol.

So i cant help anymore, but i know im on the right lines, check out some of the other widths etc, its definataly in the html of the comments page. keep going throw the html to find something hat looks like it could be the culprit.

Ah, ok, thanks a lot.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users