vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Old questing not yet resolved: Vbulletin Login (https://vborg.vbsupport.ru/showthread.php?t=180588)

taduyduc2003 05-26-2008 05:27 PM

Old questing not yet resolved: Vbulletin Login
 
Im currently working on a site that require Vbulletin login as a medium of all other children sites...

BUT:

The problem is that one of the child site that im going to integrate is running on a different host. but it's still on the same main domain (child.xxx.com and forum.xxx.com) -> i already set the session domain to .xxx.com.

The solution of integrating VBB have been writen several times before, but almost all of them did not come with an explanation for any of their code, or they are used for local sites on the same host (require global.php)

I've done a lot of searches about this topic both on Google and Vbulletin websites, but no answer could be found. So i write this question.

I just simply want to ask how can I access the session on other webpage that i wrote above...

For example:
I have a forum on forum.xxx.com

and a site that running on other host and different ip, different server on fck.xxx.com . When the user type in the login on fck.xxx.com, they submited to forum.xxx.com/login.php and return back to the fck.xxx.com/login.php for validation purpose...

but how can i validate the session when i dont know how to access it.

You may find this question noob, but if someone could write a brief explanation for this, i will be very appreciated.

Thank you so much..

Regard....

iogames 05-26-2008 05:40 PM

Do you use XXX for a children's site? Eeew!

well I read 3 times your question [very confusing btw]
if you have another instance of vBulletin in another host, and different IP then it's another license and another forum...
Do you want then to have just one login page?

taduyduc2003 05-26-2008 09:49 PM

i just need to make user can also use the userdatabase of my vbulletin on forum.xxx.com... I think i can use session?! if yes, what should be the value of $_SESSION?

--------------- Added [DATE]1211862724[/DATE] at [TIME]1211862724[/TIME] ---------------

does anyone know how to do this?

--------------- Added [DATE]1211863275[/DATE] at [TIME]1211863275[/TIME] ---------------

I only have 1 instance of VBB running on 1 of my host. I just need to integrate it on another host.

The Default way is to include the VBB's Global.php

But this is on another host and i dont know a way to integrate it.

So any help will be very appreciated

BTW: Sorry for my english.

Dismounted 05-27-2008 07:12 AM

The only way I can think of right now is to have an authentication script which is accessed to check if a user is logged in or not. I don't think there is one readily available, you may have to create your own.

taduyduc2003 05-27-2008 09:23 AM

i remembered that there is a cookie setting in ACP... And i put the value of ".xxx.com"

how can I simply use or get the value of some variable for my other sub-domain?

Dismounted 05-27-2008 10:23 AM

You could use the information in the cookies, but that has no use to you without actual connection to the database, as it only contains the sessionid and userid.

taduyduc2003 05-27-2008 10:32 AM

i see...

BTW, could you explain a bit about the user's password that stored in user table. They seam to be encrypted with some token

Dismounted 05-27-2008 10:42 AM

PHP Code:

md5(md5($password) . $salt); 

Where $password is the plain-text and $salt is the salt field of the user table.

taduyduc2003 05-27-2008 12:54 PM

1 see. Hope it will be solve with an API... :P


All times are GMT. The time now is 12:27 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.01414 seconds
  • Memory Usage 1,725KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete