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)
-   -   Remote login (https://vborg.vbsupport.ru/showthread.php?t=31785)

VICOS 05-15-2003 09:45 PM

Quote:

08-09-02 at 04:06 AM dwh said this in Post #16
Does it have to be from the same domain as the forum?
If you want cookies to work across subdomains, i.e. www.me.com and forums.me.com, go to the vB control panel main settings. Set the cookie domain to:

.me.com

where me.com is your domain. BE SURE TO PUT THE DOT (.) AT THE BEGINNING.

You also have to delete your existing vB cookies after doing this.

Sc0rp 06-06-2003 06:53 AM

didnt wanna work for me so I changed to things..

first in the form I added the following line above the username input:

Code:

<input type="hidden" name="action" value="login">
then I removed the first '/' from the forum action as it redirected me to the wrong page, like this:

Code:

action="forums/member.php?location=<?=$PHP_SELF ?>?<?=$QUERY_STRING ?>"
and then it worked fine for me.. :)

Now I still got one prob.. when Im logged in it still shows the login form on my none-vb page (duh).. any idea how I can solve that one?

VICOS 06-06-2003 12:59 PM

Quote:

Now I still got one prob.. when Im logged in it still shows the login form on my none-vb page (duh).. any idea how I can solve that one?
You'll have to write a conditional statement to check if the vB login cookie is set, i.e.:

if ( ! $vb_login_cookie_is_set ) {
display login form
}

Just pseudo-code, sorry, I don't have any actual code to do this. This also assumes that your non-vB pages are PHP or some other scripting language where you can chech cookies and do conditional logic.

Sc0rp 06-06-2003 02:21 PM

I used another way thanks to Mist, including global.php and asking for $bbuserinfo['userid'] :)

thanks for that part though :)

inthezone 06-19-2003 03:14 AM

Does anyone know of a way to get a remote login in vB3 without having to modify any of the vBulletin source code?

Note: I am using global.php to integrate my forum login onto other pages (in case this detail helps.)

M4g!k 06-28-2003 09:37 PM

Hey! I couldn't get this to work on my site?

I get an error message.

Im using 2.2.8 and nothig happens except when i click the 'Submit Query button' the page remains and i just get taken to

http://www.indeathwefall.co.uk/not_l...1=Submit+Query


how can i fix this? thanks :)

discussfitness 09-17-2003 12:50 PM

To get it working, make sure you add the line:
<input type="hidden" name="action" value="login">

To the form as Sc0rp suggests above.

Spyke1 09-30-2003 04:42 PM

When I Try To Use This, It Goes To The Password Recovery Form Help!

defy're 06-13-2004 09:22 PM

what the vb3 code?

CNibbana 07-08-2004 01:22 AM

Here is the code I am using in my non-VB3 page that does not require any changes to the VB code:

<form method="post" class="login" action="/forum/login.php" onsubmit="md5hash(vb_login_password,vb_login_md5pa ssword)">
<label>Username:<input type="text" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="1" onfocus="if (this.value == 'User Name') this.value = '';" /></label>
<label>Password:<input type="password" name="vb_login_password" size="10" accesskey="p" tabindex="2" /></label>
<input type="hidden" name="cookieuser" value="1" tabindex="3" id="cb_cookieuser_navbar" accesskey="c" />
<input type="hidden" name="s" value="" />
<input type="hidden" name="do" value="login" />
<input type="hidden" name="forceredirect" value="1" />
<input type="hidden" name="vb_login_md5password" />
<input type="submit" value="Login" class="submit" />
</form>


All times are GMT. The time now is 07:57 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.01415 seconds
  • Memory Usage 1,739KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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