setting up user registration for website (single sign in or any other inplant) - help

Discussion in 'PHP' started by FLOW-MATIC, Jul 23, 2010.

  1. #1
    Hello,
    I'm trying to build a website with user registration.

    i am trying to find a good way to make this thing work but i get all massed up.

    i have coded the website by myself, i need to make a simple "register" or "sign up/in" button that opens something and register the user to the website, the registered user should have the option to add comments in pages.

    i want it to be easy so i am trying to make it with a "single sign in" option but i get all mixed up with this.
    i need to set up "login with facebook" and i want the user to be able to post comments, janrain has the thing that i am trying to do but i cant understand how to make it work...

    can anybody tell me or give a link to some "step by step" tutorial about how to set user sign up on website and integrate it with comments option.

    i'm trying to learn and any direction can help so please guide me so i can learn how to do this...

    thanks.
     
    FLOW-MATIC, Jul 23, 2010 IP
  2. Deacalion

    Deacalion Peon

    Messages:
    438
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Do you want to have your own login system with usernames/passwords in your own database or use Facebooks Single Sign-On button?
     
    Deacalion, Jul 23, 2010 IP
  3. Deacalion

    Deacalion Peon

    Messages:
    438
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You could also have both, side by side. First of all, you want them to register.

    1. Make a HTML form that asks for their details - name, age, location, email etc.
    2. When they submit - add this data to a table (with the active flag set to zero) and send them a confirmation email
    3. The confirmation email should have a link to a script that activates their account
    4. Activation could just be setting a flag to 1 in the users row within the table
    5. Done

    So the table could have the following fields:
    • id
    • username
    • firstname
    • lastname
    • age
    • location
    • email
    • active (flag)
    • lastlogin (timestamp)
    • banned (flag)
    • password
    • gender

    For the login process, let the user choose between logging into your site with the account they created on it (with a username/email and pasword field) or alternatively they can use their facebook account by clicking the facebook sign in button. The script that processes the login form would just check if they are active users and whether they got the password correct - if so, it will start a session.
     
    Deacalion, Jul 23, 2010 IP
  4. FLOW-MATIC

    FLOW-MATIC Greenhorn

    Messages:
    53
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #4
    i want something to work fine...
    the facebook single login is a good option for me but i cant understand how to make it work fine and how to learn about using it with other things in my website.
    setting up database with login system is also a good way but i am really getting all mixed up with making it work fine because of my low-knowledge and experience with php and databases coding. the website build as php pages with master page that loads up by "ob_start();" and i dont know how to put user loging that uses the same thing together.. this why i am trying to put implant.

    i dont like how it sounds but i am looking for "the easy way" ... first thing first...
    and if it more easy to set a facebook single login it will do fine.. but i need help with this also..

    a step by step guide can help me... but i cant find something that i can understand well that suites to my website..

    i feel that i am missing some basic info to proceed and i need help by get something easy and simple to work good...

    thanks.
     
    FLOW-MATIC, Jul 23, 2010 IP
  5. Deacalion

    Deacalion Peon

    Messages:
    438
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Facebook have some information here about their connect API. There are a few tutorials out there if you google "PHP Facebook Connect Tutorial" - like this one.
     
    Deacalion, Jul 23, 2010 IP