vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Checking Email on Registration (https://vborg.vbsupport.ru/showthread.php?t=148257)

FatalBreeze 05-27-2007 08:29 PM

Checking Email on Registration
 
When users are registered to my forum, i want to make sure they don't user certain email suppliers, in order to check this, i need to run some functions on the $vbulletin->GPC['email'] on registration. The problem is that the only hook there is "register_addmember_process" and it appears only after the email is validated and checked:
PHP Code:

$userdata->set('email'$vbulletin->GPC['email']); 

My question is, can i add a query on that hook like this:
PHP Code:

if(strstr($vbulletin->GPC['email'],...)) {
      
$userdata->error('someerror');


after the email is saved? or do i have to edit the file itself?
Thanks!

Dismounted 05-28-2007 05:47 AM

Isn't checking email domains a standard vBulletin feature?

FatalBreeze 05-28-2007 06:16 AM

well, according to what i'm reading in the "addmember" part, id doesn't. anyhow, i still need to add some code because there are 2 specific domains i don't want users to register with.

Dismounted 05-28-2007 07:16 AM

vBulletin Options > User Banning Options > Banned Email Addresses
Quote:

Email address ban lists: You may ban any email addresses from registering and posting. Type in the complete email address (user@example.com), or use a partial email address (as in @example.com).

Note that partial email addresses are matched from the end of the address unless you enable "Aggressive Email Banning" below. Therefore if you ban @example.com you will ban user@example.com, but if you ban @example that user will not be banned. If you enable "Aggressive Email Banning", user@example.com would be banned by @example.

If the email address of a user attempting to register or change their email address matches any of the addresses you specify here will see a no-permission error. For example, if you have banned 'example.com' then a user attempting to use 'someone@example.com' will be rejected.

Put a space between each email address or email address fragment.

FatalBreeze 05-28-2007 08:24 AM

oops... stupid me... lol
thanks dismounted! :)


All times are GMT. The time now is 03:05 PM.

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.01793 seconds
  • Memory Usage 1,724KB
  • 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
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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