Skip to:
Content
Pages
Categories
Search
Top
Bottom

Using BuddyPress as Private Club Network


  • kimz
    Participant

    @kkassed

    Hello all,

    I’m developing a social network for a private club members,
    every club member has his own ID card, with a unique membership number,
    I have a database with the members name and Id numbers,
    we want to keep the network private so we were trying to allow users with the right Name and Number to register in the network

    we built a php page to authenticate the users and redirect them to the buddyprss registration page and it works fine.

    but we were trying to develop something more secure than that or trying to find a way to integrate between the authentication page and buddypress,

    so I was wondering if there a way to do such thing

Viewing 6 replies - 1 through 6 (of 6 total)

  • Xevo
    Participant

    @xevo

    Just redirect any url towards the register/login page if the user isn’t logged in?


    kimz
    Participant

    @kkassed

    Thanks for your contribution @Xevo

    all users are already redirected to the login page if not logged in,

    but I want to allow only the users with the correct name and membership number to access the registration page


    Xevo
    Participant

    @xevo

    Maybe you could add a form that shows when a users tries accessing the register page that would require them to enter a security code first before seeing the actual register page.

    Something like

    if(!is_user_logged_in()) {
       if(!$_POST["access"]) {
         -show access form-
       } else {
         -show register page-
       }
    } else {
      -redirect user since he's already logged in-
    }

    (Just a raw sketch)


    kimz
    Participant

    @kkassed

    I did something similar,

    I created a db table with the members’ names and numbers,

    and a php form with to field to check the input data with the db table,
    if it’s correct the user is redirected to the registration page,

    but I was lookin for something to integrate between this page and the registration page, like a way to encrypt the link or deal with it as a registration step, you know what I mean? 🙂


    Xevo
    Participant

    @xevo

    Just put the actual code on the registration page?
    You can edit register.php in the theme.

    You could also take a look at bp_get_current_signup_step(), if you want to make it an actual step in the registration process.


    kimz
    Participant

    @kkassed

    I’ll check bp_get_current_signup_step(),

    and putting the code on the registration page seems to be a simple and good idea,

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Using BuddyPress as Private Club Network’ is closed to new replies.
Skip to toolbar