Single Site Login Integration - VBulletin

Discussion in 'PHP' started by Kalyse, Jan 28, 2007.

  1. #1
    Hello,

    [This is with my site and vbulletin]

    I want to have it so that when someone logs in on my MAIN site, it automatically logs them in to the forums.

    I have done quite a bit of searching but unfortunately cannot find anything.

    How can I do this?

    I have already created the users on the forums using the datamanager.

    So I can do a simple check on the users username, and just log that in.

    Any help greatly appreciated.
     
    Kalyse, Jan 28, 2007 IP
  2. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #2
    nico_swd, Jan 28, 2007 IP
  3. Kalyse

    Kalyse Peon

    Messages:
    1,221
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Been there done that, bought the t shirt, then got ignored for 48 hours. :)

    Ha. I didnt get any help unfortunately.
     
    Kalyse, Jan 28, 2007 IP
  4. clancey

    clancey Peon

    Messages:
    1,099
    Likes Received:
    63
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Your problem is not unique and stems from the fact that people love to create parts of websites, but do not consider how they could be integrated into more complex sites. I guess that is why people created CMSes with forums.

    I do not use VB. But, it will have a user database that could be shared with the rest of your website. In fact, you should be able to create a common registration process using only the VB database. You will just need to change the other scripts to match the database table and column names.

    The tricky part is that VB apparently sets cookies when people log in. That means that you have to find a way to incorporate that part of the process in your existing registration scheme. I tried searching the VB board and people mentioned the need to include the VB globals file into the rest of the website to make this all come together. Some VB users have clearly solved this problem, but the tone of their responses suggests they are sick and tired of artfully dodging the question.
     
    clancey, Jan 28, 2007 IP
  5. mikelbeck

    mikelbeck Well-Known Member

    Messages:
    790
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    108
    #5
    mikelbeck, Jan 28, 2007 IP
  6. Kalyse

    Kalyse Peon

    Messages:
    1,221
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    0
    #6
    That doesnt really help.

    Thats restricting use of users who arent logged in to the forums.

    I want to allow people to use the forums whenlogged in to my site.

    The forums should be considered as below my main site login and functions. not the other way round.
     
    Kalyse, Jan 28, 2007 IP
  7. mikelbeck

    mikelbeck Well-Known Member

    Messages:
    790
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    108
    #7
    mikelbeck, Jan 28, 2007 IP
  8. Kalyse

    Kalyse Peon

    Messages:
    1,221
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Yeah I read that but couldnt make use.

    Thanks anyay.

    I think GAF is my best best. 50-100$ could probably solve it!

    :D
     
    Kalyse, Jan 28, 2007 IP
  9. srinet

    srinet Peon

    Messages:
    172
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Your problem is not unique and stems from the fact that people love to create parts of websites, but do not consider how they could be integrated into more complex sites. I guess that is why people created CMSes with forums.
     
    srinet, Jan 28, 2007 IP
  10. Icheb

    Icheb Peon

    Messages:
    1,092
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Have your website use vB's user table and when someone registers for your website use vB's system for registering members. It's a small code change that can easily be incorporated into your registration process. Then set the forum cookie when someone logs in to your website.
     
    Icheb, Jan 29, 2007 IP
  11. Kalyse

    Kalyse Peon

    Messages:
    1,221
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    0
    #11
    If I knew how to do that I wouldnt need to use the forum tables.
     
    Kalyse, Jan 29, 2007 IP
  12. Icheb

    Icheb Peon

    Messages:
    1,092
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Just search on vbulletin.com for "forum cookie" and spend a few moments digging through the results. The password value in the cookie is some md5() of the password value in the database plus the user's salt value.
     
    Icheb, Jan 29, 2007 IP
  13. Kalyse

    Kalyse Peon

    Messages:
    1,221
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    0
    #13
    Really? That would be very simple!

    I have thought about doing that but I heard somewhere that the VB uses something else.

    It is just:

    md5( md5('password') + salt);

    If I recall correctly.

    I did some research on it about 12 months ago.

    I do believe that is correct. I will confirm it for future use of people once I find out.
     
    Kalyse, Jan 29, 2007 IP
  14. Kalyse

    Kalyse Peon

    Messages:
    1,221
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    0