PDA

View Full Version : Doing My Nut!


asddsa
11-28-2003, 11:05 AM
I have installed:

https://vborg.vbsupport.ru/showthread.php?s=&threadid=37134

Brilliant hack by Darren Lewis. My only problem is that every time you open the site you get:

"Warning: Cannot modify header information - headers already sent by (output started at /data/members/paid/u/n/unofficial-blues.net/htdocs/www/Pages/main.php:8) in /data/members/paid/u/n/unofficial-blues.net/htdocs/www/forum/admin/functions.php on line 1653"

Above the Login box. This could have been caused by the other php on the page, so I made the login part it's own php file and included that in the main page. I would have thought that would have stopped the error. When you click the forum and then go back to the main page, the error is gone. Close all explorer windows and it's back again.

Check it out:

www.BluenosesOnline.co.uk

Any help appreciated!

MindTrix
11-28-2003, 02:04 PM
Did you do stage 3 in the installation instructions?

assassingod
11-28-2003, 02:08 PM
That error is usually caused by a whitespace after ?>
Check if there is one and delete it

MindTrix
11-28-2003, 02:19 PM
Or that :p

asddsa
11-28-2003, 03:22 PM
I put:

<?php
chdir("../forums/");
require('global.php');
?>

In the Login.php file that is included on the main page so it looks like this:

<?php
chdir("../forum/");
require('global.php');
?>
<html>
<font size="2" face="Tahoma"><?php include ("webwelcome.php"); ?></font>
</html>

That is all that is in that file. Then on my main page I have:

<? include "login.php"; ?>

Then you get the error when you first click the main page. But when you go on to the forum and back to the main page, it's gone! :-/

MindTrix
11-28-2003, 03:27 PM
Hmmm but it didnt say to put the code in the login.php
Said to put it in the websites main page etc. Read the instructions again to see what i mean.

MindTrix
11-28-2003, 03:32 PM
Basically if im correct, open up the page your trying to display the log in on, lets just say its called Homepage.html

Chuck this code in the very top of it, before any other code

<?php
chdir("../forums/");
require('global.php');
?>

Now rename the whole file too homepage.php

Make sure you adjust the link on your main page aswell so it loads the right file.

Try that

asddsa
11-28-2003, 03:41 PM
Can i still use the other php codes too?

MindTrix
11-28-2003, 03:42 PM
What other php codes?

asddsa
11-28-2003, 03:45 PM
Nevermind, it works! You're a star, Cheers gaffer!

MindTrix
11-28-2003, 03:49 PM
Lol at Gaffer, glad its working now mate ;)

One quick note, move to a better team like Manchester United ;) You know it makes sense.

asddsa
11-28-2003, 04:17 PM
Brummie through and through, no glory supporting here. It makes no sense at all ;)

MindTrix
11-28-2003, 04:19 PM
lol COUGH COUGH anyways, no flaming threads with messages about rubbish football teams please :p

Better not carry this on before we get moaned at :)

COME ON UNITED!!

asddsa
11-28-2003, 04:22 PM
Whhhhhhhoooooooooooo?

Are you a cockney? ;)

MindTrix
11-28-2003, 04:23 PM
LoL nope, i just support a decent team :)