vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Doing My Nut! (https://vborg.vbsupport.ru/showthread.php?t=58868)

asddsa 11-28-2003 11:05 AM

Doing My Nut!
 
I have installed:

https://vborg.vbsupport.ru/showthrea...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:

Code:

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

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

Code:

<?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:

Code:

<? 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 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!


All times are GMT. The time now is 07:33 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00975 seconds
  • Memory Usage 1,728KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete