Password/new account creation?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • beltane
    New Member
    • Jul 2006
    • 11

    Password/new account creation?

    I'm wanting to add a forum to an existing site and looking at using vBulletin for it (I've only worked with phpBB in the past). What I want to do is create a new forum user with the same credentials at the same time someone joins the existing site, but from then on be seperate, so I don't need a login bridge or anything. Previous experience tells me that I should be able to do this by just adding an SQL insert statement to the pre-existing member signup, but I'm unsure how vbulletin handles passwords. I can get the password in plain text with a $_POST, will this do?

    Thank you! I'm keen to get started on this project and vB software looks like a great way to do it.
  • Colin F
    Senior Member
    • May 2004
    • 17689

    #2
    Generally I'd advise you to use the User Datamanager for this, as you need to insert more then one row. There's helpful information on how to use the DataManagers here: http://www.vbulletin.com/docs/html/d...rsion=30504500

    Anyhow, vBulletin saves the password in this format:

    md5 ( md5 ( password ) . salt )

    Salt is three random symbols, which are also saved in the user table.
    Best Regards
    Colin Frei

    Please don't contact me per PM.

    Comment

    • beltane
      New Member
      • Jul 2006
      • 11

      #3
      Thank you for the quick reply! I'm reading through that link now, looks very helpful. I assume it has a method of automatically fetching and using the next userID in the forums when adding a new user?

      Comment

      • Colin F
        Senior Member
        • May 2004
        • 17689

        #4
        The next userid is actually managed by MySQL, using auto_increment.
        It does validate all the data entered though.
        Best Regards
        Colin Frei

        Please don't contact me per PM.

        Comment

        • beltane
          New Member
          • Jul 2006
          • 11

          #5
          Great, thank you . I'm a bit of a beginner with php but hopefully I should be able to handle it.

          Comment

          • petikeee
            New Member
            • Jul 2006
            • 1
            • 3.5.0 Pre-Release

            #6
            thank you

            Comment

            • beltane
              New Member
              • Jul 2006
              • 11

              #7
              Ok now I've started actually doing this I'm having a few issues, pretty much all of them path problems as I have vB installed in /forums/ and the membership form in the top level. Is this going to be difficult to deal with or is there an easy way around it?

              Comment

              • Colin F
                Senior Member
                • May 2004
                • 17689

                #8
                Try defining the CWD constant with the full path to the forums directory
                Best Regards
                Colin Frei

                Please don't contact me per PM.

                Comment

                Related Topics

                Collapse

                Working...