vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Miscellaneous Hacks - Check E-mail Address Before Registration (https://vborg.vbsupport.ru/showthread.php?t=144590)

deLi_kurT 03-19-2008 06:41 PM

Thanks.

AngelBlue 03-31-2008 01:05 AM

This is a good mod, however, it can lead to Yahoo rejecting mail from your forums if many of your users register with Yahoo email addresses.

To avoid this, disable the use of this mod on Yahoo-based email addresses, via replacing :
Code:

if (!validate_email($vbulletin->GPC['email'])) {
  $userdata->error('os_email_notvalid');
 }

with :
Code:

if (!preg_match("/yahoo/i", $vbulletin->GPC['email'])) {
 if (!validate_email($vbulletin->GPC['email'])) {
  $userdata->error('os_email_notvalid');
 }
}

in the product file before install.
The search string is deliberately kept as "yahoo", and not "yahoo.com", to avoid cases of other possible domains (like "yahoo.fr" and "yahoomail.someotherdomain") getting past the check.

FireFish 11-06-2008 04:34 AM

Just FYI; since I installed this, I'm averaging about 2-3 'Contact Us' messages a week from guests who are wanting to register with email accounts at like sbcglobal.net or other major domains. They complain that they can't due to an error regarding 'contacting their email server'.

Although I totally love the idea & am sure it works most of the time, I can't loose those members & therefore must disable this mod. v :(

Twin_Turbo 11-20-2008 08:07 PM

I just got word from a member with a cox email address that he gets this message:

"Please enter another e-mail address. We were unable to contact your
e-mail server and verify that your e-mail address exists. If you
continue to have registration problems, please contact us for
assistance."

Could it be because he is using opera or mozilla?

laynespeers 08-05-2011 03:03 PM

Wow, thank you so much for this. The thing that I dislike about vBulletin is that it often has a lot of bots that will come on your forums and spam the living hell out of them. Atleast with a tool like this, it will prevent many of them from doing so. Not only that, but, if they do actually verify their email, then come and spam your website, you will know that their email is real. If this happens, its not very hard to spam them back.

Bottom line is, I love you. Haha.

laynespeers 08-05-2011 03:27 PM

Quote:

Originally Posted by FireFish (Post 1660297)
Just FYI; since I installed this, I'm averaging about 2-3 'Contact Us' messages a week from guests who are wanting to register with email accounts at like sbcglobal.net or other major domains. They complain that they can't due to an error regarding 'contacting their email server'.

Although I totally love the idea & am sure it works most of the time, I can't loose those members & therefore must disable this mod. v :(

Quote:

Originally Posted by Twin_Turbo (Post 1669576)
I just got word from a member with a cox email address that he gets this message:

"Please enter another e-mail address. We were unable to contact your
e-mail server and verify that your e-mail address exists. If you
continue to have registration problems, please contact us for
assistance."

Could it be because he is using opera or mozilla?

The post right above you was explaining how to get around get around the default restrictions with the email servers. Well, they showed you how to get around the yahoo email server. Here, I will explain how you can make acceptions for different email servers.

Whenever you are contacted by someone saying that they cannot access the website due to email restrictions, simple add that email server to the .xml script. Here, I will show you what I am trying to say.

Okay, so first things first. You are going to want to open your os_validate_email_1.0.xml file. Once the file is open to editable mode, search for the following:
Code:

if (!validate_email($vbulletin->GPC['email'])) {
  $userdata->error('os_email_notvalid');
}

Now that you have found the main method that verifies the email servers that the script is aloud to interact with, you are going to need to modify it just a little bit. The next thing that you are going to need to do is replace that code with the following:
Code:

if (!preg_match("/yahoo/i", (" $vbulletin->GPC['email'])) {
 if (!validate_email($vbulletin->GPC['email'])) {
  $userdata->error('os_email_notvalid');
 }
}

Okay, so before we replaced that code, this script could not work with yahoo email servers, if you would like more information on the reasoning for that, see post #.

Now, I am going to explain how you are to go about adding more email servers to the list. This is very simple, and you won't take long to figure it out. As and example, I am going to add sbcglobal to the list. Okay, inorder to add another email server to the list, you are going to want to paste the following code right after "/yahoo/i",:
Code:

"/sbcglobal/i",
Okay, once you have added that, your code should like something like:
Code:

if (!preg_match("/yahoo/i", "/sbcglobal/i", (" $vbulletin->GPC['email'])) {
 if (!validate_email($vbulletin->GPC['email'])) {
  $userdata->error('os_email_notvalid');
 }
}

So basically, when someone contacts you saying that they are unable to connect to your website with their email server, you will simply go into your script and add the email server. Also, do not add the domain extension when adding an email server, only add the main name of the email domain.

I am sorry if this doesn't work properly, I'm really not that great of a web programmer as I personally prefer to work with Java, but I thought I would speak up and help those in need :).

Best Regards,
Layne

Naijasite 11-17-2012 09:02 AM

its not working ...i enterd fake email as rolins575367899@yahoo.com and it allowed the registration on vb 4.


All times are GMT. The time now is 04:41 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.01313 seconds
  • Memory Usage 1,740KB
  • 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
  • (6)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete