Page 2 of 3

Posted: Fri Feb 10, 2006 8:14 pm
by Leon
I tested whit both... :?

Can it be because the header is included ?

Update:
Ok, when i click on preview the colour is correct,
but the header is gone.

so whit my conclution it is the header that do it..

But i wonder why the header is gone when previewing a post =/
Well at least the problem is found, but not fixed..

Posted: Sat Feb 11, 2006 3:08 am
by battye
Is this line still in website.php?

Code: Select all

echo '<html><body bgcolor="' . $colour . '">'; 

Posted: Sat Feb 11, 2006 10:48 am
by Leon
It seems so..

Code: Select all

include($phpbb_root_path . "includes/page_header.$phpEx");
		// Ok, do it...
		echo '<html><body bgcolor="' . $colour . '">';
        echo $user_css; // Originally by Excursus
But i know it is because of the overal header, that the colour isen't there...

Posted: Sat Feb 11, 2006 10:53 am
by Leon
Here is my overal header. It has some bg code in it:

//-->
</script>
</head>
<body bgcolor="#FFFFFF" text="#000000" link="#3B88C5" vlink="#3279B2" alink="#FF9C00">
<a name="top"></a>
<table border="0" cellspacing="0" cellpadding="0" width="100%" height="100%">
<tr>

Code: Select all

Edited by me =P

Posted: Sat Feb 11, 2006 11:08 am
by battye
See <body bgcolor="#FFFFFF"?

Remove the bgcolor="#FFFFFF"

Posted: Sat Feb 11, 2006 11:20 am
by Leon
But what happens then to the rest of the forum :?:

Posted: Sat Feb 11, 2006 11:22 am
by battye
Oh yeah.. Whoops.

See:

include($phpbb_root_path . "includes/page_header.$phpEx");
// Ok, do it...
echo '<html><body bgcolor="' . $colour . '">';
echo $user_css; // Originally by Excursus

Replace with

// Ok, do it...
echo '<html><body bgcolor="' . $colour . '">';
include($phpbb_root_path . "includes/page_header.$phpEx");
echo $user_css; // Originally by Excursus

Posted: Sat Feb 11, 2006 11:26 am
by Leon
In what file is that code ?

Update:
I found it =P

Posted: Sat Feb 11, 2006 11:27 am
by battye
That section is in website.php

Posted: Sat Feb 11, 2006 11:30 am
by Leon
Ops:
When submit a colour in the site:

Warning: ob_start(): output handler 'ob_gzhandler' cannot be used twice in /home/volunteerforum/www/includes/page_header.php on line 44

Update:
It also when not having a colour in the website =/

Posted: Sat Feb 11, 2006 11:33 am
by Leon
Ops, i forgot to remove the:
include($phpbb_root_path . "includes/page_header.$phpEx");


But then, DAMN:

Warning: Cannot modify header information - headers already sent by (output started at /home/volunteerforum/www/website.php:156) in /home/volunteerforum/www/includes/page_header.php on line 488

Warning: Cannot modify header information - headers already sent by (output started at /home/volunteerforum/www/website.php:156) in /home/volunteerforum/www/includes/page_header.php on line 490

Warning: Cannot modify header information - headers already sent by (output started at /home/volunteerforum/www/website.php:156) in /home/volunteerforum/www/includes/page_header.php on line 491

Posted: Sat Feb 11, 2006 11:33 am
by battye
Ok, this is becoming confusing now :?

Find:

Code: Select all

     // Ok, do it...
      echo '<html><body bgcolor="' . $colour . '">';
        echo $user_css; // Originally by Excursus
      echo "<title>$title_website</title>";
      echo $user_html;
      echo '</body></html>';
      echo '<br />';
      echo '<font face="Arial"><table width="100%"><tr><td align="center">';
      echo 'User Website MOD &copy; <a href=http://www.online-scrabble.com>battye</a> 2005<br />
            Powered by <a href="http://www.phpbb.com/" target="_phpbb" class="copyright">phpBB</a> &copy; 2001, 2005 phpBB Group';
      echo '<br /><br />';
      echo $board_config['website_footer'];
      echo '<br />';
      echo $hits_out;
      echo '</td></tr></table></font>';
   } 
in website.php

Replace with

Code: Select all

   
include($phpbb_root_path . "includes/page_header.$phpEx"); 
  // Ok, do it...
      echo '<html>';
        echo $user_css; // Originally by Excursus
      echo "<title>$title_website</title>";
      echo $user_html;
      echo '</body></html>';
      echo '<br />';
      echo '<table bgcolor="' . $colour . '" width="100%"><tr><td><font face="Arial">';
      echo '<div align="center">User Website MOD &copy; <a href=http://www.online-scrabble.com>battye</a> 2005<br />
            Powered by <a href="http://www.phpbb.com/" target="_phpbb" class="copyright">phpBB</a> &copy; 2001, 2005 phpBB Group';
      echo '<br /><br />';
      echo $board_config['website_footer'];
      echo '<br />';
      echo $hits_out;
      echo '</div></td></tr></table></font>';
   } 
I hope that works

EDIT: I have edited this post

Posted: Sat Feb 11, 2006 11:38 am
by Leon
Well no errors now, but the colour is only changing at the footer
where the:

User Website MOD © battye 2005
Powered by phpBB © 2001, 2005 phpBB Group


This page has had 116 hits!

Is...

Posted: Sat Feb 11, 2006 11:38 am
by Leon

Posted: Sat Feb 11, 2006 11:52 am
by battye
website.php find

Code: Select all

include($phpbb_root_path . "includes/page_header.$phpEx");
  // Ok, do it...
      echo '<html>';
        echo $user_css; // Originally by Excursus
      echo "<title>$title_website</title>";
      echo $user_html;
      echo '</body></html>';
      echo '<br />';
      echo '<table bgcolor="' . $colour . '" width="100%"><tr><td><font face="Arial">';
      echo '<div align="center">User Website MOD &copy; <a href=http://www.online-scrabble.com>battye</a> 2005<br />
            Powered by <a href="http://www.phpbb.com/" target="_phpbb" class="copyright">phpBB</a> &copy; 2001, 2005 phpBB Group';
      echo '<br /><br />';
      echo $board_config['website_footer'];
      echo '<br />';
      echo $hits_out;
      echo '</div></td></tr></table></font>';
   } 
replace with

Code: Select all

include($phpbb_root_path . "includes/page_header.$phpEx");
  // Ok, do it...
      echo '<html>';
        echo $user_css; // Originally by Excursus
      echo "<title>$title_website</title><table bgcolor="' . $colour . '" width="100%"><tr><td>";
      echo $user_html;
      echo '</body></html>';
      echo '<br />';
      echo '<font face="Arial">';
      echo '<div align="center">User Website MOD &copy; <a href=http://www.online-scrabble.com>battye</a> 2005<br />
            Powered by <a href="http://www.phpbb.com/" target="_phpbb" class="copyright">phpBB</a> &copy; 2001, 2005 phpBB Group';
      echo '<br /><br />';
      echo $board_config['website_footer'];
      echo '<br />';
      echo $hits_out;
      echo '</div></td></tr></table></font>';
   }