Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 05-26-2008, 05:27 PM
taduyduc2003 taduyduc2003 is offline
 
Join Date: May 2005
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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....
Reply With Quote
  #2  
Old 05-26-2008, 05:40 PM
iogames's Avatar
iogames iogames is offline
 
Join Date: Jan 2007
Location: Las Vegas, NV.
Posts: 1,433
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #3  
Old 05-26-2008, 09:49 PM
taduyduc2003 taduyduc2003 is offline
 
Join Date: May 2005
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 05-27-2008, 07:12 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 05-27-2008, 09:23 AM
taduyduc2003 taduyduc2003 is offline
 
Join Date: May 2005
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #6  
Old 05-27-2008, 10:23 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 05-27-2008, 10:32 AM
taduyduc2003 taduyduc2003 is offline
 
Join Date: May 2005
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #8  
Old 05-27-2008, 10:42 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

PHP Code:
md5(md5($password) . $salt); 
Where $password is the plain-text and $salt is the salt field of the user table.
Reply With Quote
  #9  
Old 05-27-2008, 12:54 PM
taduyduc2003 taduyduc2003 is offline
 
Join Date: May 2005
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

1 see. Hope it will be solve with an API... :P
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 03:48 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.05920 seconds
  • Memory Usage 2,243KB
  • Queries Executed 13 (?)
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)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)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_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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete