vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   [AJAX] Check for Banned Emails on Registration/Email Change (https://vborg.vbsupport.ru/showthread.php?t=98095)

Christine 10-10-2005 10:00 PM

[AJAX] Check for Banned Emails on Registration/Email Change
 
This is a port from MrNase's 3.0 hack here: https://vborg.vbsupport.ru/showthrea...threadid=81631

I offered to send it, but Dominik said to release it, so here it is. :)

This can work in conjuntion with MrNase's AJAX: Username Check on Registration for 3.5 or as a standalone (screen shots of both options attached).


What this add-on does:

When someone either registers or changes their email, it checks against the 'banned email' field and if the email (or domain) is on there, it will tell them immediately and grey out the second email input field.

Benefit:

This is for anyone who has banned emails in their banned email list -- or for those who reject free emails or other domains. This add-on will alert the member (or potential member) immediately so that they don't go all the way through the process to be redirected to an error message.

What this add-on does NOT do:

This add-on does not check against the user table for existing email accounts, only those which appear in the banned list.
This is by design. :)


Installation:
  • 1 File to upload
  • 1 Product to install
  • 2 Templates to be modified*
  • 1 Addition to the default CSS file* (or parent CSS files)
*If you are already using the AJAX: Username Check, please note that one of the template edits and the CSS edit will not be necessary as both products use the same code. Please read the instructions for this!
The message that I have listed as the error is:
Quote:

Sorry, we do not accept free email addresses. Please enter an email from your ISP or other private domain. Apologies for any inconvenience!
To change that, modify the phrase: mailregistererror


TO THOSE UPGRADING FROM 3.0: I included 4 queries in the install readme file to remove the setting/phrases from the 3.0 version of this hack so that they will reinstall as part of the product. You will also need to revert your templates and reapply the changes for this to work properly.

IF THIS IS A FIRST TIME INSTALL: Ignore those queries. ;)

Screenies are of the product as a standalone and with the companion AJAX: Username Check product installed.

akanevsky 10-10-2005 11:42 PM

This is nice, I'll be the first to install :)

Nutz 10-11-2005 06:09 AM

Right behind you :)

Thanks,
Mat

SnowBot 10-11-2005 08:18 AM

BAh i always used to come 3rd in races at school, same here :) Anyway nice addon matey.

MrNase 10-11-2005 08:28 AM

Great, thanks for porting the hack! :)

The Realist 10-11-2005 08:28 AM

As always, 5th place again :(

Well done m8

tschai 06-20-2007 06:12 PM

A very usefull mod, which I've just discovered...and installed!

Great work!


All times are GMT. The time now is 11:19 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.00990 seconds
  • Memory Usage 1,725KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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