Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by Viper220 Viper220 is offline
Developer Last Online: Jun 2004 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 12-04-2001 Last Update: Never Installs: 0
 
No support by the author.

Hi, my question is in regard to RobAC's hack that allows me to place a login box on a non-VB page.

In order to use a hack that allows me to place a log-in form box on a non-VB page, I need to use the REQUIRE function to call to global.php. Presumably that checks to see if the VB cookie is in place. If the cookie is found, then it displays the "hello [username.] If it's not, then it displays the log-in fields.
My proble mis this: no matter if the user is logged in it still shows the login field, meaning it isn't checking to see if the cookie works.

There are two things associated with this that may be causing it. (1) the REQUIRE statement inside the hack that calls to global.php. Should I be using absolute server path to call to this? I'm not sure, I tried to still doesn't work or I get an error.

(2) The INCLUDE statement in my non-VB page that calls to the hack. Can someone give me a sample what it should be? I've tried absolute server path and the regular URL path and if it does call to it correctly, it still doesn't check for the cookie.

I'm just not sure what the problem is and why it won't check to see if the cookie is there. Can anyone give me some solutions? Thanks in advance.

Best,
Brian

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 12-07-2001, 12:53 AM
Viper220 Viper220 is offline
 
Join Date: Nov 2001
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

First off, let me just say I appreciate the help that everyone has given me. If people can bear with me just a tad longer I'd appreciate it.

To update: I have configured the cookies in control panel to go to all of my domain (.slushfactory.com). Unfortunately, this hasn't resolved the problem.

To get back to the basics I am using the original loginfile.php file that RobAC included with his hack. I made two websites, my regular index (indextest.php) that also has a regular header and HTML code in it, and then a 2nd page (test.php) that only contains the INCLUDE file that calls to loginfile.php. I don't get the warning header error on the test.php page, but I still get it on the indextest.php one.

Full URLs:
http://www.slushfactory.com/indextest.php
http://www.slushfactory.com/test.php

Because the test.php works, it's obvious that the problem exists in my indextest.php page. However, I'm not sure where. The include file that calls to loginfile.php is after the header information and is someways down the page. The exact line I use is:
<?php
include("/home/slush/public_html/forum/loginfile.php");
?>

Aside from that, all the rest of the page is written in regular 'ol HTML. Could this be the problem? I assumed all I had to do was throw in the php include statement.

Am I missing something? I'm willing to post whatever code someone needs if they're willing to look at it.

Thanks,
Brian
Reply With Quote
  #13  
Old 12-07-2001, 01:01 AM
FWC's Avatar
FWC FWC is offline
 
Join Date: Oct 2001
Location: Ontario, CA
Posts: 821
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just tried both pages and didn't get any errors on either.
Reply With Quote
  #14  
Old 12-07-2001, 01:07 AM
Viper220 Viper220 is offline
 
Join Date: Nov 2001
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

[QUOTE]Originally posted by FWC
I just tried both pages and didn't get any errors on either.
Reply With Quote
  #15  
Old 12-07-2001, 02:13 AM
FWC's Avatar
FWC FWC is offline
 
Join Date: Oct 2001
Location: Ontario, CA
Posts: 821
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

[QUOTE]Originally posted by Viper220


Interesting. Unfortunately the error still exists for most visitors.
-Brian
Reply With Quote
  #16  
Old 12-07-2001, 02:24 AM
Goldfinger's Avatar
Goldfinger Goldfinger is offline
 
Join Date: Oct 2001
Posts: 120
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The problem is .. is that you are including the global.php and the config.php twice and that is causing the headers to go wild.
Reply With Quote
  #17  
Old 12-07-2001, 01:07 PM
Viper220 Viper220 is offline
 
Join Date: Nov 2001
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

[QUOTE]Originally posted by Goldfinger
The problem is .. is that you are including the global.php and the config.php twice and that is causing the headers to go wild.
Reply With Quote
  #18  
Old 12-07-2001, 01:57 PM
derfelix derfelix is offline
 
Join Date: Nov 2001
Posts: 204
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

isn't there in php 4 a includeonce or requireonce statement.. that would solve the problem...
the heather problem usually comes if you insert a html statement before the include global.php
try to put in on top of the page..
Reply With Quote
  #19  
Old 12-07-2001, 03:23 PM
Viper220 Viper220 is offline
 
Join Date: Nov 2001
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

[QUOTE]Originally posted by derfelix
isn't there in php 4 a includeonce or requireonce statement.. that would solve the problem...
the heather problem usually comes if you insert a html statement before the include global.php
try to put in on top of the page..
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:28 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04839 seconds
  • Memory Usage 2,280KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (8)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete