Blocking out new membership?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nomad
    Recognized Expert Contributor
    • Mar 2007
    • 664

    Blocking out new membership?

    Hello everyone:

    I have a forum in which we have 100 members and we wish to block out any new memberships. I was thinking of write a query that would block out any new memberships and I need a little help doing this.

    this is what i have
    the table is phpbb_users
    the field name is user_id note this use id is made automatically

    Should this be a sql or a php.
    Would also need to change this if there is a new member that we approve.

    thanks
    nomad
  • Markus
    Recognized Expert Expert
    • Jun 2007
    • 6092

    #2
    Cant you just remove the code that inserts new users into the database?

    Comment

    • nomad
      Recognized Expert Contributor
      • Mar 2007
      • 664

      #3
      Originally posted by markusn00b
      Cant you just remove the code that inserts new users into the database?
      Never thought of that, but it might effect the db.
      There is a premade hack that I can use. I just thought my ideal would be better.

      nomad

      Comment

      • Markus
        Recognized Expert Expert
        • Jun 2007
        • 6092

        #4
        Originally posted by nomad
        Never thought of that, but it might effect the db.
        There is a premade hack that I can use. I just thought my ideal would be better.

        nomad
        I don't understand how it would affect the DB - all you need to do is remove what the end-user would use to sign up, and that is the PHP code used for the sign up.

        Good luck!

        Regards.

        Comment

        • TheServant
          Recognized Expert Top Contributor
          • Feb 2008
          • 1168

          #5
          Are the forums your design and code? If they are some sort of package like phpbb or something, you could just require email and admin confirmation and then just ignore/reject those who apply for memebership. No hacks ;)

          Comment

          • nomad
            Recognized Expert Contributor
            • Mar 2007
            • 664

            #6
            Originally posted by TheServant
            Are the forums your design and code? If they are some sort of package like phpbb or something, you could just require email and admin confirmation and then just ignore/reject those who apply for memebership. No hacks ;)
            Hello TheServant:
            Yes the site is phpbb. Really can not ignore them and I do have the admin confirmation. The reason I want the block is because of all the porn sites. When a user signs up their membership name is shown along with a website if they chose to add one.
            I'm going to try to make a query to block the id number to only 101. or use a hack.

            nomad

            Comment

            • TheServant
              Recognized Expert Top Contributor
              • Feb 2008
              • 1168

              #7
              Originally posted by nomad
              Hello TheServant:
              Yes the site is phpbb. Really can not ignore them and I do have the admin confirmation. The reason I want the block is because of all the porn sites. When a user signs up their membership name is shown along with a website if they chose to add one.
              I'm going to try to make a query to block the id number to only 101. or use a hack.

              nomad
              Fair enough. Can you not filter them or something? I just feel that if you're limiting your member number at 100, the forums won't be all that active? What about if some one leaves? Will they give thir account to someone? Or will you prune inactive members often?

              Comment

              • Markus
                Recognized Expert Expert
                • Jun 2007
                • 6092

                #8
                Originally posted by TheServant
                Fair enough. Can you not filter them or something? I just feel that if you're limiting your member number at 100, the forums won't be all that active? What about if some one leaves? Will they give thir account to someone? Or will you prune inactive members often?
                To prevent spam, surely you could implement a mathmatical question for the user to answer, or have them confirm an email address OR EVEN use those awful captcha's!

                Regards.

                Comment

                • crazymusic
                  New Member
                  • Mar 2008
                  • 1

                  #9
                  Uhh, I have one suggestion.

                  Why don't you just remove the sign-up link? Then put it back when you need it. To me that seems to be the easiest way to take care of it if you don't want anyone new signing up.

                  Comment

                  • ronverdonk
                    Recognized Expert Specialist
                    • Jul 2006
                    • 4259

                    #10
                    Originally posted by crazymusic
                    Uhh, I have one suggestion.

                    Why don't you just remove the sign-up link? Then put it back when you need it. To me that seems to be the easiest way to take care of it if you don't want anyone new signing up.
                    That has already been suggested
                    Originally posted by markusn00b
                    Cant you just remove the code that inserts new users into the database?

                    I don't understand how it would affect the DB - all you need to do is remove what the end-user would use to sign up, and that is the PHP code used for the sign up.
                    Ronald

                    Comment

                    • arggg
                      New Member
                      • Mar 2008
                      • 91

                      #11
                      There are plugins for phpbb that require an image code on registration. This will prevent spambots from creating accounts with spam site links in them. Or you can add names of sites to the bad words list which will block them out.

                      Comment

                      • nomad
                        Recognized Expert Contributor
                        • Mar 2007
                        • 664

                        #12
                        Originally posted by arggg
                        There are plugins for phpbb that require an image code on registration. This will prevent spambots from creating accounts with spam site links in them. Or you can add names of sites to the bad words list which will block them out.
                        OK I going to use this ideal.

                        here is the code that I found on this page line 18 contains the path to the Registration. (should have usercp_register )
                        How do I omit that section. Can I use Comments (//) to omit it.

                        [PHP]
                        // Start of program proper
                        //
                        if ( isset($HTTP_GET _VARS['mode']) || isset($HTTP_POS T_VARS['mode']) )
                        {
                        $mode = ( isset($HTTP_GET _VARS['mode']) ) ? $HTTP_GET_VARS['mode'] : $HTTP_POST_VARS['mode'];
                        $mode = htmlspecialchar s($mode);
                        if ( $mode == 'viewprofile' )
                        {
                        include($phpbb_ root_path . 'includes/usercp_viewprof ile.'.$phpEx);
                        exit;
                        }
                        else if ( $mode == 'editprofile' || $mode == 'register' )
                        {
                        if ( !$userdata['session_logged _in'] && $mode == 'editprofile' )
                        {
                        redirect(append _sid("login.$ph pEx?redirect=pr ofile.$phpEx&mo de=editprofile" , true));
                        }
                        include($phpbb_ root_path . 'includes/usercp_register .'.$phpEx);
                        exit;
                        }
                        else if ( $mode == 'confirm' )
                        {
                        // Visual Confirmation
                        if ( $userdata['session_logged _in'] )
                        {
                        exit;
                        }
                        include($phpbb_ root_path . 'includes/usercp_confirm. '.$phpEx);
                        exit;
                        }
                        else if ( $mode == 'sendpassword' )
                        {
                        include($phpbb_ root_path . 'includes/usercp_sendpass wd.'.$phpEx);
                        exit;
                        }
                        else if ( $mode == 'activate' )
                        {
                        include($phpbb_ root_path . 'includes/usercp_activate .'.$phpEx);
                        exit;
                        }
                        else if ( $mode == 'email' )
                        {
                        include($phpbb_ root_path . 'includes/usercp_email.'. $phpEx);
                        exit;
                        }
                        }
                        redirect(append _sid("index.$ph pEx", true));
                        ?>
                        [/PHP]

                        thanks, sorry for being a pain in the butt, but I don't want to mess up the team forum site and get picked on...
                        nomad
                        PS I think there is another page the use the usercp_register
                        Last edited by nomad; Mar 28 '08, 06:00 PM. Reason: Add more detail

                        Comment

                        • TheServant
                          Recognized Expert Top Contributor
                          • Feb 2008
                          • 1168

                          #13
                          Yes, you can, or /* and */ if you want to do multiple lines. The problem is, something will require that included file, so if ity can't find it, it will chuck out an error. Find out what calls that file, or variables in that file and see if you can track it so you don't get errors. Alternatively, just comment it out, see what happens, and deal with errors as you get them.

                          Comment

                          • arggg
                            New Member
                            • Mar 2008
                            • 91

                            #14
                            Originally posted by TheServant
                            Yes, you can, or /* and */ if you want to do multiple lines. The problem is, something will require that included file, so if ity can't find it, it will chuck out an error. Find out what calls that file, or variables in that file and see if you can track it so you don't get errors. Alternatively, just comment it out, see what happens, and deal with errors as you get them.
                            I would comment out the actual
                            [code=php]include('path/to/include');[/code]
                            in the files that are calling the registration page tha way any files such as the profile edit or anything that does call it like Servant said will not get an error.

                            Comment

                            • nomad
                              Recognized Expert Contributor
                              • Mar 2007
                              • 664

                              #15
                              Originally posted by arggg
                              I would comment out the actual
                              [code=php]include('path/to/include');[/code]
                              in the files that are calling the registration page tha way any files such as the profile edit or anything that does call it like Servant said will not get an error.
                              thanks everyone for help

                              nomad

                              Comment

                              Working...