vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Moderate new registrations with free email accounts only (https://vborg.vbsupport.ru/showthread.php?t=37357)

Erwin 04-13-2002 06:51 AM

Moderate new registrations with free email accounts only
 
At my site I have banned all free web-based email domain names like Hotmail or Yahoo.

However, it would be good if new members can still register with these banned email domains, but when they register they are automatically placed in a moderated usergroup until approval, whereas other new members registering with emails that are not banned would become registered immediately.

I tried implementing this myself, but no matter what I do, if an email address is in the ban list, it just would not be accepted.

Any ideas anyone?

Admin 04-13-2002 06:53 AM

You'll need to comment out / delete this code from register.php:
Code:

  if ($enablebanning and $banemail!="") {
    if (stristr(" ".$banemail." "," ".$email." ")!="") {
      eval("standarderror(\"".gettemplate("error_banemail")."\");");
      exit;
    }
    if ($emaildomain=substr(strstr($email,"@"),1)) {
      if (stristr(" ".$banemail." "," ".$emaildomain." ")!="") {
        eval("standarderror(\"".gettemplate("error_banemail")."\");");
        exit;
      }
    }
  }

And then do whatever you did. :)

Erwin 04-13-2002 06:57 AM

I'll give it a go again - I did that before, but got some errors. Thanks for the quick response. See, I don't use the COPPA system, so I was trying to modify the COPPA usergroup to turn that into the moderated free email group.

FlyBoy73 10-01-2003 03:30 PM

Did this end up working? I know it is way old but thought I would check because it would be a great option for us as well.


All times are GMT. The time now is 08:21 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01451 seconds
  • Memory Usage 1,711KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete