vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   welcome/login panel on non-vB page (https://vborg.vbsupport.ru/showthread.php?t=37134)

glo 11-23-2002 08:29 AM

Hi Darren, I am testing the code on its own as I think that when inserted into my page that it gets corrupted along the way?

Anyway, when it logs me in, and i select "user CP" it doesnt send me to the correct link cause the directory for the forums is above the folder where the link is?

Can you please make some suggestions???

Darren Lewis 11-23-2002 08:43 AM

Sure :)

The paths for the links are controlled by the templates. The one for the UserCP is in the webwelcome_logoutcode template. You may want to add $bburl instead of the forums/ bit in the link?

I'm sure that something is getting corrupted on that page. I've attached a screenshot of what I get when viewing the php page. Anyone got any suggestions as to why it suddenly stops, and displays the raw HTML?

WHO 11-24-2002 08:15 PM

I have a few questions. Maybe someone can answer them for me. :)

I installed this, and for the most part it works great. When I first tried to install it, I put the "global.php" section at the top of the page and it didn't work at all.

So instead, I made a page called "login.php" with the following code:
PHP Code:

    <?php
    chdir
("vbulletin/");
    require(
'global.php');
    include (
"../webwelcome.php"); 
    
chdir("../");
    
?>

I then included that from the page and everything worked great...for the most part.

It's not exactly a horrible bug that I'm getting because it's somewhat difficult to reproduce, but still a bit annoying. I open two web browsers, go to my homepage with one, and the forums home with the other.

On the homepage browser, I log out. I refresh the forms home browser and then log in on that page. THEN, I go back to the browser with the homepage in it and refresh it.

Without fail, there will be a "headers already sent" type error, but it goes away if I click on a link to the forum. If I just sit there and refresh it, it doesn't go away though.

Lost yet? :)


Another question I have is: Is it normal for all the guests that are just visiting the homepage to be listed as guests in vB now? If I'm logged in as an admin, I see the exact location on my site where they are, but if I'm logged in as anyone else it just says "Main Index". Normal?

Also, I noticed a big jump in page views and referrers according to the vBstats hack I installed. Will it count all the hits on my entire site now? Or just a fluke?

Thanks

NTLDR 11-24-2002 08:28 PM

Make sure in both webwelcome.php and the login.php you created that there is no whitespace (blank spaces) before <?php and after ?>

WHO 11-24-2002 08:37 PM

Quote:

Originally posted by NTLDR
Make sure in both webwelcome.php and the login.php you created that there is no whitespace (blank spaces) before <?php and after ?>
Oh, thanks. Didn't realize that.

Still the same result though :(

WHO 11-24-2002 08:52 PM

Actually, now that I've tested it a little more, I really can't tell when this is happening. There are a few different ways it happens, most of them involving clicking back to the homepage from the forums.


http://www.truthhurts.org is the URL if anyone is interested.

NTLDR 11-24-2002 09:19 PM

Make sure the spaces arn't in main.php or functions.php either, if are no spaces then the error is on line 7 on main.php

WHO 11-24-2002 09:52 PM

Quote:

Originally posted by NTLDR
Make sure the spaces arn't in main.php or functions.php either, if are no spaces then the error is on line 7 on main.php
Line 7 on main.php is the link to my CSS file. Could that have something to do with it? If so, how could I go about fixing it?

NTLDR 11-24-2002 10:02 PM

I would say yes that is the problem. The code in functions.php is trying to do stuff that must be done before any output is sent to the browser. So make sure there is no HTML before you have the bit where you require global.php in your main.php file.

WHO 11-24-2002 10:36 PM

Quote:

Originally posted by NTLDR
I would say yes that is the problem. The code in functions.php is trying to do stuff that must be done before any output is sent to the browser. So make sure there is no HTML before you have the bit where you require global.php in your main.php file.
Thanks, I managed to fix it I think. For some reason when I put the code directly on the top of main.php I got the same error. But when I stuck the include for the login file that I made right there, it worked great.


All times are GMT. The time now is 03:57 PM.

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.01294 seconds
  • Memory Usage 1,745KB
  • 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
  • (1)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (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