php layout problem? (probably an easy fix!)
Posted: Fri Mar 30, 2007 4:35 pm
hi guys and gals, i'm having some trouble with the layout of a new php news script that i've just installed, here http://www.batonrougerocks.com/news
the problem that i'm having is this:
i have a page where i want the php news script to be to the left of a php calendar script, just like you can see now on the news/index page.
the trouble that i'm having is when you click on one of the articles, this error is displayed above the article on the page.
but when i use this code, i don't get the error, but the php calendar script is displayed below the news articles, not the right, how i want it.
the problem with the second is that i can't get the calendar script to display to the right of the news.
this is the code from "public_html/news/admin/lib/class_functions.php" for a function which contains line "654" where the error is supposed to be:
i've tried various css layouts as well as table layouts, but when i put some other code on the index page, it gives me the error.
is there something i can do to make it look like i want without the errors?
i'm sure it's something easy, but i'm not very fluent in php, so i could be missing it completely.
thanks for your help, guys.
the problem that i'm having is this:
i have a page where i want the php news script to be to the left of a php calendar script, just like you can see now on the news/index page.
the trouble that i'm having is when you click on one of the articles, this error is displayed above the article on the page.
i've found that when i use this code for the index page i get the error above, but the layout is how i want it.Warning: Cannot modify header information - headers already sent by (output started at /home/batonrou/public_html/news/index.php:1) in /home/batonrou/public_html/news/admin/lib/class_functions.php on line 654
Code: Select all
<table width=800px><tr><td><img src=http://www.batonrougerocks.com/YaBBImages/yabblogo.gif></img></td><tr><td width=640px><?php
// +------------------------------------------------------------------+
// | evoArticles
// | Copyright (c) 2003-2004 Evo-Dev
// +------------------------------------------------------------------+
require "./global.php";
//************************************************************//
$site['title'] = $evoLANG['main'];
if ( $_GET['p'] != '' )
{
$content = $cpages->getpage($_GET['p']);
}
else
{
$content = $art->init_main();
}
// **************************************************************************
$page->generate();
// ***************************************************************************
?>
</td>
<td width=160px valign=top>
<?php include("http://www.batonrougerocks.com/calendar/demo.php"); ?>
</td>
</tr>
</table>Code: Select all
<?php
// +------------------------------------------------------------------+
// | evoArticles
// | Copyright (c) 2003-2004 Evo-Dev
// +------------------------------------------------------------------+
require "./global.php";
//************************************************************//
$site['title'] = $evoLANG['main'];
if ( $_GET['p'] != '' )
{
$content = $cpages->getpage($_GET['p']);
}
else
{
$content = $art->init_main();
}
// **************************************************************************
$page->generate();
// ***************************************************************************
?>
<?php include("http://www.batonrougerocks.com/calendar/demo.php"); ?>this is the code from "public_html/news/admin/lib/class_functions.php" for a function which contains line "654" where the error is supposed to be:
Code: Select all
627 function makecookie($name,$value="",$howlong="year",$domain="")
628 {
629 global $settings,$_CONFIG;
630
631 switch($howlong)
632 {
633 case "year":
634 $expire = time() + 60 * 60 * 24 * 365; // one little year
635 break;
636 /* =-----------------= */
637 case "month":
638 $expire = time() + 60 * 60 * 24 * 30;
639 break;
640 /* =-----------------= */
641 case "day":
642 $expire = time() + 60 * 60 * 24;
643 break;
644 /* =-----------------= */
645 case "hour":
646 $expire = time() + 60 * 60;
647 break;
648 /* =-----------------= */
649 default;
650 $expire = trim($howlong) != '' ? time() + $howlong : 0;
651 }
652
653 $name = $_CONFIG['cookieprefix'].$name;
654 setcookie ( $name, $value, $expire, $settings['cookiepath'], $settings['cookiedomain'], $settings['seccookie'] );
655 }i've tried various css layouts as well as table layouts, but when i put some other code on the index page, it gives me the error.
is there something i can do to make it look like i want without the errors?
i'm sure it's something easy, but i'm not very fluent in php, so i could be missing it completely.
thanks for your help, guys.