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
  #2  
Old 12-04-2001, 11:17 AM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am assuming it's the same domain?

Don't use urls, use paths. If you use http://www.yourserver.com/global.php or http://www.yourserver.com/loginfile.php it will NOT work.

It must be server paths like /home/login/www/forum/global.php

Amy
Reply With Quote
  #3  
Old 12-04-2001, 11:26 AM
Viper220 Viper220 is offline
 
Join Date: Nov 2001
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

[QUOTE]Originally posted by amykhar
I am assuming it's the same domain?

Don't use urls, use paths. If you use http://www.yourserver.com/global.php or http://www.yourserver.com/loginfile.php it will NOT work.

It must be server paths like /home/login/www/forum/global.php

Amy
Reply With Quote
  #4  
Old 12-04-2001, 11:46 AM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The problem now is the path to the config.php and other files in your global.php is not absolute.

I don't know what others would tell you to do, but I simply changed all the paths for the includes and requires in my global.php file to represent the actual paths.

Amy
Reply With Quote
  #5  
Old 12-04-2001, 12:09 PM
Viper220 Viper220 is offline
 
Join Date: Nov 2001
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Your solution worked perfectly! Thanks so much for your help.

Best,
Brian
Reply With Quote
  #6  
Old 12-04-2001, 09:22 PM
Viper220 Viper220 is offline
 
Join Date: Nov 2001
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

[QUOTE]Originally posted by amykhar
The problem now is the path to the config.php and other files in your global.php is not absolute.

I don't know what others would tell you to do, but I simply changed all the paths for the includes and requires in my global.php file to represent the actual paths.

Amy
Reply With Quote
  #7  
Old 12-06-2001, 07:27 PM
Viper220 Viper220 is offline
 
Join Date: Nov 2001
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anybody? This error is driving me crazy.

Thanks,
Brian
Reply With Quote
  #8  
Old 12-06-2001, 07:47 PM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

make sure there are no spaces or carriage returns after the closing ?> of you external login file and your test.php file. Other than that, I can't think of anything offhand.

Amy
Reply With Quote
  #9  
Old 12-06-2001, 07:50 PM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<a href="https://vborg.vbsupport.ru/showthread.php?s=&threadid=32753&highlight=Cannot+ add+header+information" target="_blank">https://vborg.vbsupport.ru/showt...er+information</a>
Reply With Quote
  #10  
Old 12-06-2001, 10:10 PM
Goldfinger's Avatar
Goldfinger Goldfinger is offline
 
Join Date: Oct 2001
Posts: 120
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

either what amy said or make sure your DOMAIN is cookied not just your board. In the your Admin control panel in the options there is a spot for cookies. make sure it says..

.yourdoman.com

note the postions of the dots. I had this problem with pluh news.
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 07:54 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.07035 seconds
  • Memory Usage 2,284KB
  • Queries Executed 25 (?)
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
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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_postinfo_query
  • fetch_postinfo
  • 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